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 26 of file PAPI_get_opt.c.
42 printf(
"Library initialization error! \n");
53 printf(
"This machine has %d counters.\n",num);
87 printf(
" Total instructions: %lld Total Cycles: %lld \n",
values[0],
int PAPI_stop(int EventSet, long long *values)
int PAPI_add_event(int EventSet, int EventCode)
A pointer to the following is passed to PAPI_set/get_opt()
int PAPI_set_opt(int option, PAPI_option_t *ptr)
int poorly_tuned_function()
int PAPI_library_init(int version)
int PAPI_get_opt(int option, PAPI_option_t *ptr)
int PAPI_create_eventset(int *EventSet)
#define ERROR_RETURN(retval)
int PAPI_start(int EventSet)
static long long values[NUM_EVENTS]
◆ poorly_tuned_function()
| int poorly_tuned_function |
( |
| ) |
|