hujun260 opened a new pull request, #21988: URL: https://github.com/apache/nuttx/pull/21988
# arm64: enable perf events for FVP protected builds ## Summary Enable ARM64 performance-event support in the FVP ARMv8-R protected configurations so the protected builds provide the `up_perf_gettime()` implementation required by `clock_perf.c`. ## Problem The protected FVP configurations failed at link time with: ```text aarch64-none-elf-ld: .../libs/libc/sched/clock_perf.c:88: undefined reference to `up_perf_gettime' ``` `clock_perf.c` calls `up_perf_gettime()`, while the ARM64 implementation is compiled when `CONFIG_ARCH_PERF_EVENTS` is enabled. ## Changes Enable the following option in both configurations: ```text CONFIG_ARCH_PERF_EVENTS=y ``` Updated configurations: - `boards/arm64/fvp-v8r/fvp-armv8r/configs/pnsh/defconfig` - `boards/arm64/fvp-v8r/fvp-armv8r/configs/pnsh_smp/defconfig` This enables the implementation in: ```text arch/arm64/src/common/arm64_perf.c ``` including: ```c clock_t up_perf_gettime(void); ``` ## Testing ```text $ git diff --check $ tools/checkpatch.sh -g apache/master..HEAD ✔️ All checks pass. ``` The change is limited to the two affected FVP defconfig files and ensures that both protected and SMP protected builds select the ARM64 performance-event implementation. ## Commit ```text 9f351a2c9ea arm64: enable perf events for FVP protected builds ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
