Go to the source code of this file.
|
static uword * | vlib_cli_sub_command_match (vlib_cli_command_t *c, unformat_input_t *input) |
|
static uword | unformat_vlib_cli_sub_input (unformat_input_t *i, va_list *args) |
|
static vlib_cli_command_t * | get_sub_command (vlib_cli_main_t *cm, vlib_cli_command_t *parent, u32 si) |
|
static uword | unformat_vlib_cli_sub_command (unformat_input_t *i, va_list *args) |
|
static u8 * | format_vlib_cli_command_help (u8 *s, va_list *args) |
|
static u8 * | format_vlib_cli_parse_rule_name (u8 *s, va_list *args) |
|
static u8 * | format_vlib_cli_path (u8 *s, va_list *args) |
|
static vlib_cli_command_t * | all_subs (vlib_cli_main_t *cm, vlib_cli_command_t *subs, u32 command_index) |
|
static int | vlib_cli_cmp_rule (void *a1, void *a2) |
|
static int | vlib_cli_cmp_command (void *a1, void *a2) |
|
static clib_error_t * | vlib_cli_dispatch_sub_commands (vlib_main_t *vm, vlib_cli_main_t *cm, unformat_input_t *input, uword parent_command_index) |
|
void | vlib_unix_error_report (vlib_main_t *, clib_error_t *) |
|
void | vlib_cli_input (vlib_main_t *vm, unformat_input_t *input, vlib_cli_output_function_t *function, uword function_arg) |
|
void | vlib_cli_output (vlib_main_t *vm, char *fmt,...) |
|
static clib_error_t * | show_memory_usage (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | enable_disable_memory_trace (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | test_heap_validate (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static uword | vlib_cli_normalize_path (char *input, char **result) |
|
always_inline uword | parent_path_len (char *path) |
|
static void | add_sub_command (vlib_cli_main_t *cm, uword parent_index, uword child_index) |
|
static void | vlib_cli_make_parent (vlib_cli_main_t *cm, uword ci) |
|
always_inline uword | vlib_cli_command_is_empty (vlib_cli_command_t *c) |
|
clib_error_t * | vlib_cli_register (vlib_main_t *vm, vlib_cli_command_t *c) |
|
clib_error_t * | vlib_cli_register_parse_rule (vlib_main_t *vm, vlib_cli_parse_rule_t *r_reg) |
|
static clib_error_t * | vlib_cli_init (vlib_main_t *vm) |
|
static u8* format_vlib_cli_command_help |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
static u8* format_vlib_cli_parse_rule_name |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
static u8* format_vlib_cli_path |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
static int vlib_cli_cmp_command |
( |
void * |
a1, |
|
|
void * |
a2 |
|
) |
| |
|
static |
static int vlib_cli_cmp_rule |
( |
void * |
a1, |
|
|
void * |
a2 |
|
) |
| |
|
static |
static uword vlib_cli_normalize_path |
( |
char * |
input, |
|
|
char ** |
result |
|
) |
| |
|
static |
Definition at line 68 of file cli.c.
Initial value:= {
.path = "test heap-validate",
.short_help = "<on/off/now> validate heap on future allocs/frees or right now",
}
static clib_error_t * test_heap_validate(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (cmd_test_heap_validate)
Definition at line 663 of file cli.c.
Initial value:= {
.path = "memory-trace",
.short_help = "Enable/disable memory allocation trace",
}
static clib_error_t * enable_disable_memory_trace(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (enable_disable_memory_trace_command)
Definition at line 615 of file cli.c.
Initial value:= {
.path = "show memory",
.short_help = "Show current memory usage",
}
static clib_error_t * show_memory_usage(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (show_memory_usage_command)
Definition at line 589 of file cli.c.
Initial value:= {
.path = "clear",
.short_help = "Clear commands",
}
(constructor) VLIB_CLI_COMMAND (vlib_cli_clear_command)
Definition at line 49 of file cli.c.
Initial value:= {
.path = "set",
.short_help = "Set commands",
}
(constructor) VLIB_CLI_COMMAND (vlib_cli_set_command)
Definition at line 55 of file cli.c.
Initial value:= {
.path = "show",
.short_help = "Show commands",
}
(constructor) VLIB_CLI_COMMAND (vlib_cli_show_command)
Definition at line 43 of file cli.c.
Initial value:= {
.path = "test",
.short_help = "Test commands",
}
(constructor) VLIB_CLI_COMMAND (vlib_cli_test_command)
Definition at line 61 of file cli.c.