ChibiOS/RT  5.1.0
ch_trace_event_t Struct Reference

Trace buffer record. More...

#include <chtrace.h>

Collaboration diagram for ch_trace_event_t:
Collaboration graph

Data Fields

uint32_t type:3
 Record type. More...
 
uint32_t state:5
 Switched out thread state. More...
 
uint32_t rtstamp:24
 Accurate time stamp. More...
 
systime_t time
 System time stamp of the switch event. More...
 
thread_tntp
 Switched in thread. More...
 
void * wtobjp
 Object where going to sleep. More...
 
struct {
   thread_t *   ntp
 Switched in thread. More...
 
   void *   wtobjp
 Object where going to sleep. More...
 
sw
 Structure representing a context switch. More...
 
const char * name
 ISR function name taken using func. More...
 
struct {
   const char *   name
 ISR function name taken using func. More...
 
isr
 Structure representing an ISR enter. More...
 
const char * reason
 Halt error string. More...
 
struct {
   const char *   reason
 Halt error string. More...
 
halt
 Structure representing an halt. More...
 
void * up1
 Trace user parameter 1. More...
 
void * up2
 Trace user parameter 2. More...
 
struct {
   void *   up1
 Trace user parameter 1. More...
 
   void *   up2
 Trace user parameter 2. More...
 
user
 User trace structure. More...
 

Detailed Description

Trace buffer record.

Definition at line 104 of file chtrace.h.

Field Documentation

uint32_t ch_trace_event_t::type

Record type.

Definition at line 108 of file chtrace.h.

Referenced by _trace_halt(), _trace_init(), _trace_isr_enter(), _trace_isr_leave(), _trace_switch(), and chDbgWriteTraceI().

uint32_t ch_trace_event_t::state

Switched out thread state.

Definition at line 112 of file chtrace.h.

Referenced by _trace_halt(), _trace_isr_enter(), _trace_isr_leave(), _trace_switch(), and chDbgWriteTraceI().

uint32_t ch_trace_event_t::rtstamp

Accurate time stamp.

Note
This field only available if the post supports PORT_SUPPORTS_RT else it is set to zero.

Definition at line 118 of file chtrace.h.

Referenced by trace_next().

systime_t ch_trace_event_t::time

System time stamp of the switch event.

Definition at line 122 of file chtrace.h.

Referenced by trace_next().

thread_t* ch_trace_event_t::ntp

Switched in thread.

Definition at line 131 of file chtrace.h.

void* ch_trace_event_t::wtobjp

Object where going to sleep.

Definition at line 135 of file chtrace.h.

struct { ... } ch_trace_event_t::sw

Structure representing a context switch.

Referenced by _trace_switch().

const char* ch_trace_event_t::name

ISR function name taken using func.

Definition at line 144 of file chtrace.h.

struct { ... } ch_trace_event_t::isr

Structure representing an ISR enter.

Referenced by _trace_isr_enter(), and _trace_isr_leave().

const char* ch_trace_event_t::reason

Halt error string.

Definition at line 153 of file chtrace.h.

struct { ... } ch_trace_event_t::halt

Structure representing an halt.

Referenced by _trace_halt().

void* ch_trace_event_t::up1

Trace user parameter 1.

Definition at line 162 of file chtrace.h.

void* ch_trace_event_t::up2

Trace user parameter 2.

Definition at line 166 of file chtrace.h.

struct { ... } ch_trace_event_t::user

User trace structure.

Referenced by chDbgWriteTraceI().