FD.io VPP  v18.10-34-gcce845e
Vector Packet Processing
trace.c File Reference
+ Include dependency graph for trace.c:

Go to the source code of this file.

Functions

void vlib_trace_frame_buffers_only (vlib_main_t *vm, vlib_node_runtime_t *node, u32 *buffers, uword n_buffers, uword next_buffer_stride, uword n_buffer_data_bytes_in_trace)
 
static void clear_trace_buffer (void)
 
static u8format_vlib_trace (u8 *s, va_list *va)
 
static int trace_cmp (void *a1, void *a2)
 
u32 filter_accept (vlib_trace_main_t *tm, vlib_trace_header_t *h)
 
void trace_apply_filter (vlib_main_t *vm)
 
static clib_error_tcli_show_trace_buffer (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tcli_add_trace_buffer (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tcli_filter_trace (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tcli_clear_trace_buffer (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
void vlib_trace_cli_reference (void)
 

Variables

u8vnet_trace_dummy
 
static vlib_cli_command_t trace_cli_command
 (constructor) VLIB_CLI_COMMAND (trace_cli_command) More...
 
static vlib_cli_command_t show_trace_cli
 (constructor) VLIB_CLI_COMMAND (show_trace_cli) More...
 
static vlib_cli_command_t add_trace_cli
 (constructor) VLIB_CLI_COMMAND (add_trace_cli) More...
 
static vlib_cli_command_t filter_trace_cli
 (constructor) VLIB_CLI_COMMAND (filter_trace_cli) More...
 
static vlib_cli_command_t clear_trace_cli
 (constructor) VLIB_CLI_COMMAND (clear_trace_cli) More...
 

Function Documentation

static void clear_trace_buffer ( void  )
inlinestatic

Definition at line 114 of file trace.c.

+ Here is the caller graph for this function:

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

Definition at line 355 of file trace.c.

+ Here is the call graph for this function:

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

Definition at line 511 of file trace.c.

+ Here is the call graph for this function:

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

Definition at line 451 of file trace.c.

+ Here is the call graph for this function:

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

Definition at line 269 of file trace.c.

+ Here is the call graph for this function:

u32 filter_accept ( vlib_trace_main_t tm,
vlib_trace_header_t h 
)

Definition at line 191 of file trace.c.

+ Here is the call graph for this function:

static u8* format_vlib_trace ( u8 s,
va_list *  va 
)
static

Definition at line 135 of file trace.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void trace_apply_filter ( vlib_main_t vm)

Definition at line 226 of file trace.c.

+ Here is the caller graph for this function:

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

Definition at line 179 of file trace.c.

+ Here is the caller graph for this function:

void vlib_trace_cli_reference ( void  )

Definition at line 528 of file trace.c.

void vlib_trace_frame_buffers_only ( vlib_main_t vm,
vlib_node_runtime_t node,
u32 buffers,
uword  n_buffers,
uword  next_buffer_stride,
uword  n_buffer_data_bytes_in_trace 
)

Definition at line 47 of file trace.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_cli_command_t add_trace_cli
static
Initial value:
= {
.path = "trace add",
.short_help = "Trace given number of packets",
.function = cli_add_trace_buffer,
}
static clib_error_t * cli_add_trace_buffer(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: trace.c:355

(constructor) VLIB_CLI_COMMAND (add_trace_cli)

Definition at line 405 of file trace.c.

vlib_cli_command_t clear_trace_cli
static
Initial value:
= {
.path = "clear trace",
.short_help = "Clear trace buffer and free memory",
}
static clib_error_t * cli_clear_trace_buffer(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: trace.c:511

(constructor) VLIB_CLI_COMMAND (clear_trace_cli)

Definition at line 519 of file trace.c.

vlib_cli_command_t filter_trace_cli
static
Initial value:
= {
.path = "trace filter",
.short_help = "filter trace output - include NODE COUNT | exclude NODE COUNT | none",
.function = cli_filter_trace,
}
static clib_error_t * cli_filter_trace(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: trace.c:451

(constructor) VLIB_CLI_COMMAND (filter_trace_cli)

Definition at line 503 of file trace.c.

vlib_cli_command_t show_trace_cli
static
Initial value:
= {
.path = "show trace",
.short_help = "Show trace buffer [max COUNT]",
.function = cli_show_trace_buffer,
}
static clib_error_t * cli_show_trace_buffer(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: trace.c:269

(constructor) VLIB_CLI_COMMAND (show_trace_cli)

Definition at line 347 of file trace.c.

vlib_cli_command_t trace_cli_command
static
Initial value:
= {
.path = "trace",
.short_help = "Packet tracer commands",
}

(constructor) VLIB_CLI_COMMAND (trace_cli_command)

Definition at line 172 of file trace.c.

u8* vnet_trace_dummy

Definition at line 43 of file trace.c.