Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug: cpu_load: Extend support to RISCV architecture and nrf54h20 #87093

Merged
merged 3 commits into from
Mar 20, 2025

Conversation

nordic-krch
Copy link
Contributor

Add sys_trace_idle_exit to RISCV cpu idle functions.
Add sys_trace_idle and sys_trace_idle_exit to nrf54h20 specific idle states.

Fixes #87090.

@nashif
Copy link
Member

nashif commented Mar 14, 2025

how did the test tests/subsys/debug/cpu_load manage to run on riscv? it is filtered for cortex_m!!

masz-nordic
masz-nordic previously approved these changes Mar 14, 2025
Copy link
Member

@fkokosinski fkokosinski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ycsin
ycsin previously approved these changes Mar 18, 2025
@nordic-krch nordic-krch force-pushed the cpu_load_improv branch 2 times, most recently from 0299a36 to 318d77c Compare March 18, 2025 08:33
@nordic-krch
Copy link
Contributor Author

@nashif @fkokosinski test filtering updated. Can you take a look?

Copy link
Member

@henrikbrixandersen henrikbrixandersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would split commit titled "arch: riscv: Add support for CPU load measuring" into two; one commit for adding CPU load monitoring to the RISC-V arch, and one for changing the test suite.

Add sys_trace_idle_exit to RISCV cpu_idle functions and allow
enabling CPU_LOAD module for RISCV and disable it for SMP.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
Allow test execution for riscv since it now supports cpu_load module.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
Add calls to sys_trace_idle and sys_trace_idle_exit in nrf54h specific
idle states to allow measuring CPU load on nrf54h20 when power
management is enabled.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
@nordic-krch
Copy link
Contributor Author

I would split commit titled "arch: riscv: Add support for CPU load measuring" into two; one commit for adding CPU load monitoring to the RISC-V arch, and one for changing the test suite.

@henrikbrixandersen Done.

@kartben kartben merged commit 37fe750 into zephyrproject-rtos:main Mar 20, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Debugging area: RISCV RISCV Architecture (32-bit & 64-bit) platform: nRF Nordic nRFx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests/subsys/debug/cpu_load/debug.cpu_load fails at nrf54h20
10 participants