linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Mention EINTR for perf_event_open
@ 2020-01-08 23:57 Daniel Colascione
  2020-01-21 19:49 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Colascione @ 2020-01-08 23:57 UTC (permalink / raw)
  To: Michael Kerrisk-manpages; +Cc: linux-man, Tim Murray

Somewhat surprisingly, perf_event_open can fail with EINTR when trying
to enable perf reporting for a uprobe that's already been configured
for use with ftrace. Mention this error in the man page.

diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2
index 25876c36c..b9128f542 100644
--- a/man2/perf_event_open.2
+++ b/man2/perf_event_open.2
@@ -3228,6 +3228,10 @@ values are out of range or set reserved bits;
 the generic event selected is not supported; or
 there is not enough room to add the selected event.
 .TP
+.B EINTR
+Returned when trying to mix perf and ftrace handling
+for a uprobe.
+.TP
 .B EMFILE
 Each opened event uses one file descriptor.
 If a large number of events are opened,

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

* Re: [PATCH] Mention EINTR for perf_event_open
  2020-01-08 23:57 [PATCH] Mention EINTR for perf_event_open Daniel Colascione
@ 2020-01-21 19:49 ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-01-21 19:49 UTC (permalink / raw)
  To: Daniel Colascione; +Cc: mtk.manpages, linux-man, Tim Murray

On 1/9/20 12:57 AM, Daniel Colascione wrote:
> Somewhat surprisingly, perf_event_open can fail with EINTR when trying
> to enable perf reporting for a uprobe that's already been configured
> for use with ftrace. Mention this error in the man page.

Thanks, Daniel. Patch applied.

Cheers,

Michael

> diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2
> index 25876c36c..b9128f542 100644
> --- a/man2/perf_event_open.2
> +++ b/man2/perf_event_open.2
> @@ -3228,6 +3228,10 @@ values are out of range or set reserved bits;
>  the generic event selected is not supported; or
>  there is not enough room to add the selected event.
>  .TP
> +.B EINTR
> +Returned when trying to mix perf and ftrace handling
> +for a uprobe.
> +.TP
>  .B EMFILE
>  Each opened event uses one file descriptor.
>  If a large number of events are opened,
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

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

end of thread, other threads:[~2020-01-21 19:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-08 23:57 [PATCH] Mention EINTR for perf_event_open Daniel Colascione
2020-01-21 19:49 ` 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).