19{
22 int numcmp, cid, active_components=0;
23
24
26
27
29
30 if (!
TESTS_QUIET) printf(
"Compiled-in components:\n");
31 for( cid = 0; cid < numcmp; cid++ ) {
33
36 }
37
41 }
42 }
43
44
45
49 }
50
51
54 test_fail( __FILE__, __LINE__,
"PAPI_disable_component should fail",
56 }
57
58 if (!
TESTS_QUIET) printf(
"\nAfter init components:\n");
59 for( cid = 0; cid < numcmp; cid++ ) {
60
62
64 printf( "%d %d Name: %-23s %s\n",
65 cid,
68
69 }
70
72 test_fail( __FILE__, __LINE__,
"PAPI_get_component_index mismatch",
73 2 );
74 }
75
76
80 }
81 } else {
82 active_components++;
83 }
84 }
85
86 if (active_components>0) {
88 }
89
91
93}
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.
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]