Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
Profiling

Tests for kernel profiling. More...

Functions

void test_call_stacks_analyze_main (void)
 Test stack usage through main thread. More...
 
void test_call_stacks_analyze_idle (void)
 Test stack usage through idle thread. More...
 
void test_call_stacks_analyze_workq (void)
 Test stack usage through system workqueue. More...
 

Detailed Description

Tests for kernel profiling.

Function Documentation

◆ test_call_stacks_analyze_idle()

void test_call_stacks_analyze_idle ( void  )

#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()

◆ test_call_stacks_analyze_main()

void test_call_stacks_analyze_main ( void  )

#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()

◆ test_call_stacks_analyze_workq()

void test_call_stacks_analyze_workq ( void  )

#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()