|
PAPI
5.7.0.0
|
net component This file contains the source code for a component that enables PAPI-C to access network statistics through the /proc file system. This component will dynamically create a native events table for all the interfaces listed in /proc/net/dev (16 entries for each interface). More...

Go to the source code of this file.
Data Structures | |
| struct | temp_event |
| struct | net_counters |
Macros | |
| #define | NET_REFRESH_LATENCY 1000000 |
| #define | NET_PROC_FILE "/proc/net/dev" |
| #define | NET_PROC_MAX_LINE (IFNAMSIZ + 16 * (20 + 1) + 16) |
| #define | NET_INVALID_RESULT -1 |
| #define | NET_INTERFACE_COUNTERS 16 |
Functions | |
| static int | generateNetEventList (void) |
| static int | getInterfaceBaseIndex (const char *ifname) |
| static int | read_net_counters (long long *values) |
| static int | _net_init_thread (hwd_context_t *ctx) |
| static int | _net_init_component (int cidx) |
| static int | _net_init_control_state (hwd_control_state_t *ctl) |
| static int | _net_start (hwd_context_t *ctx, hwd_control_state_t *ctl) |
| static int | _net_read (hwd_context_t *ctx, hwd_control_state_t *ctl, long long **events, int flags) |
| static int | _net_stop (hwd_context_t *ctx, hwd_control_state_t *ctl) |
| static int | _net_shutdown_thread (hwd_context_t *ctx) |
| static int | _net_shutdown_component (void) |
| static int | _net_ctl (hwd_context_t *ctx, int code, _papi_int_option_t *option) |
| static int | _net_update_control_state (hwd_control_state_t *ctl, NativeInfo_t *native, int count, hwd_context_t *ctx) |
| static int | _net_set_domain (hwd_control_state_t *ctl, int domain) |
| int | _net_reset (hwd_context_t *ctx, hwd_control_state_t *ctl) |
| static int | _net_ntv_enum_events (unsigned int *EventCode, int modifier) |
| static int | _net_ntv_name_to_code (const char *name, unsigned int *EventCode) |
| static int | _net_ntv_code_to_name (unsigned int EventCode, char *name, int len) |
| static int | _net_ntv_code_to_descr (unsigned int EventCode, char *name, int len) |
| static int | _net_ntv_code_to_bits (unsigned int EventCode, hwd_register_t *bits) |
Variables | |
| papi_vector_t | _net_vector |
| static NET_native_event_entry_t * | _net_native_events =NULL |
| static int | num_events = 0 |
| static int | is_initialized = 0 |
| static long long | _net_register_start [NET_MAX_COUNTERS] |
| static long long | _net_register_current [NET_MAX_COUNTERS] |
| static struct temp_event * | root = NULL |
| static const struct net_counters | _net_counter_info [NET_INTERFACE_COUNTERS] |
Definition in file linux-net.c.
| #define NET_INTERFACE_COUNTERS 16 |
Definition at line 71 of file linux-net.c.
| #define NET_INVALID_RESULT -1 |
Definition at line 51 of file linux-net.c.
| #define NET_PROC_FILE "/proc/net/dev" |
Definition at line 44 of file linux-net.c.
| #define NET_PROC_MAX_LINE (IFNAMSIZ + 16 * (20 + 1) + 16) |
Definition at line 49 of file linux-net.c.
| #define NET_REFRESH_LATENCY 1000000 |
Definition at line 42 of file linux-net.c.
|
static |
Definition at line 469 of file linux-net.c.
|
static |
Definition at line 299 of file linux-net.c.

|
static |
Definition at line 354 of file linux-net.c.
|
static |
Definition at line 286 of file linux-net.c.
|
static |
Definition at line 621 of file linux-net.c.
|
static |
Definition at line 604 of file linux-net.c.
|
static |
Definition at line 587 of file linux-net.c.
|
static |
Definition at line 532 of file linux-net.c.
|
static |
Definition at line 567 of file linux-net.c.
|
static |
Definition at line 385 of file linux-net.c.

| int _net_reset | ( | hwd_context_t * | ctx, |
| hwd_control_state_t * | ctl | ||
| ) |
Definition at line 519 of file linux-net.c.
|
static |
Definition at line 508 of file linux-net.c.
|
static |
Definition at line 447 of file linux-net.c.
|
static |
Definition at line 435 of file linux-net.c.
|
static |
Definition at line 363 of file linux-net.c.

|
static |
Definition at line 413 of file linux-net.c.

|
static |
Definition at line 480 of file linux-net.c.
|
static |
Definition at line 106 of file linux-net.c.


|
static |
|
static |
Definition at line 200 of file linux-net.c.


|
static |
|
static |
Definition at line 54 of file linux-net.c.
|
static |
Definition at line 60 of file linux-net.c.
|
static |
Definition at line 59 of file linux-net.c.
| papi_vector_t _net_vector |
Definition at line 35 of file linux-net.c.
|
static |
Definition at line 57 of file linux-net.c.
|
static |
Definition at line 56 of file linux-net.c.
|
static |
Definition at line 68 of file linux-net.c.