1POSIX_TRACE_EVENTTYPELIST_GEPTONSEIXXT_PIrDo(g3rPaP)mOmSeIrX'_sTRMAaCnEu_aElVENTTYPELIST_GETNEXT_ID(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
11

NAME

13       posix_trace_eventtypelist_getnext_id,  posix_trace_eventtypelist_rewind
14       — iterate over a mapping of trace event types (TRACING)
15

SYNOPSIS

17       #include <trace.h>
18
19       int posix_trace_eventtypelist_getnext_id(trace_id_t trid,
20           trace_event_id_t *restrict event, int *restrict unavailable);
21       int posix_trace_eventtypelist_rewind(trace_id_t trid);
22

DESCRIPTION

24       The  first  time  posix_trace_eventtypelist_getnext_id() is called, the
25       function shall return in the variable pointed to  by  event  the  first
26       trace  event  type  identifier of the list of trace events of the trace
27       stream  identified  by  the  trid   argument.   Successive   calls   to
28       posix_trace_eventtypelist_getnext_id()  return  in the variable pointed
29       to by event the next trace event type identifier  in  that  same  list.
30       Each  time  a  trace event type identifier is successfully written into
31       the variable pointed to by the event argument, the variable pointed  to
32       by  the  unavailable  argument shall be set to zero. When no more trace
33       event type identifiers are available, and  so  none  is  returned,  the
34       variable pointed to by the unavailable argument shall be set to a value
35       different from zero.
36
37       The posix_trace_eventtypelist_rewind() function shall  reset  the  next
38       trace  event  type  identifier to be read to the first trace event type
39       identifier from the list of trace events used in the trace stream iden‐
40       tified by trid.
41

RETURN VALUE

43       Upon  successful  completion,  these  functions shall return a value of
44       zero. Otherwise, they shall return the corresponding error number.
45
46       The posix_trace_eventtypelist_getnext_id() function  stores  the  trace
47       event  type identifier value in the object pointed to by event, if suc‐
48       cessful.
49

ERRORS

51       These functions shall fail if:
52
53       EINVAL The trid argument was not a valid trace stream identifier.
54
55       The following sections are informative.
56

EXAMPLES

58       None.
59

APPLICATION USAGE

61       None.
62

RATIONALE

64       None.
65

FUTURE DIRECTIONS

67       The posix_trace_eventtypelist_getnext_id()  and  posix_trace_eventtype‐
68       list_rewind() functions may be removed in a future version.
69

SEE ALSO

71       posix_trace_event(), posix_trace_eventid_equal(), posix_trace_get‐
72       next_event()
73
74       The Base Definitions volume of POSIX.1‐2008, <trace.h>
75
77       Portions of this text are reprinted and reproduced in  electronic  form
78       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
79       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
80       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
81       cal and Electronics Engineers,  Inc  and  The  Open  Group.   (This  is
82       POSIX.1-2008  with  the  2013  Technical Corrigendum 1 applied.) In the
83       event of any discrepancy between this version and the original IEEE and
84       The  Open Group Standard, the original IEEE and The Open Group Standard
85       is the referee document. The original Standard can be  obtained  online
86       at http://www.unix.org/online.html .
87
88       Any  typographical  or  formatting  errors that appear in this page are
89       most likely to have been introduced during the conversion of the source
90       files  to  man page format. To report such errors, see https://www.ker
91       nel.org/doc/man-pages/reporting_bugs.html .
92
93
94
95IEEE/The Open Group                  20P1O3SIX_TRACE_EVENTTYPELIST_GETNEXT_ID(3P)
Impressum