This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 2dd05d8512fe74d8135b3a71d8e052abb6008a72 Author: Marco Casaroli <[email protected]> AuthorDate: Tue Nov 3 21:45:47 2026 +0100 arch/arm/fvp-v8r-aarch32: Start the perf counter with ARCH_PERF_EVENTS. The FVP board never calls up_perf_init(), so the PMU cycle counter does not run and its rate stays ULONG_MAX. With ARCH_PERF_EVENTS (the default with SCHED_CRITMONITOR) all perf times are then 0. Call up_perf_init() at the end of arm_boot() with CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC, as the AArch64 fvp-v8r board does. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- arch/arm/src/fvp-v8r-aarch32/fvp_boot.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/src/fvp-v8r-aarch32/fvp_boot.c b/arch/arm/src/fvp-v8r-aarch32/fvp_boot.c index 27657975f93..fd13aad1a88 100644 --- a/arch/arm/src/fvp-v8r-aarch32/fvp_boot.c +++ b/arch/arm/src/fvp-v8r-aarch32/fvp_boot.c @@ -97,4 +97,8 @@ void arm_boot(void) arm_earlyserialinit(); #endif + +#ifdef CONFIG_ARCH_PERF_EVENTS + up_perf_init((void *)CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC); +#endif }
