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/error.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/error.c')
-rw-r--r-- | src/vlib/error.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/vlib/error.c b/src/vlib/error.c index aa53324fa8f..9fc1e708b63 100644 --- a/src/vlib/error.c +++ b/src/vlib/error.c @@ -140,9 +140,10 @@ VLIB_REGISTER_NODE (misc_drop_buffers_node,static) = { }; /* *INDENT-ON* */ -void vlib_stats_register_error_index (u8 *, u64) __attribute__ ((weak)); +void vlib_stats_register_error_index (u8 *, u64 *, u64) + __attribute__ ((weak)); void -vlib_stats_register_error_index (u8 * notused, u64 notused2) +vlib_stats_register_error_index (u8 * notused, u64 * notused2, u64 notused3) { }; @@ -210,7 +211,8 @@ vlib_register_errors (vlib_main_t * vm, { error_name = format (0, "/err/%v/%s%c", n->name, error_strings[i], 0); /* Note: error_name consumed by the following call */ - vlib_stats_register_error_index (error_name, n->error_heap_index + i); + vlib_stats_register_error_index (error_name, em->counters, + n->error_heap_index + i); } } |