1POSIX_TRACE_START(3P)      POSIX Programmer's Manual     POSIX_TRACE_START(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_start, posix_trace_stop — trace start and stop (TRACING)
14

SYNOPSIS

16       #include <trace.h>
17
18       int posix_trace_start(trace_id_t trid);
19       int posix_trace_stop (trace_id_t trid);
20

DESCRIPTION

22       The posix_trace_start() and posix_trace_stop() functions, respectively,
23       shall start and stop the trace stream identified by the argument trid.
24
25       The  effect  of  calling  the  posix_trace_start()  function  shall  be
26       recorded in the trace stream  as  the  POSIX_TRACE_START  system  trace
27       event  and the status of the trace stream shall become POSIX_TRACE_RUN‐
28       NING.  If the trace stream is in progress when this function is called,
29       the  POSIX_TRACE_START system trace event shall not be recorded and the
30       trace stream shall continue to run. If the trace stream  is  full,  the
31       POSIX_TRACE_START system trace event shall not be recorded and the sta‐
32       tus of the trace stream shall not be changed.
33
34       The effect of calling the posix_trace_stop() function shall be recorded
35       in  the trace stream as the POSIX_TRACE_STOP system trace event and the
36       status of the trace stream shall become POSIX_TRACE_SUSPENDED.  If  the
37       trace   stream   is   suspended  when  this  function  is  called,  the
38       POSIX_TRACE_STOP system trace event shall not be recorded and the trace
39       stream  shall  remain  suspended.  If  the  trace  stream  is full, the
40       POSIX_TRACE_STOP system trace event shall not be recorded and the  sta‐
41       tus of the trace stream shall not be changed.
42

RETURN VALUE

44       Upon  successful  completion,  these  functions shall return a value of
45       zero. Otherwise, they shall return the corresponding error number.
46

ERRORS

48       These functions shall fail if:
49
50       EINVAL The value of the argument trid does not correspond to an  active
51              trace stream and thus no trace stream was started or stopped.
52
53       EINTR  The  operation  was  interrupted  by a signal and thus the trace
54              stream was not necessarily started or stopped.
55
56       The following sections are informative.
57

EXAMPLES

59       None.
60

APPLICATION USAGE

62       None.
63

RATIONALE

65       None.
66

FUTURE DIRECTIONS

68       The posix_trace_start() and posix_trace_stop() functions may be removed
69       in a future version.
70

SEE ALSO

72       posix_trace_create()
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                  2013                POSIX_TRACE_START(3P)
Impressum