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

NAME

12       posix_trace_start, posix_trace_stop - trace start and stop (TRACING)
13

SYNOPSIS

15       #include <trace.h>
16
17       int posix_trace_start(trace_id_t trid);
18       int posix_trace_stop (trace_id_t trid);
19
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
57       The following sections are informative.
58

EXAMPLES

60       None.
61

APPLICATION USAGE

63       None.
64

RATIONALE

66       None.
67

FUTURE DIRECTIONS

69       None.
70

SEE ALSO

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