|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef included_stat_segment_h
17 #define included_stat_segment_h
40 #define foreach_stat_segment_node_counter_name \
41 _ (NODE_CLOCKS, COUNTER_VECTOR_SIMPLE, clocks, /sys/node) \
42 _ (NODE_VECTORS, COUNTER_VECTOR_SIMPLE, vectors, /sys/node) \
43 _ (NODE_CALLS, COUNTER_VECTOR_SIMPLE, calls, /sys/node) \
44 _ (NODE_SUSPENDS, COUNTER_VECTOR_SIMPLE, suspends, /sys/node)
46 #define foreach_stat_segment_counter_name \
47 _ (NUM_WORKER_THREADS, SCALAR_INDEX, num_worker_threads, /sys) \
48 _ (INPUT_RATE, SCALAR_INDEX, input_rate, /sys) \
49 _ (LAST_UPDATE, SCALAR_INDEX, last_update, /sys) \
50 _ (LAST_STATS_CLEAR, SCALAR_INDEX, last_stats_clear, /sys) \
51 _ (HEARTBEAT, SCALAR_INDEX, heartbeat, /sys) \
52 _ (INTERFACE_NAMES, NAME_VECTOR, names, /if) \
53 _ (NODE_NAMES, NAME_VECTOR, names, /sys/node) \
54 foreach_stat_segment_node_counter_name
58 #define STAT_SEGMENT_DEFAULT_SIZE (32<<20)
61 #define STAT_SEGMENT_VERSION 2
63 #define STAT_SEGMENT_INDEX_INVALID UINT32_MAX
119 u32 index2,
u8 lock);
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)
stat_segment_shared_header_t * shared_header
void(* stat_segment_update_fn)(stat_segment_directory_entry_t *e, u32 i)
stat_segment_directory_entry_t * directory_vector
void stat_segment_set_state_counter(u32 index, u64 value)
void stat_segment_poll_add(u32 vector_index, stat_segment_update_fn update_fn, u32 caller_index, u32 interval)
void vlib_stat_segment_unlock(void)
@ STAT_COUNTER_INTERFACE_NAMES
stat_segment_gauges_pool_t * gauges
@ STAT_COUNTER_INPUT_RATE
@ STAT_COUNTER_NODE_SUSPENDS
clib_error_t * stat_segment_deregister_state_counter(u32 index)
@ STAT_COUNTER_NODE_NAMES
u32 stat_segment_new_entry(u8 *name, stat_directory_type_t t)
void vlib_stat_segment_lock(void)
void vlib_stats_register_symlink(void *oldheap, u8 *name, u32 index1, u32 index2, u8 lock)
@ STAT_COUNTER_NODE_VECTORS
void stat_provider_register_vector_rate(u32 num_workers)
@ STAT_COUNTER_LAST_UPDATE
sll srl srl sll sra u16x4 i
@ STAT_COUNTER_NODE_CALLS
@ STAT_COUNTER_NUM_WORKER_THREADS
@ STAT_COUNTER_LAST_STATS_CLEAR
stat_segment_update_fn fn
uword * directory_vector_by_name
clib_mem_page_sz_t log2_page_sz
struct _socket_t clib_socket_t
stat_segment_main_t stat_segment_main
void vlib_stats_register_mem_heap(clib_mem_heap_t *heap)
@ STAT_COUNTER_NODE_CLOCKS
volatile u64 ** error_vector
clib_spinlock_t * stat_segment_lockp