Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
traceparser_debug()
Set the traceparser debug modes
Synopsis:
#include <traceparser.h> int traceparser_debug ( struct traceparser_state * stateptr, FILE * streamptr, unsigned flags );
Library:
libtraceparser
Description:
The traceparser_debug() function sets the debug modes of the traceparser module. The streamptr argument is a pointer to the debug output stream; flags specifies the debug category. The stateptr is an opaque structure obtained from traceparser_init().
Debug flags
The following is a list of the arguments that may be used for flags and the debug level for each:
- _TRACEPARSER_DEBUG_ALL
- Everything.
- _TRACEPARSER_DEBUG_ERRORS
- Critical errors only.
- _TRACEPARSER_DEBUG_EVENTS
- Row input events only.
- _TRACEPARSER_DEBUG_HEADER
- Header information only.
- _TRACEPARSER_DEBUG_NONE
- No debugging.
- _TRACEPARSER_DEBUG_SYSPAGE
- Syspage data only.
Returns:
- > 0
- Success; a pointer to the event
- -1
- Failure; errno is set. See also traceparser_get_info() for further details.
Classification:
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
See also:
traceparser_get_info(), traceparser_init()
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)