Updated: April 19, 2023 |
Initialize the traceparser state information
#include <sys/traceparser.h> struct traceparser_state * traceparser_init ( struct traceparser_state * stateptr );
The traceparser_init() function initializes the state of the traceparser library and returns a pointer to an initialized state structure. You'll use this function if you're creating your own utility for parsing trace data (as an alternative to traceprinter).
The traceparser_state structure is an opaque structure for use by the other traceparser functions.
A pointer to a valid initialized state structure, or NULL if an error occurred (errno is set; see also traceparser_get_info() for further details).
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | No |