FD.io VPP  v17.04.2-2-ga8f93f8
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 239 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 24 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 387 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 256 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 367 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 43 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 427 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 502 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 140 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:387

(constructor) VLIB_CLI_COMMAND (cmd_show_frame_queue_histogram)

Definition at line 415 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:367

(constructor) VLIB_CLI_COMMAND (cmd_show_frame_queue_trace)

Definition at line 407 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:427

(constructor) VLIB_CLI_COMMAND (cmd_test_frame_queue_nelts)

Definition at line 490 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:502

(constructor) VLIB_CLI_COMMAND (cmd_test_frame_queue_threshold)

Definition at line 569 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:140

(constructor) VLIB_CLI_COMMAND (cmd_trace_frame_queue)

Definition at line 225 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:43

(constructor) VLIB_CLI_COMMAND (show_threads_command)

Definition at line 129 of file threads_cli.c.