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

Tests for kernel profiling . More...

Functions

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

Detailed Description

Tests for kernel profiling .

Function Documentation

◆ test_call_stacks_analyze_idle()

void test_call_stacks_analyze_idle ( void )

#include </home/runner/work/safety-doc/zephyr/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 </home/runner/work/safety-doc/zephyr/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 </home/runner/work/safety-doc/zephyr/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()