52 for (j = 0; j <
vec_len (my_counters); j++)
69 for (j = 0; j <
vec_len (my_counters); j++)
72 my_counters[j].
bytes = 0;
#define vec_validate(V, I)
Make sure vector is long enough for given index (no header, unspecified alignment) ...
void serialize_vlib_simple_counter_main(serialize_main_t *m, va_list *va)
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_validate_combined_counter(vlib_combined_counter_main_t *cm, u32 index)
validate a combined counter
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)
vlib_counter_t ** counters
Per-thread u64 non-atomic counter pairs.
void vlib_clear_combined_counters(vlib_combined_counter_main_t *cm)
Clear a collection of combined counters.
uint64_t counter_t
64bit counters
void unserialize_vlib_simple_counter_main(serialize_main_t *m, va_list *va)
A collection of simple counters.
void serialize_vlib_combined_counter_main(serialize_main_t *m, va_list *va)
counter_t packets
packet counter
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 clib_warning(format, args...)
void * vlib_stats_push_heap(void *)
void vlib_validate_simple_counter(vlib_simple_counter_main_t *cm, u32 index)
validate a simple counter
void unserialize_vlib_combined_counter_main(serialize_main_t *m, va_list *va)
counter_t bytes
byte counter
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
A collection of combined counters.
counter_t ** counters
Per-thread u64 non-atomic counters.
void vlib_clear_simple_counters(vlib_simple_counter_main_t *cm)
Clear a collection of simple counters.
void vlib_stats_pop_heap(void *, void *, u32, int)
static vlib_thread_main_t * vlib_get_thread_main()
#define CLIB_CACHE_LINE_BYTES