FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
main.c File Reference
+ Include dependency graph for main.c:

Go to the source code of this file.

Data Structures

struct  dispatch_trace_thread_t
 
struct  dispatch_trace_main_t
 
struct  vlib_pcap_dispatch_trace_args_t
 

Macros

#define VLIB_PCAP_MAJOR_VERSION   1
 
#define VLIB_PCAP_MINOR_VERSION   0
 
#define A(x)   vec_add1 (dtt->pcap_buffer, (x))
 

Functions

static u8format_buffer_metadata (u8 *s, va_list *args)
 
uword dispatch_pcap_trace (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static void pcap_postmortem_reset (vlib_main_t *vm)
 
static void pcap_postmortem_dump (void)
 
static 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_PLUGIN_REGISTER ()
 

Variables

dispatch_trace_main_t dispatch_trace_main
 
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 (dtt->pcap_buffer, (x))

Definition at line 57 of file main.c.

◆ VLIB_PCAP_MAJOR_VERSION

#define VLIB_PCAP_MAJOR_VERSION   1

Definition at line 24 of file main.c.

◆ VLIB_PCAP_MINOR_VERSION

#define VLIB_PCAP_MINOR_VERSION   0

Definition at line 25 of file main.c.

Function Documentation

◆ dispatch_pcap_trace()

uword dispatch_pcap_trace ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 60 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller 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 352 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 39 of file main.c.

+ Here is the caller graph for this function:

◆ pcap_postmortem_dump()

static void pcap_postmortem_dump ( void  )
static

Definition at line 190 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)
static

Definition at line 171 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()

static int vlib_pcap_dispatch_trace_configure ( vlib_pcap_dispatch_trace_args_t a)
static

Definition at line 208 of file main.c.

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

◆ VLIB_PLUGIN_REGISTER()

VLIB_PLUGIN_REGISTER ( )

Variable Documentation

◆ dispatch_trace_main

dispatch_trace_main_t dispatch_trace_main

Definition at line 22 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]",
}

(constructor) VLIB_CLI_COMMAND (pcap_dispatch_trace_command)

Definition at line 497 of file main.c.

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)
Definition: main.c:352