FD.io VPP  v16.06
Vector Packet Processing
counter.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vlib_simple_counter_main_t
 
struct  vlib_counter_t
 
struct  vlib_mini_counter_t
 
struct  vlib_combined_counter_main_t
 

Macros

#define vlib_counter_len(cm)   vec_len((cm)->maxi)
 

Functions

always_inline void vlib_increment_simple_counter (vlib_simple_counter_main_t *cm, u32 cpu_index, u32 index, u32 increment)
 
always_inline u64 vlib_get_simple_counter (vlib_simple_counter_main_t *cm, u32 index)
 
always_inline void vlib_zero_simple_counter (vlib_simple_counter_main_t *cm, u32 index)
 
always_inline void vlib_counter_add (vlib_counter_t *a, vlib_counter_t *b)
 
always_inline void vlib_counter_sub (vlib_counter_t *a, vlib_counter_t *b)
 
always_inline void vlib_counter_zero (vlib_counter_t *a)
 
void vlib_clear_simple_counters (vlib_simple_counter_main_t *cm)
 
void vlib_clear_combined_counters (vlib_combined_counter_main_t *cm)
 
always_inline void vlib_increment_combined_counter (vlib_combined_counter_main_t *cm, u32 cpu_index, u32 index, u32 packet_increment, u32 byte_increment)
 
static void vlib_get_combined_counter (vlib_combined_counter_main_t *cm, u32 index, vlib_counter_t *result)
 
always_inline void vlib_zero_combined_counter (vlib_combined_counter_main_t *cm, u32 index)
 
void vlib_validate_simple_counter (vlib_simple_counter_main_t *cm, u32 index)
 
void vlib_validate_combined_counter (vlib_combined_counter_main_t *cm, u32 index)
 

Variables

serialize_function_t serialize_vlib_simple_counter_main
 
serialize_function_t unserialize_vlib_simple_counter_main
 
serialize_function_t serialize_vlib_combined_counter_main
 
serialize_function_t unserialize_vlib_combined_counter_main
 

Macro Definition Documentation

#define vlib_counter_len (   cm)    vec_len((cm)->maxi)

Definition at line 301 of file counter.h.

Function Documentation

void vlib_clear_combined_counters ( vlib_combined_counter_main_t cm)

Definition at line 65 of file counter.c.

+ Here is the caller graph for this function:

void vlib_clear_simple_counters ( vlib_simple_counter_main_t cm)

Definition at line 42 of file counter.c.

+ Here is the caller graph for this function:

always_inline void vlib_counter_add ( vlib_counter_t a,
vlib_counter_t b 
)

Definition at line 148 of file counter.h.

+ Here is the caller graph for this function:

always_inline void vlib_counter_sub ( vlib_counter_t a,
vlib_counter_t b 
)

Definition at line 155 of file counter.h.

+ Here is the caller graph for this function:

always_inline void vlib_counter_zero ( vlib_counter_t a)

Definition at line 164 of file counter.h.

+ Here is the caller graph for this function:

static void vlib_get_combined_counter ( vlib_combined_counter_main_t cm,
u32  index,
vlib_counter_t result 
)
inlinestatic

Definition at line 248 of file counter.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

always_inline u64 vlib_get_simple_counter ( vlib_simple_counter_main_t cm,
u32  index 
)

Definition at line 93 of file counter.h.

+ Here is the caller graph for this function:

always_inline void vlib_increment_combined_counter ( vlib_combined_counter_main_t cm,
u32  cpu_index,
u32  index,
u32  packet_increment,
u32  byte_increment 
)

Definition at line 210 of file counter.h.

+ Here is the caller graph for this function:

always_inline void vlib_increment_simple_counter ( vlib_simple_counter_main_t cm,
u32  cpu_index,
u32  index,
u32  increment 
)

Definition at line 70 of file counter.h.

+ Here is the caller graph for this function:

void vlib_validate_combined_counter ( vlib_combined_counter_main_t cm,
u32  index 
)

Definition at line 106 of file counter.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vlib_validate_simple_counter ( vlib_simple_counter_main_t cm,
u32  index 
)

Definition at line 95 of file counter.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

always_inline void vlib_zero_combined_counter ( vlib_combined_counter_main_t cm,
u32  index 
)

Definition at line 277 of file counter.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

always_inline void vlib_zero_simple_counter ( vlib_simple_counter_main_t cm,
u32  index 
)

Definition at line 122 of file counter.h.

+ Here is the caller graph for this function:

Variable Documentation

serialize_function_t serialize_vlib_combined_counter_main

Definition at line 304 of file counter.h.

serialize_function_t serialize_vlib_simple_counter_main

Definition at line 303 of file counter.h.

serialize_function_t unserialize_vlib_combined_counter_main

Definition at line 304 of file counter.h.

serialize_function_t unserialize_vlib_simple_counter_main

Definition at line 303 of file counter.h.