Zephyr Project API 3.7.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Profiling

Tests for kernel profiling. More...

Functions

 ZTEST (profiling_api, test_call_stacks_analyze_main)
 Test stack usage through main thread.
 
 ZTEST (profiling_api_1cpu, test_call_stacks_analyze_idle)
 Test stack usage through idle thread.
 
 ZTEST (profiling_api_1cpu, test_call_stacks_analyze_workq)
 Test stack usage through system workqueue.
 

Detailed Description

Tests for kernel profiling.

Function Documentation

◆ ZTEST() [1/3]

ZTEST ( profiling_api  ,
test_call_stacks_analyze_main   
)

#include <tests/kernel/profiling/profiling_api/src/main.c>

Test stack usage through main thread.

This test prints the main, idle, interrupt and system workqueue stack usage through main thread.

See also
k_thread_foreach(), log_stack_usage()

◆ ZTEST() [2/3]

ZTEST ( profiling_api_1cpu  ,
test_call_stacks_analyze_idle   
)

#include <tests/kernel/profiling/profiling_api/src/main.c>

Test stack usage through idle thread.

This test prints the main, idle, interrupt and system workqueue stack usage through idle thread.

See also
k_thread_foreach(), pm_system_suspend(), pm_system_resume(), log_stack_usage()

◆ ZTEST() [3/3]

ZTEST ( profiling_api_1cpu  ,
test_call_stacks_analyze_workq   
)

#include <tests/kernel/profiling/profiling_api/src/main.c>

Test stack usage through system workqueue.

This test prints the main, idle, interrupt and system workqueue stack usage through system workqueue.

See also
k_thread_foreach(), k_work_init(), k_work_submit(), log_stack_usage()