[patch] perf_event_open.2: PERF_RECORD_LOST_SAMPLES record type
From: Vince Weaver
Date: Sat Oct 15 2016 - 22:04:44 EST
Linux 4.2 added a new record type: PERF_RECORD_LOST_SAMPLES
It is generated when hardware samples (currently only Intel PEBS)
Signed-off-by: Vince Weaver <vincent.weaver@xxxxxxxxx>
diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2
index 9f33122..a47df2d 100644
@@ -2551,6 +2551,25 @@ process ID of the thread starting an instruction trace.
thread ID of the thread starting an instruction trace.
+.BR PERF_RECORD_LOST_SAMPLES " (since Linux 4.2)"
+When using hardware sampling (such as Intel PEBS) this record
+indicates some number of samples may have been lost.
+ struct perf_event_header header;
+ u64 lost;
+ struct sample_id sample_id;
+the number of potentially lost samples.
.SS Overflow handling
Events can be set to notify when a threshold is crossed,