1POSIX_TRACE_START(3P) POSIX Programmer's Manual POSIX_TRACE_START(3P)
2
3
4
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
12 posix_trace_start, posix_trace_stop — trace start and stop (TRACING)
13
15 #include <trace.h>
16
17 int posix_trace_start(trace_id_t trid);
18 int posix_trace_stop (trace_id_t trid);
19
21 The posix_trace_start() and posix_trace_stop() functions, respectively,
22 shall start and stop the trace stream identified by the argument trid.
23
24 The effect of calling the posix_trace_start() function shall be
25 recorded in the trace stream as the POSIX_TRACE_START system trace
26 event and the status of the trace stream shall become POSIX_TRACE_RUN‐
27 NING. If the trace stream is in progress when this function is called,
28 the POSIX_TRACE_START system trace event shall not be recorded and the
29 trace stream shall continue to run. If the trace stream is full, the
30 POSIX_TRACE_START system trace event shall not be recorded and the sta‐
31 tus of the trace stream shall not be changed.
32
33 The effect of calling the posix_trace_stop() function shall be recorded
34 in the trace stream as the POSIX_TRACE_STOP system trace event and the
35 status of the trace stream shall become POSIX_TRACE_SUSPENDED. If the
36 trace stream is suspended when this function is called, the
37 POSIX_TRACE_STOP system trace event shall not be recorded and the trace
38 stream shall remain suspended. If the trace stream is full, the
39 POSIX_TRACE_STOP system trace event shall not be recorded and the sta‐
40 tus of the trace stream shall not be changed.
41
43 Upon successful completion, these functions shall return a value of
44 zero. Otherwise, they shall return the corresponding error number.
45
47 These functions shall fail if:
48
49 EINVAL The value of the argument trid does not correspond to an active
50 trace stream and thus no trace stream was started or stopped.
51
52 EINTR The operation was interrupted by a signal and thus the trace
53 stream was not necessarily started or stopped.
54
55 The following sections are informative.
56
58 None.
59
61 None.
62
64 None.
65
67 The posix_trace_start() and posix_trace_stop() functions may be removed
68 in a future version.
69
71 posix_trace_create()
72
73 The Base Definitions volume of POSIX.1‐2017, <trace.h>
74
76 Portions of this text are reprinted and reproduced in electronic form
77 from IEEE Std 1003.1-2017, Standard for Information Technology -- Por‐
78 table Operating System Interface (POSIX), The Open Group Base Specifi‐
79 cations Issue 7, 2018 Edition, Copyright (C) 2018 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 Any typographical or formatting errors that appear in this page are
87 most likely to have been introduced during the conversion of the source
88 files to man page format. To report such errors, see https://www.ker‐
89 nel.org/doc/man-pages/reporting_bugs.html .
90
91
92
93IEEE/The Open Group 2017 POSIX_TRACE_START(3P)