FD.io VPP  v21.01.1
Vector Packet Processing
main.c File Reference
+ Include dependency graph for main.c:

Go to the source code of this file.

Data Structures

struct  vlib_process_bootstrap_args_t
 

Macros

#define VLIB_FRAME_SIZE_ALLOC   (VLIB_FRAME_SIZE + 4)
 
#define VLIB_FRAME_SIZE_EXTRA   4
 
#define VLIB_FRAME_MAGIC   (0xabadc0ed)
 
#define A(x)   vec_add1(vm->pcap_buffer, (x))
 
#define foreach_weak_reference_stub
 

Functions

static u32 vlib_frame_bytes (u32 n_scalar_bytes, u32 n_vector_bytes)
 
static u32vlib_frame_find_magic (vlib_frame_t *f, vlib_node_t *node)
 
static vlib_frame_size_tget_frame_size_info (vlib_node_main_t *nm, u32 n_scalar_bytes, u32 n_vector_bytes)
 
static vlib_frame_tvlib_frame_alloc_to_node (vlib_main_t *vm, u32 to_node_index, u32 frame_flags)
 
static vlib_frame_tvlib_frame_alloc (vlib_main_t *vm, vlib_node_runtime_t *from_node_runtime, u32 to_next_index)
 
vlib_frame_tvlib_get_frame_to_node (vlib_main_t *vm, u32 to_node_index)
 
static void vlib_validate_frame_indices (vlib_frame_t *f)
 
void vlib_put_frame_to_node (vlib_main_t *vm, u32 to_node_index, vlib_frame_t *f)
 
void vlib_frame_free (vlib_main_t *vm, vlib_node_runtime_t *r, vlib_frame_t *f)
 
