diff options
author | Ole Troan <ot@cisco.com> | 2019-02-26 22:14:13 +0100 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-03-01 09:19:10 +0000 |
commit | 1be5206814e9bae825b320b21bbe22618f8cd214 (patch) | |
tree | 759bbd6c169bb1c6fee2e3dcc8201168b82c1a5f /src/vpp/stats/stat_segment.h | |
parent | 2885b38993305e87f889860cfff44388c547c161 (diff) |
stats: Add node names in /sys/nodes/names
Change-Id: I9c92d51cc0e9dccf3c3726c4de8d7f15537778c9
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/vpp/stats/stat_segment.h')
-rw-r--r-- | src/vpp/stats/stat_segment.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vpp/stats/stat_segment.h b/src/vpp/stats/stat_segment.h index 917b512aecb..6e75e6338d4 100644 --- a/src/vpp/stats/stat_segment.h +++ b/src/vpp/stats/stat_segment.h @@ -33,6 +33,7 @@ typedef enum STAT_COUNTER_NODE_CALLS, STAT_COUNTER_NODE_SUSPENDS, STAT_COUNTER_INTERFACE_NAMES, + STAT_COUNTER_NODE_NAMES, STAT_COUNTERS } stat_segment_counter_t; @@ -46,7 +47,8 @@ typedef enum _(NODE_VECTORS, COUNTER_VECTOR_SIMPLE, vectors, /sys/node) \ _(NODE_CALLS, COUNTER_VECTOR_SIMPLE, calls, /sys/node) \ _(NODE_SUSPENDS, COUNTER_VECTOR_SIMPLE, suspends, /sys/node) \ - _(INTERFACE_NAMES, NAME_VECTOR, names, /if) + _(INTERFACE_NAMES, NAME_VECTOR, names, /if) \ + _(NODE_NAMES, NAME_VECTOR, names, /sys/node) typedef struct { @@ -104,6 +106,7 @@ typedef struct uword *directory_vector_by_name; stat_segment_directory_entry_t *directory_vector; u8 **interfaces; + u8 **nodes; clib_spinlock_t *stat_segment_lockp; clib_socket_t *socket; |