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