A.8.49. CADI::CADIGetCycleCount()

This method gets the current cycle count.

virtual CADIReturn_t CADI::CADIGetCycleCount(uint64_t &cycleCount, 
                                             bool systemCycles) = 0;
cycleCount

is the returned cycle count. This must be pre-initialized by the caller and assigned by the callee.

systemCycles

if true, the method returns the system cycle count. If false, the method returns return the target specific cycle count.

Note

Not all targets support cycleCount or systemCycles. If not supported, the target returns either:

  • an approximation to the cycle count such as, for example, the instruction count

  • the error value CADI_STATUS_CmdNotSupported.

Copyright © 2014 ARM. All rights reserved.ARM DUI 0842B
Non-ConfidentialID111014