All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] perf_event_open.2 -- clarify PERF_SAMPLE_STACK_USER usage
@ 2014-07-14  2:29 Vince Weaver
       [not found] ` <alpine.DEB.2.11.1407132225330.15444-6xBS8L8d439fDsnSvq7Uqyn2WXadKZNJe7X0jjDqjFGHXe+LvDLADg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Vince Weaver @ 2014-07-14  2:29 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA


This clarifies the PERF_SAMPLE_STACK_USER section.  I found these issus
while implementing some code that uses the option.  The important change
is fixing the name of the sample_stack_user parameter, the rest is just
some wording fixes and minor clarifications.

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 47e9984..4c54b6b 100644
--- a/man2/perf_event_open.2
+++ b/man2/perf_event_open.2
@@ -1885,13 +1885,15 @@ bit mask.
 .IR size ", " data[size] ", " dyn_size
 If
 .B PERF_SAMPLE_STACK_USER
-is enabled, then record the user stack to enable backtracing.
+is enabled, then the user stack is recorded.
+This can be used to generate stack backtraces.
 .I size
 is the size requested by the user in
-.I stack_user_size
+.I sample_stack_user
 or else the maximum record size.
 .I data
-is the stack data.
+is the stack data (a raw dump of the memory pointed to by the
+stack pointer at the time of sampling).
 .I dyn_size
 is the amount of data actually dumped (can be less than
 .IR size ).
--
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 -- clarify PERF_SAMPLE_STACK_USER usage
       [not found] ` <alpine.DEB.2.11.1407132225330.15444-6xBS8L8d439fDsnSvq7Uqyn2WXadKZNJe7X0jjDqjFGHXe+LvDLADg@public.gmane.org>
@ 2014-07-15  4:31   ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2014-07-15  4:31 UTC (permalink / raw)
  To: Vince Weaver, linux-man-u79uwXL29TY76Z2rM5mHXA
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w

On 07/14/2014 04:29 AM, Vince Weaver wrote:
> 
> This clarifies the PERF_SAMPLE_STACK_USER section.  I found these issus
> while implementing some code that uses the option.  The important change
> is fixing the name of the sample_stack_user parameter, the rest is just
> some wording fixes and minor clarifications.

Thanks, Vince. 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 47e9984..4c54b6b 100644
> --- a/man2/perf_event_open.2
> +++ b/man2/perf_event_open.2
> @@ -1885,13 +1885,15 @@ bit mask.
>  .IR size ", " data[size] ", " dyn_size
>  If
>  .B PERF_SAMPLE_STACK_USER
> -is enabled, then record the user stack to enable backtracing.
> +is enabled, then the user stack is recorded.
> +This can be used to generate stack backtraces.
>  .I size
>  is the size requested by the user in
> -.I stack_user_size
> +.I sample_stack_user
>  or else the maximum record size.
>  .I data
> -is the stack data.
> +is the stack data (a raw dump of the memory pointed to by the
> +stack pointer at the time of sampling).
>  .I dyn_size
>  is the amount of data actually dumped (can be less than
>  .IR size ).
> 


-- 
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:[~2014-07-15  4:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-14  2:29 [patch] perf_event_open.2 -- clarify PERF_SAMPLE_STACK_USER usage Vince Weaver
     [not found] ` <alpine.DEB.2.11.1407132225330.15444-6xBS8L8d439fDsnSvq7Uqyn2WXadKZNJe7X0jjDqjFGHXe+LvDLADg@public.gmane.org>
2014-07-15  4:31   ` Michael Kerrisk (man-pages)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.