Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Hook points used by tracing backends. More...

Topics

 Thread
 Tracing hooks for thread events.
 Work item
 Tracing hooks for work item events.
 Work queue
 Tracing hooks for work queue events.
 Delayable work item
 Tracing hooks for delayable work item events.
 Triggered work item
 Tracing hooks for triggered work item events.
 Polling
 Tracing hooks for polling events.
 Semaphore
 Tracing hooks for semaphore events.
 Mutex
 Tracing hooks for mutex events.
 Conditional variable
 Tracing hooks for conditional variable events.
 Queue
 Tracing hooks for queue events.
 FIFO
 Tracing hooks for FIFO events.
 LIFO
 Tracing hooks for LIFO events.
 Stack
 Tracing hooks for stack events.
 Message queue
 Tracing hooks for message queue events.
 Mailbox
 Tracing hooks for mailbox events.
 Pipe
 Tracing hooks for pipe events.
 Heap
 Tracing hooks for heap events.
 Memory slab
 Tracing hooks for memory slab events.
 Timer
 Tracing hooks for timer events.
 Event
 Tracing hooks for event events.
 System PM
 Tracing hooks for system power management events.
 PM Device Runtime
 Tracing hooks for device runtime power management events.
 Network
 Tracing hooks for network events.
 Network socket
 Tracing hooks for network socket events.
 User-defined event
 Tracing hooks for user-defined named events.
 GPIO
 Tracing hooks for GPIO events.
 RTIO Tracing APIs
 RTIO Tracing APIs.
 Syscall Tracing
 Tracing hooks for system calls.

Files

file  tracing.h
 Main header file for tracing subsystem API.

Macros

#define sys_trace_sys_init_enter(entry, level)
 Called when entering an init function.
#define sys_trace_sys_init_exit(entry, level, result)
 Called when exiting an init function.

Functions

void sys_trace_isr_enter (void)
 Called when entering an ISR.
void sys_trace_isr_exit (void)
 Called when exiting an ISR.
void sys_trace_isr_exit_to_scheduler (void)
 Called when exiting an ISR and switching to scheduler.
void sys_trace_idle (void)
 Called when the cpu enters the idle state.
void sys_trace_idle_exit (void)
 Called when the cpu exits the idle state.

Detailed Description

Hook points used by tracing backends.

Macros invoked across kernel and subsystem code to mark entry, blocking, exit, and various lifecycle events.

Macro Definition Documentation

◆ sys_trace_sys_init_enter

#define sys_trace_sys_init_enter ( entry,
level )

#include <zephyr/tracing/tracing.h>

Called when entering an init function.

◆ sys_trace_sys_init_exit

#define sys_trace_sys_init_exit ( entry,
level,
result )

#include <zephyr/tracing/tracing.h>

Called when exiting an init function.

Function Documentation

◆ sys_trace_idle()

void sys_trace_idle ( void )

#include <zephyr/tracing/tracing.h>

Called when the cpu enters the idle state.

◆ sys_trace_idle_exit()

void sys_trace_idle_exit ( void )

#include <zephyr/tracing/tracing.h>

Called when the cpu exits the idle state.

◆ sys_trace_isr_enter()

void sys_trace_isr_enter ( void )

#include <zephyr/tracing/tracing.h>

Called when entering an ISR.

◆ sys_trace_isr_exit()

void sys_trace_isr_exit ( void )

#include <zephyr/tracing/tracing.h>

Called when exiting an ISR.

◆ sys_trace_isr_exit_to_scheduler()

void sys_trace_isr_exit_to_scheduler ( void )

#include <zephyr/tracing/tracing.h>

Called when exiting an ISR and switching to scheduler.