7int main(
int argc,
char **argv )
13 char *EventName[] = {
"PAPI_TOT_CYC",
"PAPI_TOT_INS" };
20 printf (
"PAPI_VERSION : %4d %6d %7d\n",
62 printf(
"%12lld \t\t --> %s \n",
values[
i],
add multiple PAPI presets or native hardware events to an event set
Create a new empty PAPI EventSet.
Convert a name to a numeric hardware event code.
initialize the PAPI library.
Finish using PAPI and free all related resources.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
Returns a string describing the PAPI error code.
char events[MAX_EVENTS][BUFSIZ]
static long long values[NUM_EVENTS]
Return codes and api definitions.
#define PAPI_VERSION_REVISION(x)
#define PAPI_VERSION_MAJOR(x)
#define PAPI_VERSION_MINOR(x)