FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
trace_util.c File Reference
+ Include dependency graph for trace_util.c:

Go to the source code of this file.

Functions

static int trace_profile_cleanup (trace_profile *profile)
 
static int trace_main_profiles_reset (void)
 
int trace_util_init (void)
 
int trace_profile_create (trace_profile *profile, u8 trace_type, u8 num_elts, u32 trace_tsp, u32 node_id, u32 app_data)
 
clib_error_tclear_trace_profile_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
void clear_trace_profiles (void)
 
static clib_error_tset_trace_profile_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_trace_profile_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

__clib_export trace_main_t trace_main
 
vlib_cli_command_t clear_trace_profile_command
 (constructor) VLIB_CLI_COMMAND (clear_trace_profile_command) More...
 
static vlib_cli_command_t set_trace_profile_command
 (constructor) VLIB_CLI_COMMAND (set_trace_profile_command) More...
 
static vlib_cli_command_t show_trace_profile_command
 (constructor) VLIB_CLI_COMMAND (show_trace_profile_command) More...
 

Function Documentation

◆ clear_trace_profile_command_fn()

clib_error_t* clear_trace_profile_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)

Definition at line 86 of file trace_util.c.

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

◆ clear_trace_profiles()

void clear_trace_profiles ( void  )

Definition at line 96 of file trace_util.c.

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

◆ set_trace_profile_command_fn()

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

Definition at line 111 of file trace_util.c.

+ Here is the call graph for this function:

◆ show_trace_profile_command_fn()

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

Definition at line 152 of file trace_util.c.

+ Here is the call graph for this function:

◆ trace_main_profiles_reset()

static int trace_main_profiles_reset ( void  )
static

Definition at line 37 of file trace_util.c.

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

◆ trace_profile_cleanup()

static int trace_profile_cleanup ( trace_profile profile)
static

Definition at line 26 of file trace_util.c.

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

◆ trace_profile_create()

int trace_profile_create ( trace_profile profile,
u8  trace_type,
u8  num_elts,
u32  trace_tsp,
u32  node_id,
u32  app_data 
)

Definition at line 57 of file trace_util.c.

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

◆ trace_util_init()

int trace_util_init ( void  )

Definition at line 47 of file trace_util.c.

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

Variable Documentation

◆ clear_trace_profile_command

vlib_cli_command_t clear_trace_profile_command
Initial value:
=
{
.path = "clear ioam-trace profile",
.short_help = "clear ioam-trace profile [<index>|all]",
}

(constructor) VLIB_CLI_COMMAND (clear_trace_profile_command)

Definition at line 102 of file trace_util.c.

◆ set_trace_profile_command

vlib_cli_command_t set_trace_profile_command
static
Initial value:
=
{
.path = "set ioam-trace profile",
.short_help = "set ioam-trace \
trace-type <0x1f|0x3|0x9|0x11|0x19> trace-elts <nn> trace-tsp <0|1|2|3> \
node-id <node id in hex> app-data <app_data in hex>",
}

(constructor) VLIB_CLI_COMMAND (set_trace_profile_command)

Definition at line 141 of file trace_util.c.

◆ show_trace_profile_command

vlib_cli_command_t show_trace_profile_command
static
Initial value:
=
{
.path = "show ioam-trace profile",
.short_help = "show ioam-trace profile",
}

(constructor) VLIB_CLI_COMMAND (show_trace_profile_command)

Definition at line 193 of file trace_util.c.

◆ trace_main

__clib_export trace_main_t trace_main

Definition at line 23 of file trace_util.c.

clear_trace_profile_command_fn
clib_error_t * clear_trace_profile_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: trace_util.c:86
set_trace_profile_command_fn
static clib_error_t * set_trace_profile_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: trace_util.c:111
show_trace_profile_command_fn
static clib_error_t * show_trace_profile_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: trace_util.c:152