9static const char*
names[
NUM_EVENTS] = {
"READ_CALLS",
"READ_BYTES",
"READ_USEC",
"WRITE_CALLS",
"WRITE_BYTES",
"WRITE_USEC"};
16 fprintf(
stderr,
"PAPI_library_init version mismatch\n");
20 fprintf(
stderr,
"appio: PAPI library initialized\n");
25 fprintf(
stderr,
"Error creating event set\n");
35 fprintf(
stderr,
"Error getting code for %s\n",
names[e]);
40 fprintf(
stderr,
"Error adding %s to event set\n",
names[e]);
46 fprintf(
stderr,
"appio: starting PAPI counters; main program will follow\n");
48 fprintf(
stderr,
"Error in PAPI_start\n");
58 fprintf(
stderr,
"Error in PAPI_stop_counters\n");
60 fprintf(
stderr,
"\nappio: PAPI counts (for pid=%6d)\n"
61 "appio: ----------------------------\n", (
int)getpid());
add PAPI preset or native hardware event to an event set
Create a new empty PAPI EventSet.
Convert a name to a numeric hardware event code.
initialize the PAPI library.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
static const char * names[NUM_EVENTS]
static long long values[NUM_EVENTS]
unsigned long AO_t __attribute__((__aligned__(4)))
Return codes and api definitions.