Host utility functions.
More...
Go to the source code of this file.
Host utility functions.
Definition in file gdb_funcs.c.
◆ debug_hex_bytes()
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 106 of file gdb_funcs.c.
◆ gdb_dump_buffer()
◆ gdb_dump_trajectory_trace()
void gdb_dump_trajectory_trace |
( |
u32 |
bi | ) |
|
Dump a trajectory trace, reasonably easy to call from gdb.
Definition at line 387 of file gdb_funcs.c.
◆ gdb_func_init()
◆ gdb_show_errors()
void gdb_show_errors |
( |
int |
verbose | ) |
|
◆ gdb_show_session()
void gdb_show_session |
( |
int |
verbose | ) |
|
◆ gdb_show_traces()
◆ gdb_validate_buffer()
◆ pe()
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 64 of file gdb_funcs.c.
◆ ph()
GDB callable function: ph - call pool_header - get pool header.
- Parameters
-
*p | - void - address of pool |
- Returns
- pool_header_t
Definition at line 78 of file gdb_funcs.c.
◆ pifi()
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 93 of file gdb_funcs.c.
◆ pvh()
GDB callable function: pvh - Return vector header of vector.
- Parameters
-
*p | - void - address of vector |
- Returns
- vh - vec_header_t, the vector header
Definition at line 49 of file gdb_funcs.c.
◆ show_gdb_command_fn()
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 298 of file gdb_funcs.c.
◆ trace_cmp()
static int trace_cmp |
( |
void * |
a1, |
|
|
void * |
a2 |
|
) |
| |
|
static |
◆ vb()
◆ vb2()
◆ vbi()
◆ vgb()
◆ vl()
GDB callable function: vl - Return vector length of vector.
- Parameters
-
*p | - void - address of vector |
- Returns
- length - u32
Definition at line 35 of file gdb_funcs.c.
◆ vlib_dump_frame_ownership()
void vlib_dump_frame_ownership |
( |
void |
| ) |
|
GDB callable function: vlib_dump_frame_ownership.
Definition at line 116 of file gdb_funcs.c.
◆ vlib_runtime_index_to_node_name()
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
-
Definition at line 158 of file gdb_funcs.c.
◆ show_gdb_funcs_command
Initial value:= {
.path = "show gdb",
.short_help = "Describe functions which can be called from gdb",
}
(constructor) VLIB_CLI_COMMAND (show_gdb_funcs_command)
Definition at line 322 of file gdb_funcs.c.