FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
bufmon.c File Reference
+ Include dependency graph for bufmon.c:

Go to the source code of this file.

Data Structures

struct  bufmon_per_node_data_t
 
struct  bufmon_per_thread_data_t
 
struct  bufmon_main_t
 

Functions

static u32 bufmon_alloc_free_callback (vlib_main_t *vm, u32 n_buffers, const int is_free)
 
static u32 bufmon_alloc_callback (vlib_main_t *vm, u8 buffer_pool_index, u32 *buffers, u32 n_buffers)
 
static u32 bufmon_free_callback (vlib_main_t *vm, u8 buffer_pool_index, u32 *buffers, u32 n_buffers)
 
static u32 bufmon_count_buffers (vlib_main_t *vm, vlib_frame_t *frame)
 
static uword bufmon_dispatch_wrapper (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static void bufmon_unregister_callbacks (vlib_main_t *vm)
 
static clib_error_tbufmon_register_callbacks (vlib_main_t *vm)
 
static clib_error_tbufmon_enable_disable (vlib_main_t *vm, int enable)
 
static clib_error_tset_buffer_traces (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_buffer_traces (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tclear_buffer_traces (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
 VLIB_PLUGIN_REGISTER ()
 

Variables

static bufmon_main_t bufmon_main
 
static vlib_cli_command_t set_buffer_traces_command
 (constructor) VLIB_CLI_COMMAND (set_buffer_traces_command) More...
 
static vlib_cli_command_t show_buffer_traces_command
 (constructor) VLIB_CLI_COMMAND (show_buffer_traces_command) More...
 
static vlib_cli_command_t clear_buffers_trace_command
 (constructor) VLIB_CLI_COMMAND (clear_buffers_trace_command) More...
 

Function Documentation

◆ bufmon_alloc_callback()

static u32 bufmon_alloc_callback ( vlib_main_t vm,
u8  buffer_pool_index,
u32 buffers,
u32  n_buffers 
)
static

Definition at line 63 of file bufmon.c.

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

◆ bufmon_alloc_free_callback()

static u32 bufmon_alloc_free_callback ( vlib_main_t vm,
u32  n_buffers,
const int  is_free 
)
static

Definition at line 29 of file bufmon.c.

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

◆ bufmon_count_buffers()

static u32 bufmon_count_buffers ( vlib_main_t vm,
vlib_frame_t frame 
)
static

Definition at line 77 of file bufmon.c.

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

◆ bufmon_dispatch_wrapper()

static uword bufmon_dispatch_wrapper ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 101 of file bufmon.c.

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

◆ bufmon_enable_disable()

static clib_error_t* bufmon_enable_disable ( vlib_main_t vm,
int  enable 
)
static

Definition at line 166 of file bufmon.c.

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

◆ bufmon_free_callback()

static u32 bufmon_free_callback ( vlib_main_t vm,
u8  buffer_pool_index,
u32 buffers,
u32  n_buffers 
)
static

Definition at line 70 of file bufmon.c.

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

◆ bufmon_register_callbacks()

static clib_error_t* bufmon_register_callbacks ( vlib_main_t vm)
static

Definition at line 144 of file bufmon.c.

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

◆ bufmon_unregister_callbacks()

static void bufmon_unregister_callbacks ( vlib_main_t vm)
static

Definition at line 136 of file bufmon.c.

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

◆ clear_buffer_traces()

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

Definition at line 290 of file bufmon.c.

◆ set_buffer_traces()

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

Definition at line 191 of file bufmon.c.

+ Here is the call graph for this function:

◆ show_buffer_traces()

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

Definition at line 225 of file bufmon.c.

+ Here is the call graph for this function:

◆ VLIB_PLUGIN_REGISTER()

VLIB_PLUGIN_REGISTER ( )

Variable Documentation

◆ bufmon_main

bufmon_main_t bufmon_main
static

Definition at line 26 of file bufmon.c.

◆ clear_buffers_trace_command

vlib_cli_command_t clear_buffers_trace_command
static
Initial value:
= {
.path = "clear buffer traces",
.short_help = "clear buffer traces",
.function = clear_buffer_traces,
}

(constructor) VLIB_CLI_COMMAND (clear_buffers_trace_command)

Definition at line 304 of file bufmon.c.

◆ set_buffer_traces_command

vlib_cli_command_t set_buffer_traces_command
static
Initial value:
= {
.path = "set buffer traces",
.short_help = "set buffer traces [on|off]",
.function = set_buffer_traces,
}

(constructor) VLIB_CLI_COMMAND (set_buffer_traces_command)

Definition at line 218 of file bufmon.c.

◆ show_buffer_traces_command

vlib_cli_command_t show_buffer_traces_command
static
Initial value:
= {
.path = "show buffer traces",
.short_help = "show buffer traces [status|verbose]",
.function = show_buffer_traces,
}

(constructor) VLIB_CLI_COMMAND (show_buffer_traces_command)

Definition at line 283 of file bufmon.c.

show_buffer_traces
static clib_error_t * show_buffer_traces(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: bufmon.c:225
set_buffer_traces
static clib_error_t * set_buffer_traces(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: bufmon.c:191
clear_buffer_traces
static clib_error_t * clear_buffer_traces(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: bufmon.c:290