22#define PINGADDR "127.0.0.1"
24int main (
int argc,
char **argv)
45 printf(
"Trying all net events\n");
50 for(cid=0; cid<numcmp; cid++) {
53 test_fail(__FILE__, __LINE__,
"PAPI_get_component_info failed\n",-1);
57 printf(
"Component %d - %d events - %s\n", cid,
61 if ( strstr(cmpinfo->
name,
"net") == NULL) {
130 if (total_events==0) {
131 test_skip(__FILE__,__LINE__,
"No net events found", 0);
add PAPI preset or native hardware event to an event set
Empty and destroy an EventSet.
Create a new empty PAPI EventSet.
Empty and destroy an EventSet.
Enumerate PAPI preset or native events for a given component.
Convert a numeric hardware event code to a name.
get information about a specific software component
initialize the PAPI library.
Get the number of components available on the system.
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 value of every net event (by code)
Return codes and api definitions.
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)
char name[PAPI_MAX_STR_LEN]