Skip to content

perf: Allow suppressing useless AUX records

Alexander Shishkin lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4perf: Allow suppressing AUX recordsinclude/uapi/linux/perf_event.h kernel/events/core.c kernel/events/ring_buffer.c+17 -39 replies
2/4tools, perf_event.h: Synchronizetools/include/uapi/linux/perf_event.h+2 -10 replies
3/4perf tools: Add 'suppress_aux' attribute bit definition and fallbacktools/perf/util/evsel.c+9 -00 replies
4/4perf intel-pt, intel-bts: Suppress useless AUX records by defaulttools/perf/arch/x86/util/auxtrace.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/4] perf: Allow suppressing useless AUX records

Hi guys,

[Fixed the braindamage of the previous version as pointed out by Adrian]

It's been brought to my attention many times that the AUX records are not always useful. One instance is the AUX overwrite mode, where we generate one such record every time the target task schedules out.

This patchset adds a bit to the attribute structure that would enable suppressing the AUX records when the only the only set flag is OVERWRITE. In this case, at least for the PT and BTS data we just ignore these records. But at the same time, AUX overwrite events are likely to be kept running over longer periods of time, making the buildup of AUX records an unnecessary annoyance.

Alexander Shishkin (4):
perf: Allow suppressing AUX records
tools, perf_event.h: Synchronize
perf tools: Add 'suppress_aux' attribute bit definition and fallback perf intel-pt, intel-bts: Suppress useless AUX records by default

 include/uapi/linux/perf_event.h       |  3 ++-
 kernel/events/core.c                  |  5 +++++
 kernel/events/ring_buffer.c           | 12 ++++++++++--
 tools/include/uapi/linux/perf_event.h |  3 ++-
 tools/perf/arch/x86/util/auxtrace.c   |  2 ++
 tools/perf/util/evsel.c               |  9 +++++++++
 6 files changed, 30 insertions(+), 4 deletions(-)
Signature · 1 line
2.15.0