diff options
author | Ole Troan <ot@cisco.com> | 2018-09-04 13:19:12 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-09-17 10:07:27 +0000 |
commit | 58492a83722caf1c49977d73abf931418ce1f8f2 (patch) | |
tree | 0e2f7e031fbfa10c35448c9660292146aeb442b1 /src/vlib/counter.c | |
parent | 40ea3f59dca497e5f4b5a8440a9c8c2e37396701 (diff) |
STATS: Dynamically mapped shared memory segment
Move from using a hash to a vector with offsets into shared memory.
Limit exposure of VPP data structures and include files to
external stats library and applications.
Change-Id: Ic06129f12d10cf4c4946a86d9bc734eacff2c7da
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/vlib/counter.c')
-rw-r--r-- | src/vlib/counter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vlib/counter.c b/src/vlib/counter.c index 6afa73e0a7d..5c3350fceec 100644 --- a/src/vlib/counter.c +++ b/src/vlib/counter.c @@ -99,7 +99,7 @@ vlib_validate_simple_counter (vlib_simple_counter_main_t * cm, u32 index) vec_validate_aligned (cm->counters[i], index, CLIB_CACHE_LINE_BYTES); vlib_stats_pop_heap (cm, oldheap, - 3 /* STAT_DIR_TYPE_COUNTER_VECTOR_SIMPLE */ ); + 2 /* STAT_DIR_TYPE_COUNTER_VECTOR_SIMPLE */ ); } void @@ -114,7 +114,7 @@ vlib_validate_combined_counter (vlib_combined_counter_main_t * cm, u32 index) vec_validate_aligned (cm->counters[i], index, CLIB_CACHE_LINE_BYTES); vlib_stats_pop_heap (cm, oldheap, - 4 /*STAT_DIR_TYPE_COUNTER_VECTOR_COMBINED */ ); + 3 /*STAT_DIR_TYPE_COUNTER_VECTOR_COMBINED */ ); } u32 |