|
ChibiOS 21.11.4
|
Trace buffer record. More...
#include <chtrace.h>

Data Fields | |
| uint32_t | type:3 |
| Record type. | |
| uint32_t | state:5 |
| Switched out thread state. | |
| uint32_t | rtstamp:24 |
| Accurate time stamp. | |
| systime_t | time |
| System time stamp of the switch event. | |
| union { | |
| struct { | |
| thread_t * ntp | |
| Switched in thread. More... | |
| void * wtobjp | |
| Object where going to sleep. More... | |
| } sw | |
| Structure representing a context switch. More... | |
| struct { | |
| thread_t * tp | |
| Thread made ready. More... | |
| msg_t msg | |
| Ready message. More... | |
| } rdy | |
| Structure representing a thread becoming ready. More... | |
| struct { | |
| const char * name | |
ISR function name taken using __func__. More... | |
| } isr | |
| Structure representing an ISR enter. More... | |
| struct { | |
| const char * reason | |
| Halt error string. More... | |
| } halt | |
| Structure representing an halt. More... | |
| struct { | |
| void * up1 | |
| Trace user parameter 1. More... | |
| void * up2 | |
| Trace user parameter 2. More... | |
| } user | |
| User trace structure. More... | |
| } | u |
| uint32_t trace_event_t::type |
Record type.
Definition at line 112 of file chtrace.h.
Referenced by __trace_halt(), __trace_isr_enter(), __trace_isr_leave(), __trace_object_init(), __trace_ready(), __trace_switch(), and chTraceWriteI().
| uint32_t trace_event_t::state |
Switched out thread state.
Definition at line 116 of file chtrace.h.
Referenced by __trace_halt(), __trace_isr_enter(), __trace_isr_leave(), __trace_ready(), __trace_switch(), and chTraceWriteI().
| uint32_t trace_event_t::rtstamp |
Accurate time stamp.
PORT_SUPPORTS_RT else it is set to zero. Definition at line 122 of file chtrace.h.
Referenced by trace_next().
| systime_t trace_event_t::time |
System time stamp of the switch event.
Definition at line 126 of file chtrace.h.
Referenced by trace_next().
| thread_t* trace_event_t::ntp |
| void* trace_event_t::wtobjp |
Object where going to sleep.
Definition at line 139 of file chtrace.h.
Referenced by __trace_switch().
| struct { ... } trace_event_t::sw |
Structure representing a context switch.
Referenced by __trace_switch().
| thread_t* trace_event_t::tp |
| msg_t trace_event_t::msg |
| struct { ... } trace_event_t::rdy |
Structure representing a thread becoming ready.
Referenced by __trace_ready().
| const char* trace_event_t::name |
ISR function name taken using __func__.
Definition at line 161 of file chtrace.h.
Referenced by __trace_isr_enter(), and __trace_isr_leave().
| struct { ... } trace_event_t::isr |
Structure representing an ISR enter.
Referenced by __trace_isr_enter(), and __trace_isr_leave().
| const char* trace_event_t::reason |
| struct { ... } trace_event_t::halt |
Structure representing an halt.
Referenced by __trace_halt().
| void* trace_event_t::up1 |
| void* trace_event_t::up2 |
| struct { ... } trace_event_t::user |
User trace structure.
Referenced by chTraceWriteI().
| union { ... } trace_event_t::u |
Referenced by __trace_halt(), __trace_isr_enter(), __trace_isr_leave(), __trace_ready(), __trace_switch(), and chTraceWriteI().