FD.io VPP  v20.09-64-g4f7b92f0a
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

◆ compute_percent()

static u32 compute_percent ( u64 two_counters,
u64  total 
)
static

Definition at line 198 of file threads_cli.c.

+ Here is the caller graph for this function:

◆ format_sched_policy_and_priority()

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

Definition at line 24 of file threads_cli.c.

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

◆ 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 
)
static

Definition at line 346 of file threads_cli.c.

+ Here is the call graph for this function:

◆ show_frame_queue_internal()

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

Definition at line 215 of file threads_cli.c.

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

◆ 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 
)
static

Definition at line 326 of file threads_cli.c.

+ Here is the call graph for this function:

◆ show_threads_fn()

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

Definition at line 43 of file threads_cli.c.

+ Here is the call graph for this function:

◆ test_frame_queue_nelts()

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 386 of file threads_cli.c.

+ Here is the call graph for this function:

◆ test_frame_queue_threshold()

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 461 of file threads_cli.c.

+ Here is the call graph for this function:

◆ trace_frame_queue()

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

Definition at line 99 of file threads_cli.c.

+ Here is the call graph for this function:

Variable Documentation

◆ cmd_show_frame_queue_histogram

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:346

(constructor) VLIB_CLI_COMMAND (cmd_show_frame_queue_histogram)

Definition at line 374 of file threads_cli.c.

◆ cmd_show_frame_queue_trace

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:326

(constructor) VLIB_CLI_COMMAND (cmd_show_frame_queue_trace)

Definition at line 366 of file threads_cli.c.

◆ cmd_test_frame_queue_nelts

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:386

(constructor) VLIB_CLI_COMMAND (cmd_test_frame_queue_nelts)

Definition at line 449 of file threads_cli.c.

◆ cmd_test_frame_queue_threshold

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:461

(constructor) VLIB_CLI_COMMAND (cmd_test_frame_queue_threshold)

Definition at line 528 of file threads_cli.c.

◆ cmd_trace_frame_queue

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:99

(constructor) VLIB_CLI_COMMAND (cmd_trace_frame_queue)

Definition at line 184 of file threads_cli.c.

◆ show_threads_command

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:43

(constructor) VLIB_CLI_COMMAND (show_threads_command)

Definition at line 88 of file threads_cli.c.