13 printf(
"Expected error in %s: %s\n", call,
19main(
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 );
Enumerate PAPI preset or native events.
Convert a numeric hardware event code to a name.
get information about a specific software component
initialize the PAPI library.
Returns a string describing the PAPI error code.
static void test_continue(const char *call, int retval)
char event_name[2][PAPI_MAX_STR_LEN]
static struct temp_event * last
#define PAPI_NATIVE_AND_MASK
#define PAPI_PRESET_AND_MASK
#define PAPI_MAX_PRESET_EVENTS
Return codes and api definitions.
int tests_quiet(int argc, char **argv)
void PAPI_NORETURN test_fail(const char *file, int line, const char *call, int retval)
void PAPI_NORETURN test_pass(const char *filename)
void PAPI_NORETURN test_skip(const char *file, int line, const char *call, int retval)