>From this link , you can see readtsc() means this only support on x86 ,tsc register is 64bit register and clock with main clock , on x86/64 this is can very precise
On ARM, use generic PIT,(maybe you should write your own driver ) , only limit is almost PIT register is 32bit 2014-02-25 10:49 GMT+08:00 Grissiom <chaos.pro...@gmail.com>: > On Mon, Feb 24, 2014 at 10:26 PM, Paddu <pradeep.mudig...@gmail.com>wrote: > >> Hi, >> >> We need some advice in measuring Beaglebone CPU(Cortex-A8) clock cycles. >> Is there any way to measure the CPU cycles and use it inside the program? >> I have heard about "ccnt" register but don't know how exactly could we >> use that in the program. >> Please let me know if there is a reference or pointers on how to >> implement the code. >> >> > Do you want to measure cycles in Linux program or baremetal program? If > you are on Linux, this link: > > http://halobates.de/modern-pmus-yokohama.pdf > > may help you. If not, read the PMU section in the ARM ARM. > > -- > Cheers, > Grissiom > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to beagleboard+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.