aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp/stats/stat_segment_shared.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpp/stats/stat_segment_shared.h')
-rw-r--r--src/vpp/stats/stat_segment_shared.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/vpp/stats/stat_segment_shared.h b/src/vpp/stats/stat_segment_shared.h
index 982bddd66b6..b09e2b5618f 100644
--- a/src/vpp/stats/stat_segment_shared.h
+++ b/src/vpp/stats/stat_segment_shared.h
@@ -31,11 +31,10 @@ typedef struct
{
stat_directory_type_t type;
union {
- uint64_t offset;
uint64_t index;
uint64_t value;
+ void *data;
};
- uint64_t offset_vector;
char name[128]; // TODO change this to pointer to "somewhere"
} stat_segment_directory_entry_t;
@@ -45,11 +44,11 @@ typedef struct
typedef struct
{
uint64_t version;
+ void *base;
volatile uint64_t epoch;
volatile uint64_t in_progress;
- volatile uint64_t directory_offset;
- volatile uint64_t error_offset;
- volatile uint64_t stats_offset;
+ volatile stat_segment_directory_entry_t *directory_vector;
+ volatile uint64_t **error_vector;
} stat_segment_shared_header_t;
static inline void *