From 58fd481d73dce9c276facb42b9a9c3488c25417d Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Mon, 14 Mar 2022 13:04:38 +0100 Subject: stats: refactor vlib counters Change-Id: I09d2da73eff42c52ba1373acc99ff28f283a6725 Type: improvement Signed-off-by: Damjan Marion --- src/vlib/counter.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vlib/counter.h') 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) */ -- cgit 1.2.3-korg