]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Suppress AUX/OVERWRITE records
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Wed, 4 Apr 2018 14:53:23 +0000 (17:53 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 Sep 2018 20:21:13 +0000 (17:21 -0300)
commita3c2283b5c91da01c96f619844b0335e1d7a95a2
treea03f91adc007c7233eb2dc64641830a740ff9522
parentd5eaf0af0ef25c83aedf828951e9d2351ef7f558
perf: Suppress AUX/OVERWRITE records

It has been pointed out to me many times that it is useful to be able to
switch off AUX records to save the bandwidth for records that actually
matter, for example, in AUX overwrite mode.

The usefulness of PERF_RECORD_AUX is in some of its flags, like the
TRUNCATED flag that tells the decoder where exactly gaps in the trace
are.  The OVERWRITE flag, on the other hand will be set on every single
record in overwrite mode. However, a PERF_RECORD_AUX[flags=OVERWRITE] is
generated on every target task's sched_out, which over time adds up to a
lot of useless information.

If any folks out there have userspace that depends on a constant stream
of OVERWRITE records for a good reason, they'll have to let us know.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Will Deacon <will.deacon@arm.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Markus T Metzger <markus.t.metzger@intel.com>
Link: http://lkml.kernel.org/r/20180404145323.28651-1-alexander.shishkin@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
kernel/events/ring_buffer.c