static clib_error_tshow_frame_stats (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static void vlib_next_frame_change_ownership (vlib_main_t *vm, vlib_node_runtime_t *node_runtime, u32 next_index)
 
static void validate_frame_magic (vlib_main_t *vm, vlib_frame_t *f, vlib_node_t *n, uword next_index)
 
vlib_frame_tvlib_get_next_frame_internal (vlib_main_t *vm, vlib_node_runtime_t *node, u32 next_index, u32 allocate_new_next_frame)
 
static void vlib_put_next_frame_validate (vlib_main_t *vm, vlib_node_runtime_t *rt, u32 next_index, u32 n_vectors_left)
 
void vlib_put_next_frame (vlib_main_t *vm, vlib_node_runtime_t *r, u32 next_index, u32 n_vectors_left)
 Release pointer to next frame vector data. More...
 
never_inline void vlib_node_runtime_sync_stats (vlib_main_t *vm, vlib_node_runtime_t *r, uword n_calls, uword n_vectors, uword n_clocks)
 
static void vlib_process_sync_stats (vlib_main_t *vm, vlib_process_t *p, uword n_calls, uword n_vectors, uword n_clocks)
 
void vlib_node_sync_stats (vlib_main_t *vm, vlib_node_t *n)
 
static u32 vlib_node_runtime_update_stats (vlib_main_t *vm, vlib_node_runtime_t *node, uword n_calls, uword n_vectors, uword n_clocks)
 
static void vlib_process_update_stats (vlib_main_t *vm, vlib_process_t *p, uword n_calls, uword n_vectors, uword n_clocks)
 
static clib_error_tvlib_cli_elog_clear (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_telog_save_buffer (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
void vlib_post_mortem_dump (void)
 
static clib_error_telog_stop (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_telog_restart (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_telog_resize_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static void elog_show_buffer_internal (vlib_main_t *vm, u32 n_events_to_show)
 
static clib_error_telog_show_buffer (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
void vlib_gdb_show_event_log (void)
 
static void vlib_elog_main_loop_event (vlib_main_t *vm, u32 node_index, u64 time, u32 n_vectors, u32 is_return)
 
static void add_trajectory_trace (vlib_buffer_t *b, u32 node_index)
 
u8format_vnet_buffer_flags (u8 *s, va_list *args)
 
u8format_vnet_buffer_opaque (u8 *s, va_list *args)
 
u8format_vnet_buffer_opaque2 (u8 *s, va_list *args)
 
static u8format_buffer_metadata (u8 *s, va_list *args)
 
static void dispatch_pcap_trace (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static_always_inline u64 dispatch_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_node_type_t type, vlib_node_state_t dispatch_state, vlib_frame_t *frame, u64 last_time_stamp)
 
static u64 dispatch_pending_node (vlib_main_t *vm, uword pending_frame_index, u64 last_time_stamp)
 
static uword vlib_process_stack_is_valid (vlib_process_t *p)
 
static uword vlib_process_bootstrap (uword _a)
 
static_always_inline uword vlib_process_startup (vlib_main_t *vm, vlib_process_t *p, vlib_frame_t *f)
 
static_always_inline uword vlib_process_resume (vlib_main_t *vm, vlib_process_t *p)
 
static u64 dispatch_process (vlib_main_t *vm, vlib_process_t *p, vlib_frame_t *f, u64 last_time_stamp)
 
void vlib_start_process (vlib_main_t *vm, uword process_index)
 
static u64 dispatch_suspended_process (vlib_main_t *vm, uword process_index, u64 last_time_stamp)
 
void vl_api_send_pending_rpc_requests (vlib_main_t *)
 
static_always_inline u64 dispatch_pending_interrupts (vlib_main_t *vm, vlib_node_main_t *nm, u64 cpu_time_now, vlib_node_interrupt_t *interrupts)
 
static void pcap_postmortem_reset (vlib_main_t *vm)
 
static_always_inline void vlib_main_or_worker_loop (vlib_main_t *vm, int is_main)
 
static void vlib_main_loop (vlib_main_t *vm)
 
void vlib_worker_loop (vlib_main_t *vm)
 
static clib_error_tvlib_main_configure (vlib_main_t *vm, unformat_input_t *input)
 
static void placeholder_queue_signal_callback (vlib_main_t *vm)
 
void vl_api_set_elog_main (elog_main_t *m)
 
int vl_api_set_elog_trace_api_messages (int enable)
 
int vl_api_get_elog_trace_api_messages (void)
 
int vlib_main (vlib_main_t *volatile vm, unformat_input_t *input)
 
int vlib_pcap_dispatch_trace_configure (vlib_pcap_dispatch_trace_args_t *a)
 
static clib_error_tdispatch_trace_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
vlib_main_tvlib_get_main_not_inline (void)
 
elog_main_tvlib_get_elog_main_not_inline ()
 

Variables

static vlib_cli_command_t show_frame_stats_cli
 (constructor) VLIB_CLI_COMMAND (show_frame_stats_cli) More...
 
static vlib_cli_command_t elog_clear_cli
 (constructor) VLIB_CLI_COMMAND (elog_clear_cli) More...
 
static vlib_cli_command_t elog_save_cli
 (constructor) VLIB_CLI_COMMAND (elog_save_cli) More...
 
static vlib_cli_command_t elog_stop_cli
 (constructor) VLIB_CLI_COMMAND (elog_stop_cli) More...
 
static vlib_cli_command_t elog_restart_cli
 (constructor) VLIB_CLI_COMMAND (elog_restart_cli) More...
 
static vlib_cli_command_t elog_resize_cli
 (constructor) VLIB_CLI_COMMAND (elog_resize_cli) More...
 
static vlib_cli_command_t elog_show_cli
 (constructor) VLIB_CLI_COMMAND (elog_show_cli) More...
 
vlib_main_t vlib_global_main
 
 foreach_weak_reference_stub
 
static vlib_cli_command_t pcap_dispatch_trace_command
 (constructor) VLIB_CLI_COMMAND (pcap_dispatch_trace_command) More...
 

Macro Definition Documentation

◆ A

#define A (   x)    vec_add1(vm->pcap_buffer, (x))

Definition at line 1031 of file main.c.

◆ foreach_weak_reference_stub

#define foreach_weak_reference_stub
Value:
clib_error_t * vlibmemory_init(vlib_main_t *vm)
Definition: memory_api.c:931
clib_error_t * map_api_segment_init(vlib_main_t *vm)
Definition: memory_api.c:474
clib_error_t * vpe_api_init(vlib_main_t *vm)
Definition: api.c:655
clib_error_t * vlib_map_stat_segment_init(void)
Definition: stat_segment.c:314

Definition at line 2093 of file main.c.

◆ VLIB_FRAME_MAGIC

#define VLIB_FRAME_MAGIC   (0xabadc0ed)

◆ VLIB_FRAME_SIZE_ALLOC

#define VLIB_FRAME_SIZE_ALLOC   (VLIB_FRAME_SIZE + 4)

Definition at line 50 of file main.c.

◆ VLIB_FRAME_SIZE_EXTRA

#define VLIB_FRAME_SIZE_EXTRA   4

Function Documentation

◆ add_trajectory_trace()

static void add_trajectory_trace ( vlib_buffer_t b,
u32  node_index 
)
inlinestatic

Definition at line 974 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dispatch_node()

static_always_inline u64 dispatch_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_node_type_t  type,
vlib_node_state_t  dispatch_state,
vlib_frame_t frame,
u64  last_time_stamp 
)

Definition at line 1142 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dispatch_pcap_trace()

static void dispatch_pcap_trace ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 1034 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dispatch_pending_interrupts()

static_always_inline u64 dispatch_pending_interrupts ( vlib_main_t vm,
vlib_node_main_t nm,
u64  cpu_time_now,
vlib_node_interrupt_t interrupts 
)

Definition at line 1704 of file main.c.

◆ dispatch_pending_node()

static u64 dispatch_pending_node ( vlib_main_t vm,
uword  pending_frame_index,
u64  last_time_stamp 
)
static

Definition at line 1325 of file main.c.

+ Here is the call graph for this function:

◆ dispatch_process()

static u64 dispatch_process ( vlib_main_t vm,
vlib_process_t p,
vlib_frame_t f,
u64  last_time_stamp 
)
static

Definition at line 1530 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dispatch_suspended_process()

static u64 dispatch_suspended_process ( vlib_main_t vm,
uword  process_index,
u64  last_time_stamp 
)
static

Definition at line 1617 of file main.c.

+ Here is the call graph for this function:

◆ dispatch_trace_command_fn()

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

Definition at line 2427 of file main.c.

+ Here is the call graph for this function:

◆ elog_resize_command_fn()

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

Definition at line 826 of file main.c.

+ Here is the call graph for this function:

◆ elog_restart()

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

Definition at line 806 of file main.c.

+ Here is the call graph for this function:

◆ elog_save_buffer()

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

Definition at line 700 of file main.c.

+ Here is the call graph for this function:

◆ elog_show_buffer()

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

Definition at line 886 of file main.c.

+ Here is the call graph for this function:

◆ elog_show_buffer_internal()

static void elog_show_buffer_internal ( vlib_main_t vm,
u32  n_events_to_show 
)
static

Definition at line 858 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ elog_stop()

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

Definition at line 786 of file main.c.

+ Here is the call graph for this function:

◆ format_buffer_metadata()

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

Definition at line 1010 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_vnet_buffer_flags()

u8* format_vnet_buffer_flags ( u8 s,
va_list *  args 
)

Definition at line 986 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_vnet_buffer_opaque()

u8* format_vnet_buffer_opaque ( u8 s,
va_list *  args 
)

Definition at line 994 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_vnet_buffer_opaque2()

u8* format_vnet_buffer_opaque2 ( u8 s,
va_list *  args 
)

Definition at line 1003 of file main.c.

+ Here is the caller graph for this function:

◆ get_frame_size_info()

static vlib_frame_size_t* get_frame_size_info ( vlib_node_main_t nm,
u32  n_scalar_bytes,
u32  n_vector_bytes 
)
inlinestatic

Definition at line 90 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pcap_postmortem_reset()

static void pcap_postmortem_reset ( vlib_main_t vm)
inlinestatic

Definition at line 1725 of file main.c.

+ Here is the call graph for this function:

◆ placeholder_queue_signal_callback()

static void placeholder_queue_signal_callback ( vlib_main_t vm)
static

Definition at line 2089 of file main.c.

+ Here is the caller graph for this function:

◆ show_frame_stats()

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

Definition at line 266 of file main.c.

+ Here is the call graph for this function:

◆ validate_frame_magic()

static void validate_frame_magic ( vlib_main_t vm,
vlib_frame_t f,
vlib_node_t n,
uword  next_index 
)
inlinestatic

Definition at line 370 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_api_get_elog_trace_api_messages()

int vl_api_get_elog_trace_api_messages ( void  )

Definition at line 2122 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_api_send_pending_rpc_requests()

void vl_api_send_pending_rpc_requests ( vlib_main_t vm)

Definition at line 1699 of file main.c.

+ Here is the caller graph for this function:

◆ vl_api_set_elog_main()

void vl_api_set_elog_main ( elog_main_t m)

Definition at line 2107 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_api_set_elog_trace_api_messages()

int vl_api_set_elog_trace_api_messages ( int  enable)

Definition at line 2114 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_cli_elog_clear()

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

Definition at line 683 of file main.c.

+ Here is the call graph for this function:

◆ vlib_elog_main_loop_event()

static void vlib_elog_main_loop_event ( vlib_main_t vm,
u32  node_index,
u64  time,
u32  n_vectors,
u32  is_return 
)
inlinestatic

Definition at line 921 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_frame_alloc()

static vlib_frame_t* vlib_frame_alloc ( vlib_main_t vm,
vlib_node_runtime_t from_node_runtime,
u32  to_next_index 
)
static

Definition at line 169 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_frame_alloc_to_node()

static vlib_frame_t* vlib_frame_alloc_to_node ( vlib_main_t vm,
u32  to_node_index,
u32  frame_flags 
)
static

Definition at line 116 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_frame_bytes()

static u32 vlib_frame_bytes ( u32  n_scalar_bytes,
u32  n_vector_bytes 
)
inlinestatic

Definition at line 53 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_frame_find_magic()

static u32* vlib_frame_find_magic ( vlib_frame_t f,
vlib_node_t node 
)
inlinestatic

Definition at line 78 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_frame_free()

void vlib_frame_free ( vlib_main_t vm,
vlib_node_runtime_t r,
vlib_frame_t f 
)

Definition at line 238 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_gdb_show_event_log()

void vlib_gdb_show_event_log ( void  )

Definition at line 915 of file main.c.

+ Here is the call graph for this function:

◆ vlib_get_elog_main_not_inline()

elog_main_t* vlib_get_elog_main_not_inline ( )

Definition at line 2588 of file main.c.

◆ vlib_get_frame_to_node()

vlib_frame_t* vlib_get_frame_to_node ( vlib_main_t vm,
u32  to_node_index 
)

Definition at line 182 of file main.c.

+ Here is the call graph for this function:

◆ vlib_get_main_not_inline()

vlib_main_t* vlib_get_main_not_inline ( void  )

Definition at line 2582 of file main.c.

+ Here is the call graph for this function:

◆ vlib_get_next_frame_internal()

vlib_frame_t* vlib_get_next_frame_internal ( vlib_main_t vm,
vlib_node_runtime_t node,
u32  next_index,
u32  allocate_new_next_frame 
)

Definition at line 379 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_main()

int vlib_main ( vlib_main_t *volatile  vm,
unformat_input_t input 
)

Definition at line 2130 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_main_configure()

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

Definition at line 2044 of file main.c.

+ Here is the call graph for this function:

◆ vlib_main_loop()

static void vlib_main_loop ( vlib_main_t vm)
static

Definition at line 2030 of file main.c.

+ Here is the call graph for this function:

◆ vlib_main_or_worker_loop()

static_always_inline void vlib_main_or_worker_loop ( vlib_main_t vm,
int  is_main 
)

Definition at line 1738 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_next_frame_change_ownership()

static void vlib_next_frame_change_ownership ( vlib_main_t vm,
vlib_node_runtime_t node_runtime,
u32  next_index 
)
static

Definition at line 296 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_node_runtime_sync_stats()

never_inline void vlib_node_runtime_sync_stats ( vlib_main_t vm,
vlib_node_runtime_t r,
uword  n_calls,
uword  n_vectors,
uword  n_clocks 
)

Definition at line 569 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_node_runtime_update_stats()

static u32 vlib_node_runtime_update_stats ( vlib_main_t vm,
vlib_node_runtime_t node,
uword  n_calls,
uword  n_vectors,
uword  n_clocks 
)
inlinestatic

Definition at line 636 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_node_sync_stats()

void vlib_node_sync_stats ( vlib_main_t vm,
vlib_node_t n 
)

Definition at line 599 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_pcap_dispatch_trace_configure()

int vlib_pcap_dispatch_trace_configure ( vlib_pcap_dispatch_trace_args_t a)

Definition at line 2296 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_post_mortem_dump()

void vlib_post_mortem_dump ( void  )

Definition at line 737 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_process_bootstrap()

static uword vlib_process_bootstrap ( uword  _a)
static

Definition at line 1459 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_process_resume()

static_always_inline uword vlib_process_resume ( vlib_main_t vm,
vlib_process_t p 
)

Definition at line 1512 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_process_stack_is_valid()

static uword vlib_process_stack_is_valid ( vlib_process_t p)
inlinestatic

Definition at line 1445 of file main.c.

+ Here is the caller graph for this function:

◆ vlib_process_startup()

static_always_inline uword vlib_process_startup ( vlib_main_t vm,
vlib_process_t p,
vlib_frame_t f 
)

Definition at line 1489 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_process_sync_stats()

static void vlib_process_sync_stats ( vlib_main_t vm,
vlib_process_t p,
uword  n_calls,
uword  n_vectors,
uword  n_clocks 
)
inlinestatic

Definition at line 587 of file main.c.

+ Here is the call graph for this function:

◆ vlib_process_update_stats()

static void vlib_process_update_stats ( vlib_main_t vm,
vlib_process_t p,
uword  n_calls,
uword  n_vectors,
uword  n_clocks 
)
inlinestatic

Definition at line 674 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_put_frame_to_node()

void vlib_put_frame_to_node ( vlib_main_t vm,
u32  to_node_index,
vlib_frame_t f 
)

Definition at line 216 of file main.c.

+ Here is the call graph for this function:

◆ vlib_put_next_frame()

void vlib_put_next_frame ( vlib_main_t vm,
vlib_node_runtime_t r,
u32  next_index,
u32  n_packets_left 
)

Release pointer to next frame vector data.

Standard single/dual loop boilerplate element.

Parameters
vmvlib_main_t pointer, varies by thread
rcurrent node vlib_node_runtime_t pointer
next_indexgraph arc index
n_packets_leftnumber of slots still available in vector

Definition at line 483 of file main.c.

+ Here is the call graph for this function:

◆ vlib_put_next_frame_validate()

static void vlib_put_next_frame_validate ( vlib_main_t vm,
vlib_node_runtime_t rt,
u32  next_index,
u32  n_vectors_left 
)
static

Definition at line 444 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_start_process()

void vlib_start_process ( vlib_main_t vm,
uword  process_index 
)

Definition at line 1609 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_validate_frame_indices()

static void vlib_validate_frame_indices ( vlib_frame_t f)
inlinestatic

Definition at line 191 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_worker_loop()

void vlib_worker_loop ( vlib_main_t vm)

Definition at line 2036 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ elog_clear_cli

vlib_cli_command_t elog_clear_cli
static
Initial value:
= {
.path = "event-logger clear",
.short_help = "Clear the event log",
.function = vlib_cli_elog_clear,
}
static clib_error_t * vlib_cli_elog_clear(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: main.c:683

(constructor) VLIB_CLI_COMMAND (elog_clear_cli)

Definition at line 691 of file main.c.

◆ elog_resize_cli

vlib_cli_command_t elog_resize_cli
static
Initial value:
= {
.path = "event-logger resize",
.short_help = "event-logger resize <nnn>",
}
static clib_error_t * elog_resize_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: main.c:826

(constructor) VLIB_CLI_COMMAND (elog_resize_cli)

Definition at line 848 of file main.c.

◆ elog_restart_cli

vlib_cli_command_t elog_restart_cli
static
Initial value:
= {
.path = "event-logger restart",
.short_help = "Restart the event-logger",
.function = elog_restart,
}
static clib_error_t * elog_restart(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: main.c:806

(constructor) VLIB_CLI_COMMAND (elog_restart_cli)

Definition at line 818 of file main.c.

◆ elog_save_cli

vlib_cli_command_t elog_save_cli
static
Initial value:
= {
.path = "event-logger save",
.short_help = "event-logger save <filename> (saves log in /tmp/<filename>)",
.function = elog_save_buffer,
}
static clib_error_t * elog_save_buffer(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: main.c:700

(constructor) VLIB_CLI_COMMAND (elog_save_cli)

Definition at line 778 of file main.c.

◆ elog_show_cli

vlib_cli_command_t elog_show_cli
static
Initial value:
= {
.path = "show event-logger",
.short_help = "Show event logger info",
.function = elog_show_buffer,
}
static clib_error_t * elog_show_buffer(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: main.c:886

(constructor) VLIB_CLI_COMMAND (elog_show_cli)

Definition at line 907 of file main.c.

◆ elog_stop_cli

vlib_cli_command_t elog_stop_cli
static
Initial value:
= {
.path = "event-logger stop",
.short_help = "Stop the event-logger",
.function = elog_stop,
}
static clib_error_t * elog_stop(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: main.c:786

(constructor) VLIB_CLI_COMMAND (elog_stop_cli)

Definition at line 798 of file main.c.

◆ foreach_weak_reference_stub

foreach_weak_reference_stub

Definition at line 2102 of file main.c.

◆ pcap_dispatch_trace_command

vlib_cli_command_t pcap_dispatch_trace_command
static
Initial value:
= {
.path = "pcap dispatch trace",
.short_help =
"pcap dispatch trace [on|off] [max <nn>] [file <name>] [status]\n"
" [buffer-trace <input-node-name> <nn>][post-mortem]",
}
static clib_error_t * dispatch_trace_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: main.c:2427

(constructor) VLIB_CLI_COMMAND (pcap_dispatch_trace_command)

Definition at line 2572 of file main.c.

◆ show_frame_stats_cli

vlib_cli_command_t show_frame_stats_cli
static
Initial value:
= {
.path = "show vlib frame-allocation",
.short_help = "Show node dispatch frame statistics",
.function = show_frame_stats,
}
static clib_error_t * show_frame_stats(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: main.c:266

(constructor) VLIB_CLI_COMMAND (show_frame_stats_cli)

Definition at line 287 of file main.c.

◆ vlib_global_main

vlib_main_t vlib_global_main

Definition at line 2041 of file main.c.