1POSIX_TRACE_EVENTSET_ADD(3P)POSIX Programmer's ManuaPlOSIX_TRACE_EVENTSET_ADD(3P)
2
3
4

PROLOG

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

NAME

12       posix_trace_eventset_add,                     posix_trace_eventset_del,
13       posix_trace_eventset_empty,                  posix_trace_eventset_fill,
14       posix_trace_eventset_ismember - manipulate trace event type sets (TRAC‐
15       ING)
16

SYNOPSIS

18       #include <trace.h>
19
20       int posix_trace_eventset_add(trace_event_id_t event_id,
21              trace_event_set_t *set);
22       int posix_trace_eventset_del(trace_event_id_t event_id,
23              trace_event_set_t *set);
24       int posix_trace_eventset_empty(trace_event_set_t *set);
25       int posix_trace_eventset_fill(trace_event_set_t *set, int what);
26       int posix_trace_eventset_ismember(trace_event_id_t event_id,
27              const trace_event_set_t *restrict set, int *restrict ismember);
28
29

DESCRIPTION

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
54              All the process-independent implementation-defined system  trace
55              event types are included in the set.
56
57       POSIX_TRACE_SYSTEM_EVENTS
58
59              All  the  implementation-defined  system  trace  event types are
60              included   in   the   set,   as    are    those    defined    in
61              IEEE Std 1003.1-2001.
62
63       POSIX_TRACE_ALL_EVENTS
64
65              All  trace  event  types  defined,  both  system  and  user, are
66              included in the set.
67
68
69       Applications  shall   call   either   posix_trace_eventset_empty()   or
70       posix_trace_eventset_fill()  at  least  once  for  each  object of type
71       trace_event_set_t prior to any other use of that  object.  If  such  an
72       object  is  not initialized in this way, but is nonetheless supplied as
73       an    argument    to    any    of    the    posix_trace_eventset_add(),
74       posix_trace_eventset_del(),  or  posix_trace_eventset_ismember()  func‐
75       tions, the results are undefined.
76
77       The posix_trace_eventset_ismember() function  shall  test  whether  the
78       trace  event  type specified by the value of the argument event_id is a
79       member of the set pointed to by the argument set. The value returned in
80       the  object  pointed to by ismember argument is zero if the trace event
81       type identifier is not a member of the set and a value  different  from
82       zero if it is a member of the set.
83

RETURN VALUE

85       Upon  successful  completion,  these  functions shall return a value of
86       zero. Otherwise, they shall return the corresponding error number.
87

ERRORS

89       These functions may fail if:
90
91       EINVAL The value of one of the arguments is invalid.
92
93
94       The following sections are informative.
95

EXAMPLES

97       None.
98

APPLICATION USAGE

100       None.
101

RATIONALE

103       None.
104

FUTURE DIRECTIONS

106       None.
107

SEE ALSO

109       posix_trace_set_filter(),  posix_trace_trid_eventid_open(),  the   Base
110       Definitions volume of IEEE Std 1003.1-2001, <trace.h>
111
113       Portions  of  this text are reprinted and reproduced in electronic form
114       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
115       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
116       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
117       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
118       event of any discrepancy between this version and the original IEEE and
119       The  Open Group Standard, the original IEEE and The Open Group Standard
120       is the referee document. The original Standard can be  obtained  online
121       at http://www.opengroup.org/unix/online.html .
122
123
124
125IEEE/The Open Group                  2003         POSIX_TRACE_EVENTSET_ADD(3P)
Impressum