|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
51 my_counters =
cm->counters[
i];
53 for (j = 0; j <
vec_len (my_counters); j++)
68 my_counters =
cm->counters[
i];
70 for (j = 0; j <
vec_len (my_counters); j++)
73 my_counters[j].
bytes = 0;
void * vlib_stats_push_heap(void *old)
void vlib_free_simple_counter(vlib_simple_counter_main_t *cm)
u32 vlib_simple_counter_n_counters(const vlib_simple_counter_main_t *cm)
The number of counters (not the number of per-thread counters)
void vlib_clear_combined_counters(vlib_combined_counter_main_t *cm)
Clear a collection of combined counters.
void vlib_free_combined_counter(vlib_combined_counter_main_t *cm)
void vlib_validate_combined_counter(vlib_combined_counter_main_t *cm, u32 index)
validate a combined counter
int vlib_validate_combined_counter_will_expand(vlib_combined_counter_main_t *cm, u32 index)
void vlib_stats_pop_heap(void *cm_arg, void *oldheap, u32 cindex, stat_directory_type_t type)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
Combined counter to hold both packets and byte differences.
#define vec_validate_aligned(V, I, A)
Make sure vector is long enough for given index (no header, specified alignment)
uint64_t counter_t
64bit counters
vnet_feature_config_main_t * cm
#define vec_validate(V, I)
Make sure vector is long enough for given index (no header, unspecified alignment)
counter_t packets
packet counter
#define CLIB_CACHE_LINE_BYTES
u32 vlib_combined_counter_n_counters(const vlib_combined_counter_main_t *cm)
The number of counters (not the number of per-thread counters)
#define vec_free(V)
Free vector's memory (no header).
A collection of combined counters.
counter_t bytes
byte counter
void vlib_validate_simple_counter(vlib_simple_counter_main_t *cm, u32 index)
validate a simple counter
A collection of simple counters.
#define vec_resize_will_expand(V, N)
Determine if vector will resize with next allocation.
static vlib_thread_main_t * vlib_get_thread_main()
void vlib_clear_simple_counters(vlib_simple_counter_main_t *cm)
Clear a collection of simple counters.
static clib_mem_heap_t * clib_mem_set_heap(clib_mem_heap_t *heap)
void vlib_stats_delete_cm(void *cm_arg)