PAPI  5.4.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
clockres.c
Go to the documentation of this file.
1 
22 #include "papi_test.h"
23 
24 extern int TESTS_QUIET; /* Declared in test_utils.c */
25 extern void clockcore( void ); /* Declared in clockcore.c */
26 
27 int
28 main( int argc, char **argv )
29 {
30  int retval;
31 
32  tests_quiet( argc, argv ); /* Set TESTS_QUIET variable */
33 
34  if ( ( retval =
36  test_fail( __FILE__, __LINE__, "PAPI_library_init", retval );
37 
38  if ( ( retval = PAPI_set_debug( PAPI_VERB_ECONT ) ) != PAPI_OK )
39  test_fail( __FILE__, __LINE__, "PAPI_set_debug", retval );
40 
41  if ( !TESTS_QUIET ) {
42  printf( "Test case: Clock latency and resolution.\n" );
43  printf( "-----------------------------------------------\n" );
44  }
45 
46  clockcore( );
47 
48  test_pass( __FILE__, NULL, 0 );
49  exit( 1 );
50 }
#define PAPI_VERB_ECONT
Definition: papi.h:387
return PAPI_OK
Definition: linux-nvml.c:458
tests_quiet(argc, argv)
#define printf
Definition: papi_test.h:125
test_pass(__FILE__, NULL, 0)
int int argc
Definition: iozone.c:1609
int TESTS_QUIET
Definition: test_utils.c:11
char ** argv
Definition: iozone.c:1610
test_fail(__FILE__, __LINE__,"PAPI_library_init", retval)
int PAPI_library_init(int version)
Definition: papi.c:497
void clockcore(void)
Definition: clockcore.c:99
ssize_t retval
Definition: libasync.c:338
#define PAPI_VER_CURRENT
Definition: papi.h:223
int main(int argc, char **argv)
List all appio events codes and names.
void exit()
int PAPI_set_debug(int level)
Definition: papi.c:3070