|
PAPI
5.0.1.0
|

Go to the source code of this file.
Functions | |
| void | clockcore (void) |
| int | main (int argc, char **argv) |
Variables | |
| int | TESTS_QUIET |
| void clockcore | ( | void | ) |
Definition at line 99 of file clockcore.c.
{
/* check PAPI_get_real_cyc */
clock_res_check( 0 );
/* check PAPI_get_real_usec */
clock_res_check( 1 );
/* check PAPI_get_virt_cyc */
/* Virtual */
if ( PAPI_get_virt_cyc( ) != -1 ) {
clock_res_check( 2 );
} else
test_fail( __FILE__, __LINE__, "PAPI_get_virt_cyc", -1 );
/* check PAPI_get_virt_usec */
if ( PAPI_get_virt_usec( ) != -1 ) {
clock_res_check( 3 );
} else
test_fail( __FILE__, __LINE__, "PAPI_get_virt_usec", -1 );
}


| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 28 of file clockres.c.
{
int retval;
tests_quiet( argc, argv ); /* Set TESTS_QUIET variable */
if ( ( retval =
PAPI_library_init( PAPI_VER_CURRENT ) ) != PAPI_VER_CURRENT )
test_fail( __FILE__, __LINE__, "PAPI_library_init", retval );
if ( ( retval = PAPI_set_debug( PAPI_VERB_ECONT ) ) != PAPI_OK )
test_fail( __FILE__, __LINE__, "PAPI_set_debug", retval );
if ( !TESTS_QUIET ) {
printf( "Test case: Clock latency and resolution.\n" );
printf( "-----------------------------------------------\n" );
}
clockcore( );
test_pass( __FILE__, NULL, 0 );
exit( 1 );
}

| int TESTS_QUIET |
Definition at line 11 of file test_utils.c.