linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] perf_event_open.2 E2BIG documentation
@ 2013-10-10 21:20 Vince Weaver
       [not found] ` <alpine.DEB.2.10.1310101718250.4689-6xBS8L8d439fDsnSvq7Uq4Se7xf15W0s1dQoKJhdanU@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Vince Weaver @ 2013-10-10 21:20 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA


The following documents the E2BIG error return for perf_event_open().

I actually ran into this error the hard way and it took me half a day
to figure out why my ->size value was changing.

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 71a09d5..f4cb5bd 100644
--- a/man2/perf_event_open.2
+++ b/man2/perf_event_open.2
@@ -2121,6 +2121,21 @@ returns the new file descriptor, or \-1 if an error occurred
 is set appropriately).
 .SH ERRORS
 .TP
+.B E2BIG
+Returned if the perf_event_attr
+.I size
+value is too small
+(smaller than
+.BR PERF_ATTR_SIZE_VER0 ),
+too big (larger than the page size),
+or larger than the kernel supports and the extra bytes are not zero.
+When
+.B E2BIG
+is returned, the perf_event_attr
+.I size 
+field is over-written by the kernel to be the size of the structure
+it was expecting.
+.TP
 .B EINVAL
 Returned if the specified event is not available.
 .TP
--
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 E2BIG documentation
       [not found] ` <alpine.DEB.2.10.1310101718250.4689-6xBS8L8d439fDsnSvq7Uq4Se7xf15W0s1dQoKJhdanU@public.gmane.org>
@ 2013-10-25 22:22   ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2013-10-25 22:22 UTC (permalink / raw)
  To: Vince Weaver; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

On 11.10.2013 10:20, Vince Weaver wrote:
> 
> The following documents the E2BIG error return for perf_event_open().
> 
> I actually ran into this error the hard way and it took me half a day
> to figure out why my ->size value was changing.
> 
> Signed-off-by: Vince Weaver <vincent.weaver-e7X0jjDqjFGHXe+LvDLADg@public.gmane.org>

Thanks, Vince. Applied.

Cheers,

Michael


> diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2
> index 71a09d5..f4cb5bd 100644
> --- a/man2/perf_event_open.2
> +++ b/man2/perf_event_open.2
> @@ -2121,6 +2121,21 @@ returns the new file descriptor, or \-1 if an error occurred
>  is set appropriately).
>  .SH ERRORS
>  .TP
> +.B E2BIG
> +Returned if the perf_event_attr
> +.I size
> +value is too small
> +(smaller than
> +.BR PERF_ATTR_SIZE_VER0 ),
> +too big (larger than the page size),
> +or larger than the kernel supports and the extra bytes are not zero.
> +When
> +.B E2BIG
> +is returned, the perf_event_attr
> +.I size 
> +field is over-written by the kernel to be the size of the structure
> +it was expecting.
> +.TP
>  .B EINVAL
>  Returned if the specified event is not available.
>  .TP
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
My next Linux/UNIX system programming course:
--
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:[~2013-10-25 22:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-10 21:20 [patch] perf_event_open.2 E2BIG documentation Vince Weaver
     [not found] ` <alpine.DEB.2.10.1310101718250.4689-6xBS8L8d439fDsnSvq7Uq4Se7xf15W0s1dQoKJhdanU@public.gmane.org>
2013-10-25 22:22   ` 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).