[PATCH 6.1 016/168] perf session: Fix handling when buffer exceeds 2 GiB