POSIX_T...SET_ADD(3POSIX)
β¨ PROLOG β¨
okay so first things first bestie β this manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (so like, go check the corresponding Linux manual page for deets on how Linux actually does it), or the interface might not even be implemented on Linux at all. no cap. π
π NAME π
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 (TRACING) π¦
π SYNOPSIS π
#include <trace.h>
int posix_trace_eventset_add(trace_event_id_t event_id,
trace_event_set_t *set);
int posix_trace_eventset_del(trace_event_id_t event_id,
trace_event_set_t *set);
int posix_trace_eventset_empty(trace_event_set_t *set);
int posix_trace_eventset_fill(trace_event_set_t *set, int what);
int posix_trace_eventset_ismember(trace_event_id_t event_id,
const trace_event_set_t *restrict set, int *restrict ismember);
πΈ DESCRIPTION πΈ
So these primitives manipulate sets of trace event types. the way that they operate on data objects that your application can address β not on the current trace event filter of any trace stream. iykyk β¨
posix_trace_eventset_add() and posix_trace_eventset_del(), respectively, shall add or delete the individual trace event type specified by the value of the argument event_id to or from the trace event type set pointed to by the argument set. And lowkey important: adding a trace event type that's already in the set, or deleting one that's not in the set, shall not be considered an error. we love a chill API π«Ά
posix_trace_eventset_empty() shall initialize the trace event type set pointed to by the set argument such that all trace event types defined β both system and user β shall be excluded from the set. π«
posix_trace_eventset_fill() shall initialize the trace event type set pointed to by the argument set, such that the set of trace event types defined by the argument what shall be included in the set. The value of the argument what shall consist of one of the following values, as defined in the <trace.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. π
bestie listen up β applications shall call eitherposix_trace_eventset_empty()orposix_trace_eventset_fill()at least once for each object of typetrace_event_set_tprior 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 theposix_trace_eventset_add(),posix_trace_eventset_del(), orposix_trace_eventset_ismember()functions, the results are undefined. π like, genuinely undefined. not a vibe.
posix_trace_eventset_ismember() shall test whether the trace event type specified by the value of the argument event_id is a member of the set pointed to by the argument set. The value returned in the object pointed to by the ismember 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. π
π RETURN VALUE π
Upon successful completion, these functions shall return a value of zero. Otherwise, they shall return the corresponding error number. π
π ERRORS π
These functions may fail if:
EINVALβ the value of one of the arguments is invalid. π
and fyi, the following sections are informative. π
β EXAMPLES β
None. (not me providing zero examples, we stay humble) π
π¦ APPLICATION USAGE π¦
None. same energy, nothing here π
π§ RATIONALE π§
None. yep. still nothing. π
π FUTURE DIRECTIONS π
posix_trace_eventset_add(), posix_trace_eventset_del(), posix_trace_eventset_empty(), posix_trace_eventset_fill(), and posix_trace_eventset_ismember() may be removed in a future version. π₯²
π SEE ALSO π
posix_trace_eventid_equal(), posix_trace_get_filter() π¦
The Base Definitions volume of POSIX.1β2017, <trace.h> β¨
π COPYRIGHT π
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. 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.opengroup.org/unix/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 . π
okay that's the whole thing bestie, you ate that π
β¨ β this was IEEE/The Open Group, 2017, and you've been reading POSIX_T...SET_ADD(3POSIX). periodt. ππ«Ά
π¦ where this page comes from
- debian bookworm: manpages-posix-dev 2017a-2 Β· Other
- debian trixie: manpages-posix-dev 2017a-2 Β· Other
- ubuntu jammy: manpages-posix-dev 2017a-2 Β· Other
- ubuntu noble: manpages-posix-dev 2017a-2 Β· Other
- ubuntu resolute: manpages-posix-dev 2017a-2build1 Β· Other
- ubuntu stonking: manpages-posix-dev 2017a-2.1 Β· Other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms