52 long long values[2] = { 0, 0 };
70 test_fail( __FILE__, __LINE__,
"PAPI_get_hardware_info", 2 );
83 "PAPI_TOT_INS not available on this Sun platform!", 0 );
91 if (!
quiet) printf(
"Trouble adding event\n");
92 test_skip(__FILE__,__LINE__,
"Event trouble",1);
146 #if defined(linux) || defined(__ia64__) || defined(_POWER4) 156 (
"Test case: Overflow dispatch of 1st event in set with 1 event.\n" );
158 (
"--------------------------------------------------------------\n" );
159 printf(
"Threshold for overflow is: %d\n",
mythreshold );
160 printf(
"Using %d iterations of c += a*b\n",
NUM_FLOPS );
161 printf(
"-----------------------------------------------\n" );
163 printf(
"Test type : %16d%16d\n", 1, 2 );
165 printf(
"Overflows : %16s%16d\n",
"",
total );
166 printf(
"-----------------------------------------------\n" );
168 printf(
"Verification:\n" );
174 printf(
"Row 3 approximately equals %u +- %u %%\n",
194 test_fail( __FILE__, __LINE__,
"Overflows", 1 );
char event_name[2][PAPI_MAX_STR_LEN]
int PAPI_stop(int EventSet, long long *values)
void test_pass(const char *filename)
int PAPI_add_event(int EventSet, int EventCode)
int PAPI_overflow(int EventSet, int EventCode, int threshold, int flags, PAPI_overflow_handler_t handler)
void test_skip(const char *file, int line, const char *call, int retval)
int PAPI_library_init(int version)
char model_string[PAPI_MAX_STR_LEN]
int PAPI_create_eventset(int *EventSet)
int PAPI_event_code_to_name(int EventCode, char *out)
char vendor_string[PAPI_MAX_STR_LEN]
int PAPI_query_event(int EventCode)
void handler(int EventSet, void *address, long long overflow_vector, void *context)
int tests_quiet(int argc, char **argv)
void test_fail(const char *file, int line, const char *call, int retval)
int find_nonderived_event(void)
static long long mythreshold
int PAPI_start(int EventSet)
const PAPI_hw_info_t * PAPI_get_hardware_info(void)
static long long values[NUM_EVENTS]
static const PAPI_hw_info_t * hw_info