20{
26
27
29
30
34
36 printf( "Test case code2name.c: "
37 "Check limits and indexing of event tables.\n");
38 printf( "Looking for PAPI_TOT_CYC...\n" );
39 }
40
44 }
45
47
49
51 printf( "Looking for highest defined preset event "
52 "(PAPI_FP_OPS): %#x...\n",code );
53 }
54
58
60
62
64 printf( "Looking for highest allocated preset event:"
65 " %#x...\n", code );
66 }
67
71 }
72 else {
74 }
75
77
79 printf( "Looking for highest possible preset event:"
80 " %#x...\n", code );
81 }
82
84
87 }
88 else {
90 }
91
92
93
94
97
99 printf( "Looking for first native event: %#x...\n", code );
100 }
101
104 if (!
quiet) printf(
"Could not find first native event\n");
106 }
107 else {
109 }
110
111
112
113
115 if ( cmp_info == NULL ) {
118 }
119
123
126 }
127
129 if (!
quiet) printf(
"Looking for last native event: %#x...\n", code );
133 }
134 else {
136 }
137
138
139
141 if (!
quiet) printf(
"Looking for highest definable native event: %#x...\n", code );
145 }
146 else {
148 }
149
152 }
153
155
156 return 1;
157}
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.
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
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)