51 #if (CH_DBG_TRACE_MASK != CH_DBG_TRACE_MASK_DISABLED) || defined(__DOXYGEN__)    60 #if PORT_SUPPORTS_RT == TRUE    80 #if (CH_DBG_TRACE_MASK != CH_DBG_TRACE_MASK_DISABLED) || defined(__DOXYGEN__) static NOINLINE void trace_next(void)
Writes a time stamp and increases the trace buffer pointer. 
 
#define chSysGetRealtimeCounterX()
Returns the current value of the system real time counter. 
 
ch_trace_buffer_t trace_buffer
Public trace buffer. 
 
ch_trace_event_t * ptr
Pointer to the buffer front. 
 
#define chSysLock()
Enters the kernel lock state. 
 
void chDbgWriteTrace(void *up1, void *up2)
Adds an user trace record to the trace buffer. 
 
system_debug_t dbg
System debug. 
 
struct ch_trace_event_t::@1::@2 sw
Structure representing a context switch. 
 
void _trace_switch(thread_t *ntp, thread_t *otp)
Inserts in the circular debug trace buffer a context switch record. 
 
#define currp
Current thread pointer access macro. 
 
#define NOINLINE
Makes functions not inlineable. 
 
static void port_lock_from_isr(void)
Kernel-lock action from an interrupt handler. 
 
void chDbgWriteTraceI(void *up1, void *up2)
Adds an user trace record to the trace buffer. 
 
void _trace_halt(const char *reason)
Inserts in the circular debug trace buffer an halt record. 
 
void chDbgSuspendTrace(uint16_t mask)
Suspends one or more trace events. 
 
struct ch_trace_event_t::@1::@5 user
User trace structure. 
 
uint32_t rtstamp
Accurate time stamp. 
 
#define chSysUnlock()
Leaves the kernel lock state. 
 
void _trace_init(void)
Trace circular buffer subsystem initialization. 
 
uint16_t suspended
Suspended trace sources mask. 
 
struct ch_trace_event_t::@1::@4 halt
Structure representing an halt. 
 
uint32_t state
Switched out thread state. 
 
ch_system_t ch
System data structures. 
 
ch_trace_event_t buffer[CH_DBG_TRACE_BUFFER_SIZE]
Ring buffer. 
 
uint16_t size
Trace buffer size (entries). 
 
tstate_t state
Current thread state. 
 
void * wtobjp
Pointer to a generic "wait" object. 
 
void chDbgResumeTraceI(uint16_t mask)
Resumes one or more trace events. 
 
void chDbgResumeTrace(uint16_t mask)
Resumes one or more trace events. 
 
union ch_thread::@0 u
State-specific fields. 
 
systime_t time
System time stamp of the switch event. 
 
uint32_t type
Record type. 
 
#define CH_DBG_TRACE_BUFFER_SIZE
Trace buffer entries. 
 
void _trace_isr_enter(const char *isr)
Inserts in the circular debug trace buffer an ISR-enter record. 
 
#define CH_CFG_TRACE_HOOK(tep)
Trace hook. 
 
static void port_unlock_from_isr(void)
Kernel-unlock action from an interrupt handler. 
 
void _trace_isr_leave(const char *isr)
Inserts in the circular debug trace buffer an ISR-leave record. 
 
struct ch_trace_event_t::@1::@3 isr
Structure representing an ISR enter. 
 
#define chVTGetSystemTimeX()
Current system time. 
 
void chDbgSuspendTraceI(uint16_t mask)
Suspends one or more trace events. 
 
Structure representing a thread.