FD.io VPP  v16.09
Vector Packet Processing
gdb_funcs.c File Reference

Host utility functions. More...

+ Include dependency graph for gdb_funcs.c:

Go to the source code of this file.

Functions

u32 vl (void *p)
 GDB callable function: vl - Return vector length of vector. More...
 
uword pe (void *v)
 GDB callable function: pe - call pool_elts - number of elements in a pool. More...
 
int pifi (void *p, u32 index)
 GDB callable function: pifi - call pool_is_free_index - is passed index free? More...
 
void debug_hex_bytes (u8 *s, u32 n)
 GDB callable function: debug_hex_bytes - return formatted hex string. More...
 
void vlib_dump_frame_ownership (void)
 GDB callable function: vlib_dump_frame_ownership. More...
 
void vlib_runtime_index_to_node_name (u32 index)
 GDB callable function: vlib_runtime_index_to_node_name. More...
 
static clib_error_tshow_gdb_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 GDB callable function: show_gdb_command_fn - show gdb. More...
 
clib_error_tgdb_func_init (vlib_main_t *vm)
 

Variables

static vlib_cli_command_t show_gdb_funcs_command
 (constructor) VLIB_CLI_COMMAND (show_gdb_funcs_command) More...
 

Detailed Description

Host utility functions.

Definition in file gdb_funcs.c.

Function Documentation

void debug_hex_bytes ( u8 s,
u32  n 
)

GDB callable function: debug_hex_bytes - return formatted hex string.

Parameters
*s- u8
n- u32 - number of bytes to format

Definition at line 73 of file gdb_funcs.c.

+ Here is the call graph for this function:

clib_error_t* gdb_func_init ( vlib_main_t vm)

Definition at line 169 of file gdb_funcs.c.

uword pe ( void *  v)

GDB callable function: pe - call pool_elts - number of elements in a pool.

Parameters
*v- void - address of pool
Returns
number - uword

Definition at line 47 of file gdb_funcs.c.

+ Here is the call graph for this function:

int pifi ( void *  p,
u32  index 
)

GDB callable function: pifi - call pool_is_free_index - is passed index free?

Parameters
*p- void - address of pool
*index- u32
Returns
0|1 - int

Definition at line 61 of file gdb_funcs.c.

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

GDB callable function: show_gdb_command_fn - show gdb.

Shows list of functions for VPP available in GDB

Returns
error - clib_error_t

Definition at line 147 of file gdb_funcs.c.

+ Here is the call graph for this function:

u32 vl ( void *  p)

GDB callable function: vl - Return vector length of vector.

Parameters
*p- void - address of vector
Returns
length - u32

Definition at line 34 of file gdb_funcs.c.

void vlib_dump_frame_ownership ( void  )

GDB callable function: vlib_dump_frame_ownership.

Definition at line 82 of file gdb_funcs.c.

+ Here is the call graph for this function:

void vlib_runtime_index_to_node_name ( u32  index)

GDB callable function: vlib_runtime_index_to_node_name.

Takes node index and will return the node name.

Parameters
index- u32

Definition at line 124 of file gdb_funcs.c.

+ Here is the call graph for this function:

Variable Documentation

vlib_cli_command_t show_gdb_funcs_command
static
Initial value:
= {
.path = "show gdb",
.short_help = "Describe functions which can be called from gdb",
.function = show_gdb_command_fn,
}
static clib_error_t * show_gdb_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
GDB callable function: show_gdb_command_fn - show gdb.
Definition: gdb_funcs.c:147

(constructor) VLIB_CLI_COMMAND (show_gdb_funcs_command)

Definition at line 161 of file gdb_funcs.c.