]> git.baikalelectronics.ru Git - kernel.git/commit
perf/core: Add PERF_AUX_FLAG_COLLISION to report colliding samples
authorWill Deacon <will.deacon@arm.com>
Fri, 23 Sep 2016 13:05:12 +0000 (14:05 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 18 Oct 2017 11:53:31 +0000 (12:53 +0100)
commit67e7630304ed4a79af886ea73df0c96b246f53d9
tree9a894a6253b6ccd4126bb921fbdc465a3182daa0
parent97e8f99039fb732f253062868d3c3a57da49ce7b
perf/core: Add PERF_AUX_FLAG_COLLISION to report colliding samples

The ARM SPE architecture permits an implementation to ignore a sample
if the sample is due to be taken whilst another sample is already being
produced. In this case, it is desirable to report the collision to
userspace, as they may want to lower the sample period.

This patch adds a PERF_AUX_FLAG_COLLISION flag, so that such events can
be relayed to userspace.

Acked-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
include/uapi/linux/perf_event.h