PAPI  5.3.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
error_codes.c File Reference
Include dependency graph for error_codes.c:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Variables

int _papi_hwi_num_errors
 

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 35 of file error_codes.c.

36 {
37  int i;
38  int retval;
39 
40  tests_quiet( argc, argv ); /* Set TESTS_QUIET variable */
41 
42  if ( ( retval =
44  test_fail( __FILE__, __LINE__, "PAPI_library_init", retval );
45 
46 
47  printf( "\n----------------------------------\n" );
48  printf( "For PAPI Version: %d.%d.%d.%d\n",
53  printf( "There are %d error codes defined\n", _papi_hwi_num_errors );
54  printf( "----------------------------------\n" );
55  for (i = 0; i < _papi_hwi_num_errors; i++) {
56  char *errstr;
57  errstr = PAPI_strerror( -i );
58  printf( "Error code %4d: %s\n", -i, errstr );
59  }
60  printf( "----------------------------------\n\n" );
61  exit( 1 );
62 }
#define PAPI_VERSION
Definition: fpapi.h:15
tests_quiet(argc, argv)
#define printf
Definition: papi_test.h:125
int int argc
Definition: iozone.c:1609
char ** argv
Definition: iozone.c:1610
test_fail(__FILE__, __LINE__,"PAPI_library_init", retval)
int PAPI_library_init(int version)
Definition: papi.c:495
int i
Definition: fileop.c:140
#define PAPI_VERSION_MAJOR(x)
Definition: papi.h:215
#define PAPI_VERSION_REVISION(x)
Definition: papi.h:217
#define PAPI_VER_CURRENT
Definition: fpapi.h:14
#define PAPI_VERSION_MINOR(x)
Definition: papi.h:216
int _papi_hwi_num_errors
Definition: papi_internal.c:59
char * PAPI_strerror(int errorCode)
Definition: papi.c:4470
ssize_t retval
Definition: libasync.c:338
#define PAPI_VERSION_INCREMENT(x)
Definition: papi.h:218
void exit()

Here is the call graph for this function:

Variable Documentation

int _papi_hwi_num_errors

Definition at line 59 of file papi_internal.c.