Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| | List all net events codes and names. More...
|
| |
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
- Author
- Jose Pedro Oliveira
test case for the linux-infiniband component Adapted from its counterpart in the net component.
Definition at line 22 of file infiniband_list_events.c.
41 printf(
"Listing all infiniband events\n");
46 for(cid=0; cid<numcmp; cid++) {
49 test_fail(__FILE__, __LINE__,
"PAPI_get_component_info failed\n",-1);
52 if ( strstr(cmpinfo->
name,
"infiniband") == NULL) {
57 printf(
"Component %d (%d) - %d events - %s\n",
62 test_skip(__FILE__,__LINE__,
"Component infiniband is disabled", 0);
87 if (total_events==0) {
88 test_skip(__FILE__,__LINE__,
"No infiniband events found", 0);
char event_name[2][PAPI_MAX_STR_LEN]
const PAPI_component_info_t * PAPI_get_component_info(int cidx)
void test_pass(const char *filename)
int PAPI_num_components(void)
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)
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)