339 long long start_values[4] = { 0,0,0,0 },
values[4] = {0,0,0,0};
355 test_fail(__FILE__,__LINE__,
"PAPI_assign_eventset_component",
retval );
359 test_skip(__FILE__, __LINE__,
"Multiplex not supported", 1);
399 printf(
"read @start counter[%d]: %lld\n",
401 printf(
"read @stop counter[%d]: %lld\n",
403 printf(
"difference counter[%d]: %lld\n ",
404 j,
values[j]-start_values[j]);
406 if (
values[j]-start_values[j] < 0LL) {
407 test_fail(__FILE__,__LINE__,
"Difference in start and stop resulted in negative value!", 0 );
int PAPI_stop(int EventSet, long long *values)
int PAPI_add_event(int EventSet, int EventCode)
static int PAPI_events_len
void test_skip(const char *file, int line, const char *call, int retval)
static void init_papi(int *out_events, int *len)
int PAPI_cleanup_eventset(int EventSet)
int PAPI_assign_eventset_component(int EventSet, int cidx)
int PAPI_create_eventset(int *EventSet)
int PAPI_event_code_to_name(int EventCode, char *out)
void test_fail(const char *file, int line, const char *call, int retval)
int PAPI_set_multiplex(int EventSet)
int PAPI_read(int EventSet, long long *values)
int PAPI_start(int EventSet)
static long long values[NUM_EVENTS]
static int PAPI_events[TOTAL_EVENTS]