Go to the source code of this file.
◆ ERROR_RETURN
| #define ERROR_RETURN |
( |
|
retval | ) |
{ fprintf(stderr, "Error %d %s:line %d: \n", retval,__FILE__,__LINE__); exit(retval); } |
◆ main()
Definition at line 23 of file PAPI_reset.c.
44 printf(
"Library initialization error! \n");
67 printf(
"The first time read value is %lld\n",
values[0]);
83 printf(
"The second time read value is %lld\n",
values[0]);
int PAPI_stop(int EventSet, long long *values)
int PAPI_add_event(int EventSet, int EventCode)
int PAPI_reset(int EventSet)
int PAPI_library_init(int version)
int PAPI_create_eventset(int *EventSet)
#define ERROR_RETURN(retval)
int poorly_tuned_function()
int PAPI_start(int EventSet)
static long long values[NUM_EVENTS]
◆ poorly_tuned_function()
| int poorly_tuned_function |
( |
| ) |
|