diff options
author | Damjan Marion <damarion@cisco.com> | 2022-03-14 13:04:38 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2022-03-14 20:30:06 +0000 |
commit | 58fd481d73dce9c276facb42b9a9c3488c25417d (patch) | |
tree | f299759229f606fdf83722c6682665e06e286fad /src/vlib/counter.h | |
parent | 92991e5c690e8ad55f9cf0fdb81c26c1d1143b7d (diff) |
stats: refactor vlib counters
Change-Id: I09d2da73eff42c52ba1373acc99ff28f283a6725
Type: improvement
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/counter.h')
-rw-r--r-- | src/vlib/counter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vlib/counter.h b/src/vlib/counter.h index 56701e8b391..f9da576a5f2 100644 --- a/src/vlib/counter.h +++ b/src/vlib/counter.h @@ -59,6 +59,7 @@ typedef struct counter_t **counters; /**< Per-thread u64 non-atomic counters */ char *name; /**< The counter collection's name. */ char *stat_segment_name; /**< Name in stat segment directory */ + u32 stats_entry_index; } vlib_simple_counter_main_t; /** The number of counters (not the number of per-thread counters) */ @@ -219,6 +220,7 @@ typedef struct vlib_counter_t **counters; /**< Per-thread u64 non-atomic counter pairs */ char *name; /**< The counter collection's name. */ char *stat_segment_name; /**< Name in stat segment directory */ + u32 stats_entry_index; } vlib_combined_counter_main_t; /** The number of counters (not the number of per-thread counters) */ |