POSIX_TRACE_EVENTSET_ADD(3)POSIX Programmer's ManualPOSIX_TRACE_EVENTSET_ADD(3)



PPRROOLLOOGG
       This manual page is part of the POSIX Programmer's Manual.  The OS
       implementation of this interface may differ (consult the corresponding
       OS manual page for details of OS behavior), or the interface may not be
       implemented on OS.


NNAAMMEE
       posix_trace_eventset_add, posix_trace_eventset_del,
       posix_trace_eventset_empty, posix_trace_eventset_fill,
       posix_trace_eventset_ismember -- manipulate trace event type sets
       (TTRRAACCIINNGG)

SSYYNNOOPPSSIISS
       #include <trace.h>

       int posix_trace_eventset_add(trace_event_id_t _e_v_e_n_t___i_d,
           trace_event_set_t *_s_e_t);
       int posix_trace_eventset_del(trace_event_id_t _e_v_e_n_t___i_d,
           trace_event_set_t *_s_e_t);
       int posix_trace_eventset_empty(trace_event_set_t *_s_e_t);
       int posix_trace_eventset_fill(trace_event_set_t *_s_e_t, int _w_h_a_t);
       int posix_trace_eventset_ismember(trace_event_id_t _e_v_e_n_t___i_d,
           const trace_event_set_t *restrict _s_e_t, int *restrict _i_s_m_e_m_b_e_r);

DDEESSCCRRIIPPTTIIOONN
       These primitives manipulate sets of trace event types. They operate on
       data objects addressable by the application, not on the current trace
       event filter of any trace stream.

       The _p_o_s_i_x___t_r_a_c_e___e_v_e_n_t_s_e_t___a_d_d() and _p_o_s_i_x___t_r_a_c_e___e_v_e_n_t_s_e_t___d_e_l()
       functions, respectively, shall add or delete the individual trace event
       type specified by the value of the argument _e_v_e_n_t___i_d to or from the
       trace event type set pointed to by the argument _s_e_t.  Adding a trace
       event type already in the set or deleting a trace event type not in the
       set shall not be considered an error.

       The _p_o_s_i_x___t_r_a_c_e___e_v_e_n_t_s_e_t___e_m_p_t_y() function shall initialize the trace
       event type set pointed to by the _s_e_t argument such that all trace event
       types defined, both system and user, shall be excluded from the set.

       The _p_o_s_i_x___t_r_a_c_e___e_v_e_n_t_s_e_t___f_i_l_l() function shall initialize the trace
       event type set pointed to by the argument _s_e_t, such that the set of
       trace event types defined by the argument _w_h_a_t shall be included in the
       set. The value of the argument _w_h_a_t shall consist of one of the
       following values, as defined in the _<_t_r_a_c_e_._h_> header:

       POSIX_TRACE_WOPID_EVENTS
             All the process-independent implementation-defined system trace
             event types are included in the set.

       POSIX_TRACE_SYSTEM_EVENTS
             All the implementation-defined system trace event types are
             included in the set, as are those defined in POSIX.1-2008.

       POSIX_TRACE_ALL_EVENTS
             All trace event types defined, both system and user, are included
             in the set.

       Applications shall call either _p_o_s_i_x___t_r_a_c_e___e_v_e_n_t_s_e_t___e_m_p_t_y() or
       _p_o_s_i_x___t_r_a_c_e___e_v_e_n_t_s_e_t___f_i_l_l() at least once for each object of type
       ttrraaccee__eevveenntt__sseett__tt prior to any other use of that object. If such an
       object is not initialized in this way, but is nonetheless supplied as
       an argument to any of the _p_o_s_i_x___t_r_a_c_e___e_v_e_n_t_s_e_t___a_d_d(),
       _p_o_s_i_x___t_r_a_c_e___e_v_e_n_t_s_e_t___d_e_l(), or _p_o_s_i_x___t_r_a_c_e___e_v_e_n_t_s_e_t___i_s_m_e_m_b_e_r()
       functions, the results are undefined.

       The _p_o_s_i_x___t_r_a_c_e___e_v_e_n_t_s_e_t___i_s_m_e_m_b_e_r() function shall test whether the
       trace event type specified by the value of the argument _e_v_e_n_t___i_d is a
       member of the set pointed to by the argument _s_e_t.  The value returned
       in the object pointed to by _i_s_m_e_m_b_e_r argument is zero if the trace
       event type identifier is not a member of the set and a value different
       from zero if it is a member of the set.

RREETTUURRNN VVAALLUUEE
       Upon successful completion, these functions shall return a value of
       zero. Otherwise, they shall return the corresponding error number.

EERRRROORRSS
       These functions may fail if:

       EEIINNVVAALL The value of one of the arguments is invalid.

       _T_h_e _f_o_l_l_o_w_i_n_g _s_e_c_t_i_o_n_s _a_r_e _i_n_f_o_r_m_a_t_i_v_e_.

EEXXAAMMPPLLEESS
       None.

AAPPPPLLIICCAATTIIOONN UUSSAAGGEE
       None.

RRAATTIIOONNAALLEE
       None.

FFUUTTUURREE DDIIRREECCTTIIOONNSS
       The _p_o_s_i_x___t_r_a_c_e___e_v_e_n_t_s_e_t___a_d_d(), _p_o_s_i_x___t_r_a_c_e___e_v_e_n_t_s_e_t___d_e_l(),
       _p_o_s_i_x___t_r_a_c_e___e_v_e_n_t_s_e_t___e_m_p_t_y(), _p_o_s_i_x___t_r_a_c_e___e_v_e_n_t_s_e_t___f_i_l_l(), and
       _p_o_s_i_x___t_r_a_c_e___e_v_e_n_t_s_e_t___i_s_m_e_m_b_e_r() functions may be removed in a future
       version.

SSEEEE AALLSSOO
       _p_o_s_i_x___t_r_a_c_e___e_v_e_n_t_i_d___e_q_u_a_l(), _p_o_s_i_x___t_r_a_c_e___g_e_t___f_i_l_t_e_r()

       The Base Definitions volume of POSIX.1-2008, <<ttrraaccee..hh>>

CCOOPPYYRRIIGGHHTT
       Portions of this text are reprinted and reproduced in electronic form
       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
       -- Portable Operating System Interface (POSIX), The Open Group Base
       Specifications Issue 7, Copyright (C) 2013 by the Institute of
       Electrical and Electronics Engineers, Inc and The Open Group.  (This is
       POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
       event of any discrepancy between this version and the original IEEE and
       The Open Group Standard, the original IEEE and The Open Group Standard
       is the referee document. The original Standard can be obtained online
       at http://www.unix.org/online.html .

       Any typographical or formatting errors that appear in this page are
       most likely to have been introduced during the conversion of the source
       files to man page format. To report such errors, see
       https://www.kernel.org/doc/man-pages/reporting_bugs.html .



IEEE/The Open Group                  2013          POSIX_TRACE_EVENTSET_ADD(3)
