1 /* SPDX-License-Identifier: Apache-2.0
2 * Copyright(c) 2022 Cisco Systems, Inc.
5 #ifndef included_stat_segment_shared_h
6 #define included_stat_segment_shared_h
10 STAT_DIR_TYPE_ILLEGAL = 0,
11 STAT_DIR_TYPE_SCALAR_INDEX,
12 STAT_DIR_TYPE_COUNTER_VECTOR_SIMPLE,
13 STAT_DIR_TYPE_COUNTER_VECTOR_COMBINED,
14 STAT_DIR_TYPE_NAME_VECTOR,
16 STAT_DIR_TYPE_SYMLINK,
17 } stat_directory_type_t;
21 stat_directory_type_t type;
32 uint8_t **string_vector;
34 #define VLIB_STATS_MAX_NAME_SZ 128
35 char name[VLIB_STATS_MAX_NAME_SZ];
39 * Shared header first in the shared memory segment.
45 volatile uint64_t epoch;
46 volatile uint64_t in_progress;
47 volatile vlib_stats_entry_t *directory_vector;
48 } vlib_stats_shared_header_t;
50 #endif /* included_stat_segment_shared_h */