OSDN Git Service

perf: Cap allocation order at aux_watermark
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Wed, 14 Apr 2021 15:49:54 +0000 (18:49 +0300)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 16 Apr 2021 14:32:39 +0000 (16:32 +0200)
commitd68e6799a5c87f415d3bfa0dea49caee28ab00d1
treed3f99ae29d392b8c9a3fb79c303eabfab7fe2c11
parentcface0326a6c2ae5c8f47bd466f07624b3e348a7
perf: Cap allocation order at aux_watermark

Currently, we start allocating AUX pages half the size of the total
requested AUX buffer size, ignoring the attr.aux_watermark setting. This,
in turn, makes intel_pt driver disregard the watermark also, as it uses
page order for its SG (ToPA) configuration.

Now, this can be fixed in the intel_pt PMU driver, but seeing as it's the
only one currently making use of high order allocations, there is no
reason not to fix the allocator instead. This way, any other driver
wishing to add this support would not have to worry about this.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210414154955.49603-2-alexander.shishkin@linux.intel.com
kernel/events/ring_buffer.c