FD.io VPP
v20.05.1-5-g09f167997
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | stat_segment_gauges_pool_t |
struct | stat_segment_main_t |
Macros | |
#define | foreach_stat_segment_counter_name |
#define | STAT_SEGMENT_DEFAULT_SIZE (32<<20) |
#define | STAT_SEGMENT_VERSION 1 |
#define | STAT_SEGMENT_INDEX_INVALID UINT32_MAX |
Typedefs | |
typedef void(* | stat_segment_update_fn) (stat_segment_directory_entry_t *e, u32 i) |
Functions | |
static uint64_t | stat_segment_offset (void *start, void *data) |
clib_error_t * | stat_segment_register_gauge (u8 *names, stat_segment_update_fn update_fn, u32 index) |
clib_error_t * | stat_segment_register_state_counter (u8 *name, u32 *index) |
clib_error_t * | stat_segment_deregister_state_counter (u32 index) |
void | stat_segment_set_state_counter (u32 index, u64 value) |
Variables | |
stat_segment_main_t | stat_segment_main |
#define foreach_stat_segment_counter_name |
Definition at line 43 of file stat_segment.h.
#define STAT_SEGMENT_DEFAULT_SIZE (32<<20) |
Definition at line 62 of file stat_segment.h.
#define STAT_SEGMENT_INDEX_INVALID UINT32_MAX |
Definition at line 67 of file stat_segment.h.
#define STAT_SEGMENT_VERSION 1 |
Definition at line 65 of file stat_segment.h.
typedef void(* stat_segment_update_fn) (stat_segment_directory_entry_t *e, u32 i) |
Definition at line 75 of file stat_segment.h.
Definition at line 23 of file stat_segment.h.
clib_error_t* stat_segment_deregister_state_counter | ( | u32 | index | ) |
Definition at line 933 of file stat_segment.c.
|
inlinestatic |
clib_error_t* stat_segment_register_gauge | ( | u8 * | names, |
stat_segment_update_fn | update_fn, | ||
u32 | index | ||
) |
clib_error_t* stat_segment_register_state_counter | ( | u8 * | name, |
u32 * | index | ||
) |
Definition at line 898 of file stat_segment.c.
stat_segment_main_t stat_segment_main |
Definition at line 27 of file stat_segment.c.