156 if ( cmpinfo == NULL ) {
182 test_fail( __FILE__, __LINE__,
"PAPI_assign_eventset_component",
186 if (!
TESTS_QUIET) printf(
"\nTest case CREATE: Call PAPI_set_opt(PAPI_DOMAIN) on EventSet before add\n" );
201 options.domain.eventset = EventSet3;
211 test_fail( __FILE__, __LINE__,
"PAPI_add_event(PAPI_TOT_INS)",
retval );
215 test_fail( __FILE__, __LINE__,
"PAPI_add_event(PAPI_TOT_CYC)",
retval );
219 test_fail( __FILE__, __LINE__,
"PAPI_add_event(PAPI_TOT_INS)",
retval );
223 test_fail( __FILE__, __LINE__,
"PAPI_add_event(PAPI_TOT_CYC)",
retval );
227 test_fail( __FILE__, __LINE__,
"PAPI_add_event(PAPI_TOT_INS)",
retval );
230 if (!
TESTS_QUIET) printf(
"\nTest case MIDDLE: Call PAPI_set_opt(PAPI_DOMAIN) on EventSet between adds\n" );
246 options.domain.eventset = EventSet3;
256 test_fail( __FILE__, __LINE__,
"PAPI_add_event(PAPI_TOT_CYC)",
retval );
259 if (!
TESTS_QUIET) printf(
"\nTest case ADD: Call PAPI_set_opt(PAPI_DOMAIN) on EventSet after add\n" );
274 options.domain.eventset = EventSet3;
291 if (!
TESTS_QUIET) printf(
"\nTest case CHANGE 1: Change domain on EventSet between runs, using generic domain options:\n" );
331 if (!
TESTS_QUIET) printf(
"\nTest case CHANGE 2: Change domain on EventSets to include/exclude supervisor events:\n" );
352 test_fail( __FILE__, __LINE__,
"PAPI_set_domain ALL^SUPERVISOR ",
retval );
360 test_fail( __FILE__, __LINE__,
"PAPI_set_domain SUPERVISOR ",
retval );
int PAPI_stop(int EventSet, long long *values)
const PAPI_component_info_t * PAPI_get_component_info(int cidx)
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)
void test_skip(const char *file, int line, const char *call, int retval)
int PAPI_library_init(int version)
#define PAPI_DOM_SUPERVISOR
void free_test_space(long long **values, int num_tests)
int PAPI_cleanup_eventset(int EventSet)
int PAPI_assign_eventset_component(int EventSet, int cidx)
int PAPI_create_eventset(int *EventSet)
void dump_and_verify(int test_case, long long **values)
int PAPI_query_event(int EventCode)
void test_fail(const char *file, int line, const char *call, int retval)
int PAPI_destroy_eventset(int *EventSet)
PAPI_domain_option_t domain
int PAPI_start(int EventSet)
static long long values[NUM_EVENTS]
long long ** allocate_test_space(int num_tests, int num_events)