51#if (CH_DBG_TRACE_MASK != CH_DBG_TRACE_MASK_DISABLED) || defined(__DOXYGEN__)
60#if PORT_SUPPORTS_RT == TRUE
79#if (CH_DBG_TRACE_MASK != CH_DBG_TRACE_MASK_DISABLED) || defined(__DOXYGEN__)
245 currcore->trace_buffer.suspended |= mask;
273 currcore->trace_buffer.suspended &= ~mask;
#define chSysUnlock()
Leaves the kernel lock state.
#define chSysLock()
Enters the kernel lock state.
#define chVTGetSystemTimeX()
Current system time.
#define chDbgCheckClassI()
#define CH_CFG_TRACE_HOOK(tep)
Trace hook.
struct ch_os_instance os_instance_t
Type of an OS instance structure.
struct ch_thread thread_t
Type of a thread structure.
static void port_unlock_from_isr(void)
Kernel-unlock action from an interrupt handler.
static void port_lock_from_isr(void)
Kernel-lock action from an interrupt handler.
#define NOINLINE
Makes functions not inlineable.
#define CH_DBG_TRACE_MASK
#define chSysGetRealtimeCounterX()
Returns the current value of the system real time counter.
#define currcore
Access to current core's instance structure.
#define __trace_halt(reason)
void chTraceResume(uint16_t mask)
Resumes one or more trace events.
#define __trace_ready(tp, msg)
#define __trace_isr_enter(isr)
#define CH_TRACE_TYPE_HALT
#define CH_DBG_TRACE_MASK_ISR
#define CH_TRACE_TYPE_USER
void chTraceResumeI(uint16_t mask)
Resumes one or more trace events.
#define CH_TRACE_TYPE_SWITCH
void chTraceWrite(void *up1, void *up2)
Adds an user trace record to the trace buffer.
#define __trace_switch(ntp, otp)
void chTraceSuspendI(uint16_t mask)
Suspends one or more trace events.
#define CH_TRACE_TYPE_READY
#define CH_DBG_TRACE_MASK_USER
void chTraceWriteI(void *up1, void *up2)
Adds an user trace record to the trace buffer.
#define CH_DBG_TRACE_MASK_HALT
static NOINLINE void trace_next(os_instance_t *oip)
Writes a time stamp and increases the trace buffer pointer.
#define CH_DBG_TRACE_MASK_READY
#define CH_TRACE_TYPE_ISR_ENTER
void chTraceSuspend(uint16_t mask)
Suspends one or more trace events.
#define CH_DBG_TRACE_BUFFER_SIZE
Trace buffer entries.
#define CH_TRACE_TYPE_UNUSED
#define CH_TRACE_TYPE_ISR_LEAVE
void __trace_object_init(trace_buffer_t *tbp)
Circular trace buffer initialization.
#define CH_DBG_TRACE_MASK_SWITCH
#define __trace_isr_leave(isr)
trace_buffer_t trace_buffer
Trace buffer.
void * wtobjp
Pointer to a generic "wait" object.
tstate_t state
Current thread state.
union ch_thread::@250330312022121344252011223135034045240103044261 u
State-specific fields.
trace_event_t * ptr
Pointer to the buffer front.
trace_event_t buffer[CH_DBG_TRACE_BUFFER_SIZE]
Ring buffer.
uint16_t size
Trace buffer size (entries).
uint16_t suspended
Suspended trace sources mask.
void * up1
Trace user parameter 1.
struct trace_event_t::@260131021033123353245355077257223364340026005263::@202217350115266301345267210242210042027166125212 isr
Structure representing an ISR enter.
uint32_t type
Record type.
union trace_event_t::@260131021033123353245355077257223364340026005263 u
thread_t * ntp
Switched in thread.
struct trace_event_t::@260131021033123353245355077257223364340026005263::@251024233242046004237167317141111357111213363177 rdy
Structure representing a thread becoming ready.
uint32_t state
Switched out thread state.
void * wtobjp
Object where going to sleep.
uint32_t rtstamp
Accurate time stamp.
systime_t time
System time stamp of the switch event.
thread_t * tp
Thread made ready.
const char * reason
Halt error string.
const char * name
ISR function name taken using __func__.
struct trace_event_t::@260131021033123353245355077257223364340026005263::@356321027224211063007027066114155207152210227304 halt
Structure representing an halt.
struct trace_event_t::@260131021033123353245355077257223364340026005263::@362362056063017021234245241062043041075034014237 user
User trace structure.
void * up2
Trace user parameter 2.
struct trace_event_t::@260131021033123353245355077257223364340026005263::@164062373271014110227054175141026212176372123043 sw
Structure representing a context switch.