Blame man-pages-posix-2013-a/man3p/posix_trace_eventset_add.3p

Packit 7cfc04
'\" et
Packit 7cfc04
.TH POSIX_TRACE_EVENTSET_ADD "3P" 2013 "IEEE/The Open Group" "POSIX Programmer's Manual"
Packit 7cfc04
.SH PROLOG
Packit 7cfc04
This manual page is part of the POSIX Programmer's Manual.
Packit 7cfc04
The Linux implementation of this interface may differ (consult
Packit 7cfc04
the corresponding Linux manual page for details of Linux behavior),
Packit 7cfc04
or the interface may not be implemented on Linux.
Packit 7cfc04
Packit 7cfc04
.SH NAME
Packit 7cfc04
.ad l
Packit 7cfc04
posix_trace_eventset_add,
Packit 7cfc04
posix_trace_eventset_del,
Packit 7cfc04
posix_trace_eventset_empty,
Packit 7cfc04
posix_trace_eventset_fill,
Packit 7cfc04
posix_trace_eventset_ismember
Packit 7cfc04
\(em manipulate trace event type sets
Packit 7cfc04
(\fBTRACING\fP)
Packit 7cfc04
.ad b
Packit 7cfc04
.SH SYNOPSIS
Packit 7cfc04
.LP
Packit 7cfc04
.nf
Packit 7cfc04
#include <trace.h>
Packit 7cfc04
.P
Packit 7cfc04
int posix_trace_eventset_add(trace_event_id_t \fIevent_id\fP,
Packit 7cfc04
    trace_event_set_t *\fIset\fP);
Packit 7cfc04
int posix_trace_eventset_del(trace_event_id_t \fIevent_id\fP,
Packit 7cfc04
    trace_event_set_t *\fIset\fP);
Packit 7cfc04
int posix_trace_eventset_empty(trace_event_set_t *\fIset\fP);
Packit 7cfc04
int posix_trace_eventset_fill(trace_event_set_t *\fIset\fP, int \fIwhat\fP);
Packit 7cfc04
int posix_trace_eventset_ismember(trace_event_id_t \fIevent_id\fP,
Packit 7cfc04
    const trace_event_set_t *restrict \fIset\fP, int *restrict \fIismember\fP);
Packit 7cfc04
.fi
Packit 7cfc04
.SH DESCRIPTION
Packit 7cfc04
These primitives manipulate sets of trace event types. They operate on
Packit 7cfc04
data objects addressable by the application, not on the current trace
Packit 7cfc04
event filter of any trace stream.
Packit 7cfc04
.P
Packit 7cfc04
The
Packit 7cfc04
\fIposix_trace_eventset_add\fR()
Packit 7cfc04
and
Packit 7cfc04
\fIposix_trace_eventset_del\fR()
Packit 7cfc04
functions, respectively, shall add or delete the individual trace event
Packit 7cfc04
type specified by the value of the argument
Packit 7cfc04
.IR event_id
Packit 7cfc04
to or from the trace event type set pointed to by the argument
Packit 7cfc04
.IR set .
Packit 7cfc04
Adding a trace event type already in the set or deleting a trace event
Packit 7cfc04
type not in the set shall not be considered an error.
Packit 7cfc04
.P
Packit 7cfc04
The
Packit 7cfc04
\fIposix_trace_eventset_empty\fR()
Packit 7cfc04
function shall initialize the trace event type set pointed to by the
Packit 7cfc04
.IR set
Packit 7cfc04
argument such that all trace event types defined, both system and user,
Packit 7cfc04
shall be excluded from the set.
Packit 7cfc04
.P
Packit 7cfc04
The
Packit 7cfc04
\fIposix_trace_eventset_fill\fR()
Packit 7cfc04
function shall initialize the trace event type set pointed to by the
Packit 7cfc04
argument
Packit 7cfc04
.IR set ,
Packit 7cfc04
such that the set of trace event types defined by the argument
Packit 7cfc04
.IR what
Packit 7cfc04
shall be included in the set. The value of the argument
Packit 7cfc04
.IR what
Packit 7cfc04
shall consist of one of the following values, as defined in the
Packit 7cfc04
.IR <trace.h> 
Packit 7cfc04
header:
Packit 7cfc04
.IP POSIX_TRACE_WOPID_EVENTS 6
Packit 7cfc04
.br
Packit 7cfc04
All the process-independent implementation-defined system trace event
Packit 7cfc04
types are included in the set.
Packit 7cfc04
.IP POSIX_TRACE_SYSTEM_EVENTS 6
Packit 7cfc04
.br
Packit 7cfc04
All the implementation-defined system trace event types are included in
Packit 7cfc04
the set, as are those defined in POSIX.1\(hy2008.
Packit 7cfc04
.IP POSIX_TRACE_ALL_EVENTS 6
Packit 7cfc04
.br
Packit 7cfc04
All trace event types defined, both system and user, are included in
Packit 7cfc04
the set.
Packit 7cfc04
.P
Packit 7cfc04
Applications shall call either
Packit 7cfc04
\fIposix_trace_eventset_empty\fR()
Packit 7cfc04
or
Packit 7cfc04
\fIposix_trace_eventset_fill\fR()
Packit 7cfc04
at least once for each object of type
Packit 7cfc04
.BR trace_event_set_t
Packit 7cfc04
prior to any other use of that object. If such an object is not
Packit 7cfc04
initialized in this way, but is nonetheless supplied as an argument to
Packit 7cfc04
any of the
Packit 7cfc04
\fIposix_trace_eventset_add\fR(),
Packit 7cfc04
\fIposix_trace_eventset_del\fR(),
Packit 7cfc04
or
Packit 7cfc04
\fIposix_trace_eventset_ismember\fR()
Packit 7cfc04
functions, the results are undefined.
Packit 7cfc04
.P
Packit 7cfc04
The
Packit 7cfc04
\fIposix_trace_eventset_ismember\fR()
Packit 7cfc04
function shall test whether the trace event type specified by the value
Packit 7cfc04
of the argument
Packit 7cfc04
.IR event_id
Packit 7cfc04
is a member of the set pointed to by the argument
Packit 7cfc04
.IR set .
Packit 7cfc04
The value returned in the object pointed to by
Packit 7cfc04
.IR ismember
Packit 7cfc04
argument is zero if the trace event type identifier is not a member of
Packit 7cfc04
the set and a value different from zero if it is a member of the set.
Packit 7cfc04
.SH "RETURN VALUE"
Packit 7cfc04
Upon successful completion, these functions shall return a value of
Packit 7cfc04
zero. Otherwise, they shall return the corresponding error number.
Packit 7cfc04
.SH ERRORS
Packit 7cfc04
These functions may fail if:
Packit 7cfc04
.TP
Packit 7cfc04
.BR EINVAL
Packit 7cfc04
The value of one of the arguments is invalid.
Packit 7cfc04
.LP
Packit 7cfc04
.IR "The following sections are informative."
Packit 7cfc04
.SH EXAMPLES
Packit 7cfc04
None.
Packit 7cfc04
.SH "APPLICATION USAGE"
Packit 7cfc04
None.
Packit 7cfc04
.SH RATIONALE
Packit 7cfc04
None.
Packit 7cfc04
.SH "FUTURE DIRECTIONS"
Packit 7cfc04
The
Packit 7cfc04
\fIposix_trace_eventset_add\fR(),
Packit 7cfc04
\fIposix_trace_eventset_del\fR(),
Packit 7cfc04
\fIposix_trace_eventset_empty\fR(),
Packit 7cfc04
\fIposix_trace_eventset_fill\fR(),
Packit 7cfc04
and
Packit 7cfc04
\fIposix_trace_eventset_ismember\fR()
Packit 7cfc04
functions may be removed in a future version.
Packit 7cfc04
.SH "SEE ALSO"
Packit 7cfc04
.IR "\fIposix_trace_eventid_equal\fR\^(\|)",
Packit 7cfc04
.IR "\fIposix_trace_get_filter\fR\^(\|)"
Packit 7cfc04
.P
Packit 7cfc04
The Base Definitions volume of POSIX.1\(hy2008,
Packit 7cfc04
.IR "\fB<trace.h>\fP"
Packit 7cfc04
.SH COPYRIGHT
Packit 7cfc04
Portions of this text are reprinted and reproduced in electronic form
Packit 7cfc04
from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
Packit 7cfc04
-- Portable Operating System Interface (POSIX), The Open Group Base
Packit 7cfc04
Specifications Issue 7, Copyright (C) 2013 by the Institute of
Packit 7cfc04
Electrical and Electronics Engineers, Inc and The Open Group.
Packit 7cfc04
(This is POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
Packit 7cfc04
event of any discrepancy between this version and the original IEEE and
Packit 7cfc04
The Open Group Standard, the original IEEE and The Open Group Standard
Packit 7cfc04
is the referee document. The original Standard can be obtained online at
Packit 7cfc04
http://www.unix.org/online.html .
Packit 7cfc04
Packit 7cfc04
Any typographical or formatting errors that appear
Packit 7cfc04
in this page are most likely
Packit 7cfc04
to have been introduced during the conversion of the source files to
Packit 7cfc04
man page format. To report such errors, see
Packit 7cfc04
https://www.kernel.org/doc/man-pages/reporting_bugs.html .