]> Git Repo - linux.git/commit
perf/core: Add a new read format to get a number of lost samples
authorNamhyung Kim <[email protected]>
Thu, 16 Jun 2022 18:06:23 +0000 (11:06 -0700)
committerPeter Zijlstra <[email protected]>
Tue, 28 Jun 2022 07:08:31 +0000 (09:08 +0200)
commit119a784c81270eb88e573174ed2209225d646656
tree6fa3da6264de67a39be33724c2785c045d6d0bfb
parentf0fe9f3c7abcc946a676dfb295478c50312523c2
perf/core: Add a new read format to get a number of lost samples

Sometimes we want to know an accurate number of samples even if it's
lost.  Currenlty PERF_RECORD_LOST is generated for a ring-buffer which
might be shared with other events.  So it's hard to know per-event
lost count.

Add event->lost_samples field and PERF_FORMAT_LOST to retrieve it from
userspace.

Original-patch-by: Jiri Olsa <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
include/linux/perf_event.h
include/uapi/linux/perf_event.h
kernel/events/core.c
kernel/events/ring_buffer.c
This page took 0.073091 seconds and 4 git commands to generate.