25 main(
int argc,
char **argv )
48 if (!
quiet) printf(
"Trouble checking event\n");
49 test_skip( __FILE__, __LINE__,
"PAPI_query_event(PAPI_TOT_INS)",
54 test_fail( __FILE__, __LINE__,
"PAPI_add_event(PAPI_TOT_INS)",
retval );
69 printf(
"This test expects a 'PAPI Error' to be returned from this PAPI call.\n");
83 if ( strcmp( info1.
symbol,
"PAPI_TOT_INS" ) != 0 )
85 "PAPI_get_event_info symbol value is bogus",
retval );
88 "PAPI_get_event_info long_descr value is bogus",
retval );
103 "PAPI_event_name_to_code code value is bogus",
retval );
108 if ( strcmp( info2.
symbol,
"PAPI_TOT_INS" ) != 0 )
110 "PAPI_get_event_info symbol value is bogus",
retval );
113 "PAPI_get_event_info long_descr value is bogus",
retval );
int PAPI_stop(int EventSet, long long *values)
void test_pass(const char *filename)
int PAPI_add_event(int EventSet, int EventCode)
char long_descr[PAPI_HUGE_STR_LEN]
int PAPI_event_name_to_code(const char *in, int *out)
Return codes and api definitions.
int PAPI_get_event_info(int EventCode, PAPI_event_info_t *info)
void test_skip(const char *file, int line, const char *call, int retval)
int PAPI_library_init(int version)
char symbol[PAPI_HUGE_STR_LEN]
int PAPI_create_eventset(int *EventSet)
int PAPI_query_event(int EventCode)
int tests_quiet(int argc, char **argv)
void test_fail(const char *file, int line, const char *call, int retval)
int main(int argc, char **argv)
int PAPI_start(int EventSet)