18main(
int argc,
char **argv )
22 int numcmp, cid, active_components=0;
30 if (!
TESTS_QUIET) printf(
"Compiled-in components:\n");
31 for( cid = 0; cid < numcmp; cid++ ) {
54 test_fail( __FILE__, __LINE__,
"PAPI_disable_component should fail",
58 if (!
TESTS_QUIET) printf(
"\nAfter init components:\n");
59 for( cid = 0; cid < numcmp; cid++ ) {
64 printf(
"%d %d Name: %-23s %s\n",
72 test_fail( __FILE__, __LINE__,
"PAPI_get_component_index mismatch",
86 if (active_components>0) {
disables the specified component
returns the component index for the named component
get information about a specific software component
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]