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

NAME

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

SYNOPSIS

16       #include <trace.h>
17
18       int posix_trace_eventtypelist_getnext_id(trace_id_t trid,
19              trace_event_id_t *restrict event, int *restrict unavailable);
20       int posix_trace_eventtypelist_rewind(trace_id_t trid);
21
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
56       The following sections are informative.
57

EXAMPLES

59       None.
60

APPLICATION USAGE

62       None.
63

RATIONALE

65       None.
66

FUTURE DIRECTIONS

68       None.
69

SEE ALSO

71       posix_trace_event(),                       posix_trace_getnext_event(),
72       posix_trace_trid_eventid_open(),   the   Base   Definitions  volume  of
73       IEEE Std 1003.1-2001, <trace.h>
74
76       Portions of this text are reprinted and reproduced in  electronic  form
77       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
78       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
79       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
80       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
81       event of any discrepancy between this version and the original IEEE and
82       The Open Group Standard, the original IEEE and The Open Group  Standard
83       is  the  referee document. The original Standard can be obtained online
84       at http://www.opengroup.org/unix/online.html .
85
86
87
88IEEE/The Open Group                  20P0O3SIX_TRACE_EVENTTYPELIST_GETNEXT_ID(3P)
Impressum