[PATCH 0/2] Fix high-order allocations for AUX space

From: Shuai Xue
Date: Mon Jun 12 2023 - 01:25:11 EST


When perf-record with large AUX area, it reveals WARNINGs with __alloc_pages.
Fix with correct MAX_ORDER limit to request higher order allocations so that
larger contiguous areas is allocated.

Shuai Xue (2):
perf/core: Bail out early if the request AUX area is out of bound
perf/ring_buffer: Fix high-order allocations for AUX space with
correct MAX_ORDER limit

kernel/events/core.c | 10 ++++++++++
kernel/events/ring_buffer.c | 4 ++--
tools/perf/Documentation/perf-record.txt | 3 ++-
3 files changed, 14 insertions(+), 3 deletions(-)

--
1.8.3.1