]> Git Repo - linux.git/commit
perf: Add a capability for AUX_NO_SG pmus to do software double buffering
authorAlexander Shishkin <[email protected]>
Wed, 14 Jan 2015 12:18:13 +0000 (14:18 +0200)
committerIngo Molnar <[email protected]>
Thu, 2 Apr 2015 15:14:10 +0000 (17:14 +0200)
commit6a279230391b63130070e0219b0ad09d34d28c89
tree0acce118e036a8474a77fde1c899819580478ab6
parent0a4e38e64f5e91ce131cc42ee5bb3925377ec840
perf: Add a capability for AUX_NO_SG pmus to do software double buffering

For pmus that don't support scatter-gather for AUX data in hardware, it
might still make sense to implement software double buffering to avoid
losing data while the user is reading data out. For this purpose, add
a pmu capability that guarantees multiple high-order chunks for AUX buffer,
so that the pmu driver can do switchover tricks.

To make use of this feature, add PERF_PMU_CAP_AUX_SW_DOUBLEBUF to your
pmu's capability mask. This will make the ring buffer AUX allocation code
ensure that the biggest high order allocation for the aux buffer pages is
no bigger than half of the total requested buffer size, thus making sure
that the buffer has at least two high order allocations.

Signed-off-by: Alexander Shishkin <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Kaixu Xia <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Robert Richter <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/1421237903-181015-5-git-send-email-alexander.shishkin@linux.intel.com
Signed-off-by: Ingo Molnar <[email protected]>
include/linux/perf_event.h
kernel/events/ring_buffer.c
This page took 0.052471 seconds and 4 git commands to generate.