linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] perf_event_open.2: PERF_RECORD_LOST_SAMPLES record type
@ 2016-10-16  2:02 Vince Weaver
  2016-10-17  6:46 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: Vince Weaver @ 2016-10-16  2:02 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages)
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Kan Liang, Peter Zijlstra,
	Ingo Molnar, Stephane Eranian


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-e7X0jjDqjFGHXe+LvDLADg@public.gmane.org>

diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2
index 9f33122..a47df2d 100644
--- a/man2/perf_event_open.2
+++ b/man2/perf_event_open.2
@@ -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,
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [patch] perf_event_open.2: PERF_RECORD_LOST_SAMPLES record type
  2016-10-16  2:02 [patch] perf_event_open.2: PERF_RECORD_LOST_SAMPLES record type Vince Weaver
@ 2016-10-17  6:46 ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2016-10-17  6:46 UTC (permalink / raw)
  To: Vince Weaver
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Kan Liang, Peter Zijlstra,
	Ingo Molnar, Stephane Eranian

Hello Vince,

On 10/16/2016 04:02 AM, Vince Weaver wrote:
> 
> Linux 4.2 added a new record type: PERF_RECORD_LOST_SAMPLES
> It is generated when hardware samples (currently only Intel PEBS)
> are lost.

Thanks! Applied!

Cheers,

Michael


 
> Signed-off-by: Vince Weaver <vincent.weaver-e7X0jjDqjFGHXe+LvDLADg@public.gmane.org>
> 
> diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2
> index 9f33122..a47df2d 100644
> --- a/man2/perf_event_open.2
> +++ b/man2/perf_event_open.2
> @@ -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,
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-17  6:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-16  2:02 [patch] perf_event_open.2: PERF_RECORD_LOST_SAMPLES record type Vince Weaver
2016-10-17  6:46 ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).