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

Message ID 20230612052452.53425-1-xueshuai@linux.alibaba.com
Headers
Series Fix high-order allocations for AUX space |

Message

Shuai Xue June 12, 2023, 5:24 a.m. UTC
  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(-)