[PATCH 5.17 262/343] perf session: Remap buf if there is no space for event