mirror of https://github.com/mkerrisk/man-pages
perfmonctl.2: Rework discussion of PFM_CREATE_CONTEXT
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
f25e7c8ecc
commit
0609db2aa2
|
@ -71,20 +71,21 @@ A new perfmon context is created as specified in
|
|||
.I ctxt
|
||||
and its file descriptor is returned in \fIctxt->ctx_fd\fR.
|
||||
|
||||
The file descriptor, apart from passing it to \fBperfmonctl\fR,
|
||||
can be used to read event notifications (type
|
||||
\fBpfm_msg_t\fR) using the
|
||||
.BR read (2)
|
||||
system call.
|
||||
Both
|
||||
.BR select (2)
|
||||
The file descriptor can be used in subsequent calls to
|
||||
.BR perfmonctl ()
|
||||
and can be used to read event notifications (type
|
||||
.IR pfm_msg_t )
|
||||
using
|
||||
.BR read (2).
|
||||
The file descriptor is pollable using
|
||||
.BR select (2),
|
||||
.BR poll (2),
|
||||
and
|
||||
.BR poll (2)
|
||||
can be used to wait for event notifications.
|
||||
.BR epoll (7).
|
||||
|
||||
The context can be destroyed using the
|
||||
The context can be destroyed by calling
|
||||
.BR close (2)
|
||||
system call.
|
||||
on the file descriptor.
|
||||
.TP
|
||||
.B PFM_WRITE_PMCS
|
||||
.\" pfm_write_pmcs()
|
||||
|
|
Loading…
Reference in New Issue