FD.io VPP  v17.01-9-ge7dcee4
Vector Packet Processing
threads_cli.c File Reference
+ Include dependency graph for threads_cli.c:

Go to the source code of this file.

Functions

static u8format_sched_policy_and_priority (u8 *s, va_list *args)
 
static clib_error_tshow_threads_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_ttrace_frame_queue (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static u32 compute_percent (u64 *two_counters, u64 total)
 
static clib_error_tshow_frame_queue_internal (vlib_main_t *vm, vlib_frame_queue_main_t *fqm, u32 histogram)
 
static clib_error_tshow_frame_queue_trace (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_frame_queue_histogram (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_ttest_frame_queue_nelts (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_ttest_frame_queue_threshold (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static vlib_cli_command_t show_threads_command
 (constructor) VLIB_CLI_COMMAND (show_threads_command) More...
 
static vlib_cli_command_t cmd_trace_frame_queue
 (constructor) VLIB_CLI_COMMAND (cmd_trace_frame_queue) More...
 
static vlib_cli_command_t cmd_show_frame_queue_trace
 (constructor) VLIB_CLI_COMMAND (cmd_show_frame_queue_trace) More...
 
static vlib_cli_command_t cmd_show_frame_queue_histogram
 (constructor) VLIB_CLI_COMMAND (cmd_show_frame_queue_histogram) More...
 
static vlib_cli_command_t cmd_test_frame_queue_nelts
 (constructor) VLIB_CLI_COMMAND (cmd_test_frame_queue_nelts) More...
 
static vlib_cli_command_t cmd_test_frame_queue_threshold
 (constructor) VLIB_CLI_COMMAND (cmd_test_frame_queue_threshold) More...
 

Function Documentation

static u32 compute_percent ( u64 two_counters,
u64  total 
)
static

Definition at line 250 of file threads_cli.c.

+ Here is the caller graph for this function:

static u8* format_sched_policy_and_priority ( u8 s,
va_list *  args 
)
static

Definition at line 32 of file threads_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 398 of file threads_cli.c.

+ Here is the call graph for this function:

static clib_error_t* show_frame_queue_internal ( vlib_main_t vm,
vlib_frame_queue_main_t fqm,
u32  histogram 
)
static

Definition at line 267 of file threads_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 378 of file threads_cli.c.

+ Here is the call graph for this function:

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

Definition at line 51 of file threads_cli.c.

+ Here is the call graph for this function:

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

Definition at line 438 of file threads_cli.c.

+ Here is the call graph for this function:

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

Definition at line 505 of file threads_cli.c.

+ Here is the call graph for this function:

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

Definition at line 165 of file threads_cli.c.

+ Here is the call graph for this function:

Variable Documentation

vlib_cli_command_t cmd_show_frame_queue_histogram
static
Initial value:
= {
.path = "show frame-queue histogram",
.short_help = "show frame-queue histogram",
}
static clib_error_t * show_frame_queue_histogram(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: threads_cli.c:398

(constructor) VLIB_CLI_COMMAND (cmd_show_frame_queue_histogram)

Definition at line 426 of file threads_cli.c.

vlib_cli_command_t cmd_show_frame_queue_trace
static
Initial value:
= {
.path = "show frame-queue",
.short_help = "show frame-queue trace",
}
static clib_error_t * show_frame_queue_trace(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: threads_cli.c:378

(constructor) VLIB_CLI_COMMAND (cmd_show_frame_queue_trace)

Definition at line 418 of file threads_cli.c.

vlib_cli_command_t cmd_test_frame_queue_nelts
static
Initial value:
= {
.path = "test frame-queue nelts",
.short_help = "test frame-queue nelts (4,8,16,32)",
}
static clib_error_t * test_frame_queue_nelts(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: threads_cli.c:438

(constructor) VLIB_CLI_COMMAND (cmd_test_frame_queue_nelts)

Definition at line 493 of file threads_cli.c.

vlib_cli_command_t cmd_test_frame_queue_threshold
static
Initial value:
= {
.path = "test frame-queue threshold",
.short_help = "test frame-queue threshold N (0=no limit)",
}
static clib_error_t * test_frame_queue_threshold(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: threads_cli.c:505

(constructor) VLIB_CLI_COMMAND (cmd_test_frame_queue_threshold)

Definition at line 565 of file threads_cli.c.

vlib_cli_command_t cmd_trace_frame_queue
static
Initial value:
= {
.path = "trace frame-queue",
.short_help = "trace frame-queue (on|off)",
.function = trace_frame_queue,
.is_mp_safe = 1,
}
static clib_error_t * trace_frame_queue(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: threads_cli.c:165

(constructor) VLIB_CLI_COMMAND (cmd_trace_frame_queue)

Definition at line 236 of file threads_cli.c.

vlib_cli_command_t show_threads_command
static
Initial value:
= {
.path = "show threads",
.short_help = "Show threads",
.function = show_threads_fn,
}
static clib_error_t * show_threads_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: threads_cli.c:51

(constructor) VLIB_CLI_COMMAND (show_threads_command)

Definition at line 154 of file threads_cli.c.