1POSIX_TRACE_START(P) POSIX Programmer's Manual POSIX_TRACE_START(P)
2
3
4
6 posix_trace_start, posix_trace_stop - trace start and stop (TRACING)
7
9 #include <trace.h>
10
11 int posix_trace_start(trace_id_t trid);
12 int posix_trace_stop (trace_id_t trid);
13
14
16 The posix_trace_start() and posix_trace_stop() functions, respectively,
17 shall start and stop the trace stream identified by the argument trid.
18
19 The effect of calling the posix_trace_start() function shall be
20 recorded in the trace stream as the POSIX_TRACE_START system trace
21 event and the status of the trace stream shall become POSIX_TRACE_RUN‐
22 NING. If the trace stream is in progress when this function is called,
23 the POSIX_TRACE_START system trace event shall not be recorded and the
24 trace stream shall continue to run. If the trace stream is full, the
25 POSIX_TRACE_START system trace event shall not be recorded and the sta‐
26 tus of the trace stream shall not be changed.
27
28 The effect of calling the posix_trace_stop() function shall be recorded
29 in the trace stream as the POSIX_TRACE_STOP system trace event and the
30 status of the trace stream shall become POSIX_TRACE_SUSPENDED. If the
31 trace stream is suspended when this function is called, the
32 POSIX_TRACE_STOP system trace event shall not be recorded and the trace
33 stream shall remain suspended. If the trace stream is full, the
34 POSIX_TRACE_STOP system trace event shall not be recorded and the sta‐
35 tus of the trace stream shall not be changed.
36
38 Upon successful completion, these functions shall return a value of
39 zero. Otherwise, they shall return the corresponding error number.
40
42 These functions shall fail if:
43
44 EINVAL The value of the argument trid does not correspond to an active
45 trace stream and thus no trace stream was started or stopped.
46
47 EINTR The operation was interrupted by a signal and thus the trace
48 stream was not necessarily started or stopped.
49
50
51 The following sections are informative.
52
54 None.
55
57 None.
58
60 None.
61
63 None.
64
66 posix_trace_create() , the Base Definitions volume of
67 IEEE Std 1003.1-2001, <trace.h>
68
70 Portions of this text are reprinted and reproduced in electronic form
71 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
72 -- Portable Operating System Interface (POSIX), The Open Group Base
73 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
74 Electrical and Electronics Engineers, Inc and The Open Group. In the
75 event of any discrepancy between this version and the original IEEE and
76 The Open Group Standard, the original IEEE and The Open Group Standard
77 is the referee document. The original Standard can be obtained online
78 at http://www.opengroup.org/unix/online.html .
79
80
81
82IEEE/The Open Group 2003 POSIX_TRACE_START(P)