This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

get cycle counts after reset for a53 processor

noticed that there is a signal for generic timer called:

CNTVALUEB[63:0] Input Global system counter value in binary format

in  Cortex®-A53 MPCore Processor Revision: r0p4 Technical Reference Manual A.6 

how to get the value?

since I wanna the cycle counts after reset of processor, not the periodic counts after reset of PMCCNTR_EL0.

thanks.

Parents
  • Note, the Global Count (what's signalled by CNTVALUEB) is not a cycle count.  The Global System Count is a fixed frequency count, usually incrementing in the low MHz or in newer systems at 1GHz, used to track the progress of time. To get the current System Count, you can read CNTPCT_EL0.  You can learn more about the System Count and Generic Timers here: Documentation – Arm Developer 

    If what you want is a cycles (which aren't necessarily fixed frequency), then try using PMCCNTR_EL0 

Reply
  • Note, the Global Count (what's signalled by CNTVALUEB) is not a cycle count.  The Global System Count is a fixed frequency count, usually incrementing in the low MHz or in newer systems at 1GHz, used to track the progress of time. To get the current System Count, you can read CNTPCT_EL0.  You can learn more about the System Count and Generic Timers here: Documentation – Arm Developer 

    If what you want is a cycles (which aren't necessarily fixed frequency), then try using PMCCNTR_EL0 

Children
No data