eventname.c File Reference

Include dependency graph for eventname.c:

Go to the source code of this file.

Functions

int main (int argc, char **argv)

Variables

int TESTS_QUIET

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 5 of file eventname.c.

00006 {
00007     int retval;
00008     int preset;
00009 
00010     tests_quiet( argc, argv );  /* Set TESTS_QUIET variable */
00011 
00012     if ( ( retval =
00013            PAPI_library_init( PAPI_VER_CURRENT ) ) != PAPI_VER_CURRENT )
00014         test_fail( __FILE__, __LINE__, "PAPI_library_init", retval );
00015 
00016     retval = PAPI_event_name_to_code( "PAPI_FP_INS", &preset );
00017     if ( retval != PAPI_OK )
00018         test_fail( __FILE__, __LINE__, "PAPI_event_name_to_code", retval );
00019     if ( preset != PAPI_FP_INS )
00020         test_fail( __FILE__, __LINE__, "Wrong preset returned", retval );
00021 
00022     retval = PAPI_event_name_to_code( "PAPI_TOT_CYC", &preset );
00023     if ( retval != PAPI_OK )
00024         test_fail( __FILE__, __LINE__, "PAPI_event_name_to_code", retval );
00025     if ( preset != PAPI_TOT_CYC )
00026         test_fail( __FILE__, __LINE__,
00027                    "*preset returned did not equal PAPI_TOT_CYC", retval );
00028 
00029     test_pass( __FILE__, NULL, 0 );
00030     exit( 1 );
00031 }

Here is the call graph for this function:


Variable Documentation

Definition at line 11 of file test_utils.c.


Generated on 17 Nov 2016 for PAPI by  doxygen 1.6.1