core_portme.c | |
portable_malloc | Provide malloc() functionality in a platform specific way. |
portable_free | Provide free() functionality in a platform specific way. |
TIMER_RES_DIVIDER | Divider to trade off timer resolution and total time that can be measured. |
start_time | This function will be called right before starting the timed portion of the benchmark. |
stop_time | This function will be called right after ending the timed portion of the benchmark. |
get_time | Return an abstract “ticks” number that signifies time on the system. |
time_in_secs | Convert the value returned by get_time to seconds. |
portable_init | Target specific initialization code Test for some common mistakes. |
portable_fini | Target specific final code |
core_start_parallel | Start benchmarking in a parallel context. |
core_stop_parallel | Stop a parallel context execution of coremark, and gather the results. |
CORE_TICKS get_time( void )
Return an abstract “ticks” number that signifies time on the system.
Actual value returned may be cpu cycles, milliseconds or any other value, as long as it can be converted to seconds by time_in_secs. This methodology is taken to accomodate any hardware or simulated platform. The sample implementation returns millisecs by default, and the resolution is controlled by TIMER_RES_DIVIDER
secs_ret time_in_secs( CORE_TICKS ticks )
Convert the value returned by get_time to seconds.
The secs_ret type is used to accomodate systems with no support for floating point. Default implementation implemented by the EE_TICKS_PER_SEC macro above.
Provide malloc() functionality in a platform specific way.
void *portable_malloc( size_t size )
Provide free() functionality in a platform specific way.
void portable_free( void * p )
This function will be called right before starting the timed portion of the benchmark.
void start_time( void )
This function will be called right after ending the timed portion of the benchmark.
void stop_time( void )
Return an abstract “ticks” number that signifies time on the system.
CORE_TICKS get_time( void )
Convert the value returned by get_time to seconds.
secs_ret time_in_secs( CORE_TICKS ticks )
Target specific initialization code Test for some common mistakes.
void portable_init( core_portable * p, int * argc, char * argv[] )
Target specific final code
void portable_fini( core_portable * p )