20 int main (
int argc,
char **argv)
43 printf(
"Trying all lustre events\n");
48 for(cid=0; cid<numcmp; cid++) {
51 test_fail(__FILE__, __LINE__,
"PAPI_get_component_info failed\n", 0);
54 if (strstr(cmpinfo->
name,
"lustre")) {
55 if (!
quiet) printf(
"\tFound lustre component %d - %s\n", cid, cmpinfo->
name);
68 printf(
"Error translating %#x\n",code);
70 "PAPI_event_code_to_name",
retval );
80 "PAPI_create_eventset()",
retval);
86 "PAPI_add_event()",
retval);
104 "PAPI_cleanup_eventset()",
retval);
110 "PAPI_destroy_eventset()",
retval);
119 if (total_events==0) {
120 test_skip(__FILE__,__LINE__,
"No lustre events found",0);
124 printf(
"Note: for this test the values are expected to all be 0 as no I/O happens during the test.\n");
char event_name[2][PAPI_MAX_STR_LEN]
int PAPI_stop(int EventSet, long long *values)
const PAPI_component_info_t * PAPI_get_component_info(int cidx)
void test_pass(const char *filename)
int PAPI_add_event(int EventSet, int EventCode)
int main(int argc, char **argv)
int PAPI_num_components(void)
Return codes and api definitions.
void test_skip(const char *file, int line, const char *call, int retval)
int PAPI_library_init(int version)
char name[PAPI_MAX_STR_LEN]
int PAPI_enum_cmp_event(int *EventCode, int modifier, int cidx)
#define NUM_EVENTS
Tests basic lustre functionality.
int PAPI_cleanup_eventset(int EventSet)
int PAPI_create_eventset(int *EventSet)
int PAPI_event_code_to_name(int EventCode, char *out)
int tests_quiet(int argc, char **argv)
void test_fail(const char *file, int line, const char *call, int retval)
int PAPI_destroy_eventset(int *EventSet)
int PAPI_start(int EventSet)
static long long values[NUM_EVENTS]