FD.io VPP  v16.09
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 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, 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 154 of file threads_cli.c.

+ 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 289 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,
u32  histogram 
)
static

Definition at line 171 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 282 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 22 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 316 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 358 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 89 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:289

(constructor) VLIB_CLI_COMMAND (cmd_show_frame_queue_histogram)

Definition at line 304 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:282

(constructor) VLIB_CLI_COMMAND (cmd_show_frame_queue_trace)

Definition at line 296 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:316

(constructor) VLIB_CLI_COMMAND (cmd_test_frame_queue_nelts)

Definition at line 346 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:358

(constructor) VLIB_CLI_COMMAND (cmd_test_frame_queue_threshold)

Definition at line 394 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:89

(constructor) VLIB_CLI_COMMAND (cmd_trace_frame_queue)

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

(constructor) VLIB_CLI_COMMAND (show_threads_command)

Definition at line 78 of file threads_cli.c.