12#define ERROR_RETURN(retval) { fprintf(stderr, "Error %d %s:line %d: \n", retval,__FILE__,__LINE__); exit(retval); }
31 printf(
"Library initialization error! \n");
66 printf(
"Eventset is currently stopped or inactive \n");
68 printf(
"Eventset is currently running \n");
70 printf(
"Eventset is currently Paused \n");
72 printf(
" Eventset defined but not initialized \n");
74 printf(
" Eventset has overflowing enabled \n");
76 printf(
" Eventset has profiling enabled \n");
78 printf(
" Eventset has multiplexing enabled \n");
#define ERROR_RETURN(retval)
int printstate(int status)
add PAPI preset or native hardware event to an event set
Create a new empty PAPI EventSet.
initialize the PAPI library.
Finish using PAPI and free all related resources.
Start counting hardware events in an event set.
Return the counting state of an EventSet.
#define PAPI_MULTIPLEXING
Return codes and api definitions.