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

Hook points used by tracing backends. More...

Topics

 Syscall Tracing
 Tracing hooks for system calls.
 User-defined event
 Tracing hooks for user-defined named events.

Files

file  tracing.h
 Main header file for tracing subsystem API.
file  tracing_default_hooks.h
 Default implementations of the low-level sys_trace_* hook layer.
file  tracing_hooks.h
 Canonical tracing hook list.

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.