Hw perf events are not supported in kernel 5.4.108 version

From: sindhu krishnan
Date: Wed Nov 09 2022 - 15:46:29 EST


Hi,

I'm trying to access performance counters of ARM processors on the
Broadcom/Technicolor SoC.
When running perf stat it shows that the Hardware performance counters
are not supported.
Also, perf list doesn't show any hardware event, only software ones.
I've compiled Linux with Yocto, kernel 5.4.108.
I'm using the below kernel configs:
CONFIG_HW_PERF_EVENTS=y
CONFIG_PERF_EVENTS=y
CONFIG_DEBUG_PERF_USE_VMALLOC=y

I was able to get the hardware events with 4.9 version in the same target.
Please help me to understand why it doesn't work.

Thank you,
Sindhu