Go to the source code of this file.
|
| #define | IFNAME "lo" |
| | Prints the values of several net events specified by names.
|
| |
| #define | PINGADDR "127.0.0.1" |
| |
| #define | NUM_EVENTS 4 |
| |
◆ IFNAME
- Author
- Jose Pedro Oliveira
test case for the linux-net component
Definition at line 24 of file net_values_by_name.c.
◆ NUM_EVENTS
◆ PINGADDR
| #define PINGADDR "127.0.0.1" |
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 29 of file net_values_by_name.c.
30{
38 };
41 int total_events=0;
42
43
45
46
50 }
51
53 printf("Net events by name\n");
54 }
55
56
61 }
62
63 total_events++;
64 }
65
66
68
72 }
73
77 }
78
82 }
83
84
85
86
90 }
91
95 }
96
99 printf("%#x %-24s = %lld\n",
101 }
102 }
103
107 }
108
112 }
113
115
116 return 0;
117}
add multiple PAPI presets or native hardware events to an event set
Empty and destroy an EventSet.
Create a new empty PAPI EventSet.
Empty and destroy an EventSet.
Convert a name to a numeric hardware event code.
initialize the PAPI library.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
char event_name[2][PAPI_MAX_STR_LEN]
#define IFNAME
Prints the values of several net events specified by names.
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)