perf_event_open.2: Clarify the use of signals for capturing overflow events

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-10-17 11:12:33 +02:00
parent 4b3a5f018a
commit 6831ba6b0f
1 changed files with 7 additions and 4 deletions

View File

@ -2585,10 +2585,13 @@ event file descriptor with
.BR select (2),
or
.BR epoll (7).
Alternately, a SIGIO signal handler can be created and
the event configured with
.BR fcntl (2)
to generate SIGIO signals.
Alternatively, the overflow events can be captured via sa signal handler,
by enabling I/O signaling on the file descriptor; see the discussion of the
.BF F_SETOWN
and
.BR F_SETSIG
operations in
.BR fcntl (2).
Overflows are generated only by sampling events
.RI ( sample_period