1
by Francesco Paolo Lovergine
rules: linking manpages-posix not manpages. |
1 |
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved |
2
by Francesco Paolo Lovergine
* Alligned to linux main manpages edition. |
2 |
.TH "POSIX_TRACE_EVENTSET_ADD" P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual" |
1
by Francesco Paolo Lovergine
rules: linking manpages-posix not manpages. |
3 |
.\" posix_trace_eventset_add |
4 |
.SH NAME |
|
5 |
posix_trace_eventset_add, posix_trace_eventset_del, posix_trace_eventset_empty, |
|
6 |
posix_trace_eventset_fill, |
|
7 |
posix_trace_eventset_ismember \- manipulate trace event type sets (\fBTRACING\fP) |
|
8 |
.SH SYNOPSIS |
|
9 |
.LP
|
|
10 |
\fB#include <trace.h>
|
|
11 |
.br
|
|
12 |
.sp
|
|
13 |
int posix_trace_eventset_add(trace_event_id_t\fP \fIevent_id\fP\fB, |
|
14 |
.br
|
|
15 |
\ \ \ \ \ \ trace_event_set_t *\fP\fIset\fP\fB); |
|
16 |
.br
|
|
17 |
int posix_trace_eventset_del(trace_event_id_t\fP \fIevent_id\fP\fB, |
|
18 |
.br
|
|
19 |
\ \ \ \ \ \ trace_event_set_t *\fP\fIset\fP\fB); |
|
20 |
.br
|
|
21 |
int posix_trace_eventset_empty(trace_event_set_t *\fP\fIset\fP\fB); |
|
22 |
.br
|
|
23 |
int posix_trace_eventset_fill(trace_event_set_t *\fP\fIset\fP\fB, |
|
24 |
int\fP \fIwhat\fP\fB); |
|
25 |
.br
|
|
26 |
int posix_trace_eventset_ismember(trace_event_id_t\fP \fIevent_id\fP\fB, |
|
27 |
.br
|
|
28 |
\ \ \ \ \ \ const trace_event_set_t *restrict\fP \fIset\fP\fB, int |
|
29 |
*restrict\fP
|
|
30 |
\fIismember\fP\fB); \fP |
|
31 |
\fB
|
|
32 |
.br
|
|
33 |
\fP
|
|
34 |
.SH DESCRIPTION |
|
35 |
.LP
|
|
36 |
These primitives manipulate sets of trace event types. They operate |
|
37 |
on data objects addressable by the application, not on the |
|
38 |
current trace event filter of any trace stream. |
|
39 |
.LP
|
|
40 |
The \fIposix_trace_eventset_add\fP() and \fIposix_trace_eventset_del\fP() |
|
41 |
functions, respectively, shall add or delete the |
|
42 |
individual trace event type specified by the value of the argument |
|
43 |
\fIevent_id\fP to or from the trace event type set pointed to |
|
44 |
by the argument \fIset\fP. Adding a trace event type already in the |
|
45 |
set or deleting a trace event type not in the set shall not be |
|
46 |
considered an error. |
|
47 |
.LP
|
|
48 |
The \fIposix_trace_eventset_empty\fP() function shall initialize the |
|
49 |
trace event type set pointed to by the \fIset\fP argument |
|
50 |
such that all trace event types defined, both system and user, shall |
|
51 |
be excluded from the set. |
|
52 |
.LP
|
|
53 |
The \fIposix_trace_eventset_fill\fP() function shall initialize the |
|
54 |
trace event type set pointed to by the argument \fIset\fP, |
|
55 |
such that the set of trace event types defined by the argument \fIwhat\fP |
|
56 |
shall be included in the set. The value of the argument |
|
57 |
\fIwhat\fP shall consist of one of the following values, as defined |
|
58 |
in the \fI<trace.h>\fP header: |
|
59 |
.TP 7 |
|
60 |
POSIX_TRACE_WOPID_EVENTS |
|
61 |
.sp
|
|
62 |
All the process-independent implementation-defined system trace event |
|
63 |
types are included in the set. |
|
64 |
.TP 7 |
|
65 |
POSIX_TRACE_SYSTEM_EVENTS |
|
66 |
.sp
|
|
67 |
All the implementation-defined system trace event types are included |
|
68 |
in the set, as are those defined in |
|
69 |
IEEE\ Std\ 1003.1-2001. |
|
70 |
.TP 7 |
|
71 |
POSIX_TRACE_ALL_EVENTS |
|
72 |
.sp
|
|
73 |
All trace event types defined, both system and user, are included |
|
74 |
in the set. |
|
75 |
.sp
|
|
76 |
.LP
|
|
77 |
Applications shall call either \fIposix_trace_eventset_empty\fP() |
|
78 |
or \fIposix_trace_eventset_fill\fP() at least once for each |
|
79 |
object of type \fBtrace_event_set_t\fP prior to any other use of that |
|
80 |
object. If such an object is not initialized in this way, |
|
81 |
but is nonetheless supplied as an argument to any of the \fIposix_trace_eventset_add\fP(), |
|
82 |
\fIposix_trace_eventset_del\fP(), or |
|
83 |
\fIposix_trace_eventset_ismember\fP() functions, the results are undefined. |
|
84 |
.LP
|
|
85 |
The \fIposix_trace_eventset_ismember\fP() function shall test whether |
|
86 |
the trace event type specified by the value of the |
|
87 |
argument \fIevent_id\fP is a member of the set pointed to by the argument |
|
88 |
\fIset\fP. The value returned in the object pointed to |
|
89 |
by \fIismember\fP argument is zero if the trace event type identifier |
|
90 |
is not a member of the set and a value different from zero |
|
91 |
if it is a member of the set. |
|
92 |
.SH RETURN VALUE |
|
93 |
.LP
|
|
94 |
Upon successful completion, these functions shall return a value of |
|
95 |
zero. Otherwise, they shall return the corresponding error |
|
96 |
number. |
|
97 |
.SH ERRORS |
|
98 |
.LP
|
|
99 |
These functions may fail if: |
|
100 |
.TP 7 |
|
101 |
.B EINVAL |
|
102 |
The value of one of the arguments is invalid. |
|
103 |
.sp
|
|
104 |
.LP
|
|
105 |
\fIThe following sections are informative.\fP |
|
106 |
.SH EXAMPLES |
|
107 |
.LP
|
|
108 |
None. |
|
109 |
.SH APPLICATION USAGE |
|
110 |
.LP
|
|
111 |
None. |
|
112 |
.SH RATIONALE |
|
113 |
.LP
|
|
114 |
None. |
|
115 |
.SH FUTURE DIRECTIONS |
|
116 |
.LP
|
|
117 |
None. |
|
118 |
.SH SEE ALSO |
|
119 |
.LP
|
|
120 |
\fIposix_trace_set_filter\fP() , \fIposix_trace_trid_eventid_open\fP() |
|
121 |
, the Base Definitions volume of |
|
122 |
IEEE\ Std\ 1003.1-2001, \fI<trace.h>\fP |
|
123 |
.SH COPYRIGHT |
|
124 |
Portions of this text are reprinted and reproduced in electronic form |
|
125 |
from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology |
|
126 |
-- Portable Operating System Interface (POSIX), The Open Group Base |
|
127 |
Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of |
|
128 |
Electrical and Electronics Engineers, Inc and The Open Group. In the |
|
129 |
event of any discrepancy between this version and the original IEEE and |
|
130 |
The Open Group Standard, the original IEEE and The Open Group Standard |
|
131 |
is the referee document. The original Standard can be obtained online at |
|
132 |
http://www.opengroup.org/unix/online.html . |