FD.io VPP  v18.07-rc0-415-g6c78436
Vector Packet Processing
stat_client.c File Reference
+ Include dependency graph for stat_client.c:

Go to the source code of this file.

Data Structures

struct  cached_pointer_t
 

Macros

#define foreach_cached_pointer
 

Functions

static int stat_segment_connect (stat_client_main_t *sm)
 
static void maybe_update_cached_pointers (stat_client_main_t *sm, ssvm_shared_header_t *shared_header)
 
static void stat_poll_loop (stat_client_main_t *sm)
 
int main (int argc, char **argv)
 

Variables

stat_client_main_t stat_client_main
 
cached_pointer_t cached_pointers []
 

Macro Definition Documentation

#define foreach_cached_pointer
Value:
_(/sys/vector_rate, SCALAR_POINTER, &stat_client_main.vector_rate_ptr) \
_(/sys/input_rate, SCALAR_POINTER, &stat_client_main.input_rate_ptr) \
_(/sys/last_update, SCALAR_POINTER, &stat_client_main.last_runtime_ptr) \
_(/sys/last_stats_clear, SCALAR_POINTER, \
_(/if/rx, COUNTER_VECTOR, &stat_client_main.intfc_rx_counters) \
_(/if/tx, COUNTER_VECTOR, &stat_client_main.intfc_tx_counters) \
_(/err/0/counter_vector, VECTOR_POINTER, \
_(serialized_nodes, SERIALIZED_NODES, \
stat_client_main_t stat_client_main
Definition: stat_client.c:22
vlib_counter_t ** intfc_rx_counters
Definition: stat_client.h:39
u64 * thread_0_error_counts
Definition: stat_client.h:43
vlib_counter_t ** intfc_tx_counters
Definition: stat_client.h:40
f64 * last_runtime_stats_clear_ptr
Definition: stat_client.h:31

Definition at line 72 of file stat_client.c.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 331 of file stat_client.c.

+ Here is the call graph for this function:

static void maybe_update_cached_pointers ( stat_client_main_t sm,
ssvm_shared_header_t shared_header 
)
static

Definition at line 99 of file stat_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void stat_poll_loop ( stat_client_main_t sm)
static

Definition at line 141 of file stat_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int stat_segment_connect ( stat_client_main_t sm)
static

Definition at line 25 of file stat_client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

cached_pointer_t cached_pointers[]
Initial value:
= {
#define _(n,t,p)
}
#define foreach_cached_pointer
Definition: stat_client.c:72

Definition at line 92 of file stat_client.c.

stat_client_main_t stat_client_main

Definition at line 22 of file stat_client.c.