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.
- Author
- Tony Castaldo Corrected missing include file for the strstr() function to be used.
Definition at line 25 of file infiniband_umad_list_events.c.
44 printf(
"Listing all net events\n");
49 for(cid=0; cid<numcmp; cid++) {
52 test_fail(__FILE__, __LINE__,
"PAPI_get_component_info failed\n",-1);
55 if ( strstr(cmpinfo->
name,
"infiniband") == NULL) {
60 printf(
"Component %d (%d) - %d events - %s\n",
86 if (total_events==0) {
87 test_skip(__FILE__,__LINE__,
"No net 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)