I'm attempting to configure the performance counters on a Jetson TX1 which has the 64 bit cortex-A57. I'm trying to decipher the technical reference manual and use this guide Using the PMU Event Counters in DS-5 – DS-5 Development Studio – ARM Developer to attempt to set up the counters. The end goal is to be able to configure each counter individually and query each one on demand. Any help or guidance to help me accomplish this would be greatly appreciated. My understanding is that because its a 64 bit system I access the counters with the MSR/MRS rather than through p15. This is my reference that I've been working through to access the counters: ARM Information Center .
So far i have attempted to read, modify, write and the value is not writing properly along with a number of other issues.
The reference manual doesn't explicitly state how to set up the individual counters any help in this area will be appreciated. Thanks.
Hi,
PMCR_EL0[2] is the write only bit and read as zero according to "D7.4.7 PMCR_EL0, Performance Monitors Control Register" section of ARMv8-A ARM.
Best regards,
Yasuhiko Koumoto.
Thank you I was able to get it working now.