traceparser_debug()

Set the traceparser debug modes

Synopsis:

#include <sys/traceparser.h>

int traceparser_debug ( 
   struct traceparser_state * stateptr,
   FILE * streamptr, 
   unsigned flags );

Arguments:

stateptr
A pointer to the parser's state information, obtained by calling traceparser_init().
streamptr
A pointer to the debug output stream.
flags
Flags that indicate the types of debugging information to emit; one of:

or a combination of the following:

Library:

libtraceparser

Use the -l traceparser option to qcc to link against this library.

Description:

The traceparser_debug() function sets the debugging mode of the traceparser module. You can use this function if you're creating your own utility for parsing trace data (as an alternative to traceprinter).

Returns:

0
Success.
-1
Failure; errno is set. See also traceparser_get_info() for further details.

Classification:

QNX Neutrino

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes

See also:

TraceEvent(), traceparser(), traceparser_cs(), traceparser_cs_range(), traceparser_destroy(), traceparser_get_info(), traceparser_init()

tracelogger, traceprinter in the Utilities Reference

System Analysis Toolkit User's Guide

Analyzing Your System with Kernel Tracing chapter of the Integrated Development Environment User's Guide