I have the following in my KCONFIG file
Performance Monitor Drivers
menu “Performance monitor support”
depends on PERF_EVENTS && (ARM || ARM64)
bool "ARM PMU framework"
Say y if you want to use CPU performance monitors on ARM-based
depends on PERF_EVENTS && ARCH_XGENE
bool "APM X-Gene SoC PMU"
Say y if you want to use APM X-Gene SoC performance monitors.
And I do not find any difference between this code and the one in the link. Does this mean it is already selected.
One more question is that, I was trying to run the simpleperf command on the default android already given with the board, and I do not get the location of the kernel config in that.