RTEMS  5.1
Functions
cpucounterread.c File Reference

Cortex-R performace counters. More...

#include <rtems/counter.h>
#include <rtems/sysinit.h>
#include <libcpu/arm-cp15.h>
#include <bsp.h>

Functions

uint32_t _CPU_Counter_frequency (void)
 Returns the current CPU counter frequency in Hz. More...
 
CPU_Counter_ticks _CPU_Counter_read (void)
 Returns the current CPU counter value. More...
 
 RTEMS_SYSINIT_ITEM (tms570_cpu_counter_initialize, RTEMS_SYSINIT_CPU_COUNTER, RTEMS_SYSINIT_ORDER_FIRST)
 

Detailed Description

Cortex-R performace counters.

The counters setup functions are these which has been suggested on StackOverflow

Code is probably for use on Cortex-A without modifications as well.

http://stackoverflow.com/questions/3247373/how-to-measure-program-execution-time-in-arm-cortex-a8-processor