zephyr/tests/subsys/debug/cpu_load/testcase.yaml
Kristoffer Rist Skøien ca2e98c4c9 debug: Added CPU usage callback
- Added a CPU load callback with threshold
- Changed cpu_load to use k_timer instead of k_work

Signed-off-by: Kristoffer Rist Skøien <kristoffer.skoien@nordicsemi.no>
2025-06-25 15:29:06 -10:00

33 lines
772 B
YAML

common:
tags: cpu_load
arch_allow:
- arm
- riscv
filter: CONFIG_CPU_LOAD
tests:
debug.cpu_load:
integration_platforms:
- mps2/an385
- qemu_cortex_m3
debug.cpu_load.counter:
platform_allow:
- nrf52840dk/nrf52840
- nrf54h20dk/nrf54h20/cpuapp
- qemu_cortex_m3
integration_platforms:
- nrf52840dk/nrf52840
- qemu_cortex_m3
extra_configs:
- CONFIG_CPU_LOAD_USE_COUNTER=y
debug.cpu_load.periodic_report:
integration_platforms:
- mps2/an385
- qemu_cortex_m3
extra_configs:
- CONFIG_CPU_LOAD_LOG_PERIODICALLY=50
- CONFIG_LOG=y
- CONFIG_TEST_LOGGING_DEFAULTS=n
- CONFIG_LOG_PRINTK=n
- CONFIG_LOG_BACKEND_UART=n
- CONFIG_LOG_MODE_IMMEDIATE=y