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 27 of file PAPI_set_domain.c.
45 printf(
"Library initialization error! \n");
72 fd =
open(
"/dev/zero", O_RDONLY);
75 perror(
"open(/dev/zero)");
85 printf(
" Total instructions: %lld Total Cycles: %lld \n",
values[0],
109 fd =
open(
"/dev/zero", O_RDONLY);
112 perror(
"open(/dev/zero)");
121 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()
#define ERROR_RETURN(retval)
int poorly_tuned_function()
int open(const char *pathname, int flags, mode_t mode)
int PAPI_library_init(int version)
int PAPI_create_eventset(int *EventSet)
int PAPI_set_domain(int domain)
int PAPI_start(int EventSet)
static long long values[NUM_EVENTS]
◆ poorly_tuned_function()
| int poorly_tuned_function |
( |
| ) |
|