1POSIX_TRACE_EVENTSET_ADD(3P)POSIX Programmer's ManuaPlOSIX_TRACE_EVENTSET_ADD(3P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
11
13 posix_trace_eventset_add, posix_trace_eventset_del,
14 posix_trace_eventset_empty, posix_trace_eventset_fill,
15 posix_trace_eventset_ismember — manipulate trace event type sets (TRAC‐
16 ING)
17
19 #include <trace.h>
20
21 int posix_trace_eventset_add(trace_event_id_t event_id,
22 trace_event_set_t *set);
23 int posix_trace_eventset_del(trace_event_id_t event_id,
24 trace_event_set_t *set);
25 int posix_trace_eventset_empty(trace_event_set_t *set);
26 int posix_trace_eventset_fill(trace_event_set_t *set, int what);
27 int posix_trace_eventset_ismember(trace_event_id_t event_id,
28 const trace_event_set_t *restrict set, int *restrict ismember);
29
31 These primitives manipulate sets of trace event types. They operate on
32 data objects addressable by the application, not on the current trace
33 event filter of any trace stream.
34
35 The posix_trace_eventset_add() and posix_trace_eventset_del() func‐
36 tions, respectively, shall add or delete the individual trace event
37 type specified by the value of the argument event_id to or from the
38 trace event type set pointed to by the argument set. Adding a trace
39 event type already in the set or deleting a trace event type not in the
40 set shall not be considered an error.
41
42 The posix_trace_eventset_empty() function shall initialize the trace
43 event type set pointed to by the set argument such that all trace event
44 types defined, both system and user, shall be excluded from the set.
45
46 The posix_trace_eventset_fill() function shall initialize the trace
47 event type set pointed to by the argument set, such that the set of
48 trace event types defined by the argument what shall be included in the
49 set. The value of the argument what shall consist of one of the follow‐
50 ing values, as defined in the <trace.h> header:
51
52 POSIX_TRACE_WOPID_EVENTS
53 All the process-independent implementation-defined system trace
54 event types are included in the set.
55
56 POSIX_TRACE_SYSTEM_EVENTS
57 All the implementation-defined system trace event types are
58 included in the set, as are those defined in POSIX.1‐2008.
59
60 POSIX_TRACE_ALL_EVENTS
61 All trace event types defined, both system and user, are included
62 in the set.
63
64 Applications shall call either posix_trace_eventset_empty() or
65 posix_trace_eventset_fill() at least once for each object of type
66 trace_event_set_t prior to any other use of that object. If such an
67 object is not initialized in this way, but is nonetheless supplied as
68 an argument to any of the posix_trace_eventset_add(),
69 posix_trace_eventset_del(), or posix_trace_eventset_ismember() func‐
70 tions, the results are undefined.
71
72 The posix_trace_eventset_ismember() function shall test whether the
73 trace event type specified by the value of the argument event_id is a
74 member of the set pointed to by the argument set. The value returned
75 in the object pointed to by ismember argument is zero if the trace
76 event type identifier is not a member of the set and a value different
77 from zero if it is a member of the set.
78
80 Upon successful completion, these functions shall return a value of
81 zero. Otherwise, they shall return the corresponding error number.
82
84 These functions may fail if:
85
86 EINVAL The value of one of the arguments is invalid.
87
88 The following sections are informative.
89
91 None.
92
94 None.
95
97 None.
98
100 The posix_trace_eventset_add(), posix_trace_eventset_del(),
101 posix_trace_eventset_empty(), posix_trace_eventset_fill(), and
102 posix_trace_eventset_ismember() functions may be removed in a future
103 version.
104
106 posix_trace_eventid_equal(), posix_trace_get_filter()
107
108 The Base Definitions volume of POSIX.1‐2008, <trace.h>
109
111 Portions of this text are reprinted and reproduced in electronic form
112 from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
113 -- Portable Operating System Interface (POSIX), The Open Group Base
114 Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
115 cal and Electronics Engineers, Inc and The Open Group. (This is
116 POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
117 event of any discrepancy between this version and the original IEEE and
118 The Open Group Standard, the original IEEE and The Open Group Standard
119 is the referee document. The original Standard can be obtained online
120 at http://www.unix.org/online.html .
121
122 Any typographical or formatting errors that appear in this page are
123 most likely to have been introduced during the conversion of the source
124 files to man page format. To report such errors, see https://www.ker‐
125 nel.org/doc/man-pages/reporting_bugs.html .
126
127
128
129IEEE/The Open Group 2013 POSIX_TRACE_EVENTSET_ADD(3P)