Compute clock cycle count on ARM Cortex-a8 BeagleBone Black
问题 I want to compute the clock cycle count for a specific function inside my c code which is going to be compiled and run on BeagleBone Black. I have no idea how I can do this. I searched over the web and I found this instruction: Clock Read method on Arndale board: Step-1: Inserting kernel module to enable user space access to PMU counters. Untar the attached file “arndale_clockread.tar.bz2” which is having Makefile and enableccnt.c. In Makefile change the “KERNELDIR” with your kernel source