Trace functions.
|
Defines |
|
#define | TRACE_MODE_FIRST |
|
#define | TRACE_MODE_OFF |
|
#define | TRACE_MODE_CIRCULAR |
|
#define | TRACE_MODE_ONESHOT |
|
#define | TRACE_MODE_LAST |
|
#define | TRACE_MODE_DEFAULT |
|
#define | TRACE_SIZE_DEFAULT |
|
#define | TRACE_TAG_FIRST |
|
#define | TRACE_TAG_CRITICAL_FIRST |
|
#define | TRACE_TAG_CRITICAL_ENTER |
|
#define | TRACE_TAG_CRITICAL_EXIT |
|
#define | TRACE_TAG_CRITICAL_LAST |
|
#define | TRACE_TAG_THREAD_FIRST |
|
#define | TRACE_TAG_THREAD_YIELD |
|
#define | TRACE_TAG_THREAD_SETPRIO |
|
#define | TRACE_TAG_THREAD_WAIT |
|
#define | TRACE_TAG_THREAD_SLEEP |
|
#define | TRACE_TAG_THREAD_LAST |
|
#define | TRACE_TAG_INTERRUPT_FIRST |
|
#define | TRACE_TAG_INTERRUPT_ENTER |
|
#define | TRACE_TAG_INTERRUPT_EXIT |
|
#define | TRACE_TAG_INTERRUPT_LAST |
|
#define | TRACE_TAG_START |
|
#define | TRACE_TAG_STOP |
|
#define | TRACE_TAG_USER |
|
#define | TRACE_TAG_LAST |
|
#define | TRACE_MAX_USER |
|
#define | TRACE_INT_FIRST |
|
#define | TRACE_INT_UART0_CTS |
|
#define | TRACE_INT_UART0_RXCOMPL |
|
#define | TRACE_INT_UART0_TXEMPTY |
|
#define | TRACE_INT_UART1_CTS |
|
#define | TRACE_INT_UART1_RXCOMPL |
|
#define | TRACE_INT_UART1_TXEMPTY |
|
#define | TRACE_INT_TIMER0_OVERFL |
|
#define | TRACE_INT_TIMER1_OVERFL |
|
#define | TRACE_INT_SUART_TIMER |
|
#define | TRACE_INT_SUART_RX |
|
#define | TRACE_INT_LAST |
| #define | TRACE_ADD_ITEM(TAG, PC) |
| #define | TRACE_ADD_ITEM_PC(TAG) |
Typedefs |
|
typedef _t_traceitem | t_traceitem |
| | Item in the trace buffer.
|
Functions |
| int | NutTraceInit (int size, char mode) |
| void | NutTraceStop (void) |
| void | NutTracePrint (int size) |
| void | NutTraceTerminal (u_char *arg) |
| int | NutTraceGetPC (void) |
| void | NutTraceClear (void) |
| void | NutTraceMaskPrint (void) |
| void | NutTraceMaskClear (int tag) |
| void | NutTraceMaskSet (int tag) |
| void | NutTraceStatusPrint (void) |
| int | NutTraceRegisterUserTag (int tag, char *tag_string) |
Variables |
|
u_int | micros_high |
| | Upper 16 bits of microseconds clock, incremented on timer 1 overflow interrupts.
|
|
t_traceitem * | trace_items |
| | Trace buffer, initialized by NutTraceInit.
|
|
t_traceitem * | trace_current |
| | Pointer to the current item in the trace buffer.
|
|
int | trace_head |
| | Current index in the trace buffer.
|
|
int | trace_size |
| | Size of the trace buffer.
|
|
char | trace_isfull |
| | Flag indicating whether all items in the trace buffer contain valid information.
|
|
char | trace_mode |
| | Current state of the tracing facility.
|
|
char | trace_mask [TRACE_TAG_LAST+1] |
| | Mask to individually disable tracing of specific event types.
|