traceparser_debug()
QNX SDP8.0C Library ReferenceAPIDeveloper
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:
- _TRACEPARSER_DEBUG_ALL — everything
- _TRACEPARSER_DEBUG_NONE — nothing (the default)
or a combination of the following:
- _TRACEPARSER_DEBUG_ERRORS — critical errors
- _TRACEPARSER_DEBUG_EVENTS — raw input events
- _TRACEPARSER_DEBUG_HEADER — header information
- _TRACEPARSER_DEBUG_SYSPAGE — syspage data
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:
Safety: | |
---|---|
Cancellation point | No |
Signal handler | No |
Thread | Yes |
Page updated: