Re-initializes the trace log for reading.
Posix Trace Library (libposixtrace.a)
#include <trace.h>
int posix_trace_rewind (trid)
trace_id_t trid;
The posix_trace_rewind subroutine resets the current trace event time stamp to the time stamp of the oldest trace event recorded in the trace log identified by the trid parameter. The current trace event time stamp specifies the time stamp of the trace event that will be read by the next call to posix_trace_getnext_event subroutine.
Item | Description |
---|---|
trid | Specifies the trace stream identifier. |
On successful completion, the subroutine returns a value of zero. Otherwise, it returns the corresponding error number.
Item | Description |
---|---|
EINVAL | The object pointed to by the trid parameter does not correspond to a valid trace log. |
The trace.h file in the AIX® Version 7.1 Files Reference.