FD.io VPP  v19.01.1-17-ge106252
Vector Packet Processing
stat_segment.c File Reference
+ Include dependency graph for stat_segment.c:

Go to the source code of this file.

Functions

void vlib_stat_segment_lock (void)
 
void vlib_stat_segment_unlock (void)
 
void * vlib_stats_push_heap (void)
 
static u32 lookup_or_create_hash_index (void *oldheap, char *name, u32 next_vector_index)
 
void vlib_stats_pop_heap (void *cm_arg, void *oldheap, stat_directory_type_t type)
 
void vlib_stats_register_error_index (u8 *name, u64 *em_vec, u64 index)
 
static void stat_validate_counter_vector (stat_segment_directory_entry_t *ep, u32 max)
 
void vlib_stats_pop_heap2 (u64 *error_vector, u32 thread_index, void *oldheap)
 
clib_error_tvlib_map_stat_segment_init (void)
 
static int name_sort_cmp (void *a1, void *a2)
 
static u8format_stat_dir_entry (u8 *s, va_list *args)
 
static clib_error_tshow_stat_segment_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static void update_node_counters (stat_segment_main_t *sm)
 
static void do_stat_segment_updates (stat_segment_main_t *sm)
 
static clib_error_tstats_socket_accept_ready (clib_file_t *uf)
 
static void stats_segment_socket_init (void)
 
static clib_error_tstats_segment_socket_exit (vlib_main_t *vm)
 
static uword stat_segment_collector_process (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
 
static clib_error_tstatseg_init (vlib_main_t *vm)
 
static clib_error_tstatseg_config (vlib_main_t *vm, unformat_input_t *input)
 

Variables

stat_segment_main_t stat_segment_main
 
static vlib_cli_command_t show_stat_segment_command
 (constructor) VLIB_CLI_COMMAND (show_stat_segment_command) More...
 
static vlib_node_registration_t stat_segment_collector
 (constructor) VLIB_REGISTER_NODE (stat_segment_collector) More...
 

Function Documentation

static void do_stat_segment_updates ( stat_segment_main_t sm)
static

Definition at line 475 of file stat_segment.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* format_stat_dir_entry ( u8 s,
va_list *  args 
)
static

Definition at line 301 of file stat_segment.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 lookup_or_create_hash_index ( void *  oldheap,
char *  name,
u32  next_vector_index 
)
static

Definition at line 61 of file stat_segment.c.

+ Here is the caller graph for this function:

static int name_sort_cmp ( void *  a1,
void *  a2 
)
static

Definition at line 292 of file stat_segment.c.

+ Here is the caller graph for this function:

static clib_error_t* show_stat_segment_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 334 of file stat_segment.c.

+ Here is the call graph for this function:

static uword stat_segment_collector_process ( vlib_main_t vm,
vlib_node_runtime_t rt,
vlib_frame_t f 
)
static

Definition at line 589 of file stat_segment.c.

+ Here is the call graph for this function:

static void stat_validate_counter_vector ( stat_segment_directory_entry_t ep,
u32  max 
)
static

Definition at line 170 of file stat_segment.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* stats_segment_socket_exit ( vlib_main_t vm)
static

Definition at line 576 of file stat_segment.c.

static void stats_segment_socket_init ( void  )
static

Definition at line 549 of file stat_segment.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* stats_socket_accept_ready ( clib_file_t uf)
static

Definition at line 526 of file stat_segment.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* statseg_config ( vlib_main_t vm,
unformat_input_t input 
)
static

Definition at line 622 of file stat_segment.c.

+ Here is the call graph for this function:

static clib_error_t* statseg_init ( vlib_main_t vm)
static

Definition at line 606 of file stat_segment.c.

+ Here is the call graph for this function:

static void update_node_counters ( stat_segment_main_t sm)
inlinestatic

Definition at line 392 of file stat_segment.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vlib_map_stat_segment_init ( void  )

Definition at line 212 of file stat_segment.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vlib_stat_segment_lock ( void  )

Definition at line 31 of file stat_segment.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vlib_stat_segment_unlock ( void  )

Definition at line 39 of file stat_segment.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vlib_stats_pop_heap ( void *  cm_arg,
void *  oldheap,
stat_directory_type_t  type 
)

Definition at line 82 of file stat_segment.c.

+ Here is the call graph for this function:

void vlib_stats_pop_heap2 ( u64 error_vector,
u32  thread_index,
void *  oldheap 
)

Definition at line 192 of file stat_segment.c.

+ Here is the call graph for this function:

void* vlib_stats_push_heap ( void  )

Definition at line 51 of file stat_segment.c.

+ Here is the call graph for this function:

void vlib_stats_register_error_index ( u8 name,
u64 em_vec,
u64  index 
)

Definition at line 144 of file stat_segment.c.

+ Here is the call graph for this function:

Variable Documentation

vlib_cli_command_t show_stat_segment_command
static
Initial value:
=
{
.path = "show statistics segment",
.short_help = "show statistics segment [verbose]",
}
static clib_error_t * show_stat_segment_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: stat_segment.c:334

(constructor) VLIB_CLI_COMMAND (show_stat_segment_command)

Definition at line 375 of file stat_segment.c.

vlib_node_registration_t stat_segment_collector
static
Initial value:
=
{
.name = "statseg-collector-process",
}
static uword stat_segment_collector_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
Definition: stat_segment.c:589

(constructor) VLIB_REGISTER_NODE (stat_segment_collector)

Definition at line 654 of file stat_segment.c.

stat_segment_main_t stat_segment_main

Definition at line 25 of file stat_segment.c.