perf/x86/intel: Introduce PERF_RECORD_LOST_SAMPLES
authorKan Liang <[email protected]>
Sun, 10 May 2015 19:13:14 +0000 (15:13 -0400)
committerIngo Molnar <[email protected]>
Sun, 7 Jun 2015 14:09:02 +0000 (16:09 +0200)
commitf38b0dbb491a6987e198aa6b428db8692a6480f8
treea3ba22b7226e96b085d3e08174d73a3883cfe44a
parent156174999dd1d0fe8732f5a05f4e9cef921ad487
perf/x86/intel: Introduce PERF_RECORD_LOST_SAMPLES

After enlarging the PEBS interrupt threshold, there may be some mixed up
PEBS samples which are discarded by the kernel.

This patch makes the kernel emit a PERF_RECORD_LOST_SAMPLES record with
the number of possible discarded records when it is impossible to demux
the samples.

It makes sure the user is not left in the dark about such discards.

Signed-off-by: Kan Liang <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/cpu/perf_event_intel_ds.c
include/linux/perf_event.h
include/uapi/linux/perf_event.h
kernel/events/core.c