Stops a trace.
Posix Trace Library (libposixtrace.a)
#include <trace.h>
int posix_trace_stop(trid)
trace_id_t trid;
The posix_trace_stop subroutine stops the trace stream identified by the trid parameter.
The effect of calling the posix_trace_stop subroutine is recorded in the trace stream as the POSIX_TRACE_STOP system trace event, and the status of the trace stream becomes POSIX_TRACE_SUSPENDED. If the trace stream is suspended when this subroutine is called, the POSIX_TRACE_STOP system trace event is not recorded, and the trace stream remains suspended. If the trace stream is full, the POSIX_TRACE_STOP system trace event is not recorded, and the status of the trace stream is not changed.
Item | Description |
---|---|
trid | Specifies the trace stream identifier. |
On successful completion, this subroutine returns a value of zero. Otherwise, it returns the corresponding error number.
Item | Description |
---|---|
EINVAL | The value of the trid parameter does not correspond to an active trace stream and thus no trace stream is started or stopped. |
The trace.h file in AIX® Version 7.1 Files Reference.