FD.io VPP  v18.07-rc0-415-g6c78436
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 240 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 25 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 388 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 257 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 368 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 44 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 428 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 503 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 141 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:388

(constructor) VLIB_CLI_COMMAND (cmd_show_frame_queue_histogram)

Definition at line 416 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:368

(constructor) VLIB_CLI_COMMAND (cmd_show_frame_queue_trace)

Definition at line 408 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:428

(constructor) VLIB_CLI_COMMAND (cmd_test_frame_queue_nelts)

Definition at line 491 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:503

(constructor) VLIB_CLI_COMMAND (cmd_test_frame_queue_threshold)

Definition at line 570 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:141

(constructor) VLIB_CLI_COMMAND (cmd_trace_frame_queue)

Definition at line 226 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:44

(constructor) VLIB_CLI_COMMAND (show_threads_command)

Definition at line 130 of file threads_cli.c.