17main(
int argc,
char **argv )
23 int numcmp, cid, our_cid;
39 for( cid = 0; cid < numcmp; cid++ )
45 test_fail( __FILE__, __LINE__,
"PAPI_get_component_info", 2 );
62 printf(
"Getting information about event: %#x failed\n",
i);
70 printf(
"%d %d %s\n",cid,our_cid,info.
symbol);
72 test_fail( __FILE__, __LINE__,
"component mismatch", 1 );
76 printf(
"%d %d %s\n",cid,our_cid,info.
symbol);
Enumerate PAPI preset or native events for a given component.
get information about a specific software component
return component an event belongs to
Get the event's name and description info.
initialize the PAPI library.
Get the number of components available on the system.
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)
char description[PAPI_MAX_STR_LEN]
char name[PAPI_MAX_STR_LEN]
char disabled_reason[PAPI_HUGE_STR_LEN]
char symbol[PAPI_HUGE_STR_LEN]