https://github.com/jerinjacobk/armv8_pmu_cycle_counter_el0
I got that application in user-space can not access "PMCCNTR_EL0" commonly. So, I cross-compiled kernel-space code in github project above and insmod gennerated ko file on my rk3399 board.
However, I still could not access PMCCNTR_EL0 regsiter after that. I wonder that how could I fix it?
Hi again,Each core has its own Performance Monitoring Unit (PMU), and its own PMCCNTR_EL0, so the cycle counts read are per-core.Sorry, I don't recognise the error message that you are seeing. Is that coming from GCC?Are you using Arm Development Studio? This forum is for questions about Arm Development Studio.For questions about Arm processors, try the Architectures and Processors forum atcommunity.arm.com/.../architectures-and-processors-forumThe use of PMCCNTR_EL0 has been asked about by other people - try searching the Arm Community forum for "PMCCNTR_EL0" to see those discussions, e.g. community.arm.com/.../arm-v8-pmu-cycle-counterHope this helpsStephen