13 printf(
"Expected error in %s: %s\n", call,
19 main(
int argc,
char **argv )
36 printf(
"Test case code2name.c: " 37 "Check limits and indexing of event tables.\n");
38 printf(
"Looking for PAPI_TOT_CYC...\n" );
51 printf(
"Looking for highest defined preset event " 52 "(PAPI_FP_OPS): %#x...\n",code );
64 printf(
"Looking for highest allocated preset event:" 79 printf(
"Looking for highest possible preset event:" 99 printf(
"Looking for first native event: %#x...\n", code );
104 if (!
quiet) printf(
"Could not find first native event\n");
115 if ( cmp_info == NULL ) {
129 if (!
quiet) printf(
"Looking for last native event: %#x...\n", code );
141 if (!
quiet) printf(
"Looking for highest definable native event: %#x...\n", code );
char event_name[2][PAPI_MAX_STR_LEN]
const PAPI_component_info_t * PAPI_get_component_info(int cidx)
void test_pass(const char *filename)
int PAPI_enum_event(int *EventCode, int modifier)
Return codes and api definitions.
void test_skip(const char *file, int line, const char *call, int retval)
#define PAPI_MAX_PRESET_EVENTS
int PAPI_library_init(int version)
static void test_continue(const char *call, int retval)
static struct temp_event * last
int main(int argc, char **argv)
int PAPI_event_code_to_name(int EventCode, char *out)
char * PAPI_strerror(int errorCode)
int tests_quiet(int argc, char **argv)
void test_fail(const char *file, int line, const char *call, int retval)
#define PAPI_NATIVE_AND_MASK
#define PAPI_PRESET_AND_MASK