perf_event_open.2: PERF_RECORD_LOST_SAMPLES record type

Linux 4.2 added a new record type: PERF_RECORD_LOST_SAMPLES
It is generated when hardware samples (currently only Intel PEBS)
are lost.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
This commit is contained in:
Dave Hansen 2016-10-15 22:02:51 -04:00 committed by Michael Kerrisk
parent dde354c979
commit 46012ba3ff
1 changed files with 19 additions and 0 deletions

View File

@ -2551,6 +2551,25 @@ process ID of the thread starting an instruction trace.
.I tid
thread ID of the thread starting an instruction trace.
.RE
.TP
.BR PERF_RECORD_LOST_SAMPLES " (since Linux 4.2)"
\" f38b0dbb491a6987e198aa6b428db8692a6480f8
When using hardware sampling (such as Intel PEBS) this record
indicates some number of samples may have been lost.
.in +4n
.nf
struct {
struct perf_event_header header;
u64 lost;
struct sample_id sample_id;
};
.fi
.RS
.TP
.I lost
the number of potentially lost samples.
.RE
.RE
.SS Overflow handling
Events can be set to notify when a threshold is crossed,