FD.io VPP  v21.06-1-gbb7418cf9
Vector Packet Processing
cj.c File Reference

Circular journal diagnostic mechanism. More...

+ Include dependency graph for cj.c:

Go to the source code of this file.

Functions

void cj_log (u32 type, void *data0, void *data1)
 
void cj_stop (void)
 
clib_error_tcj_init (vlib_main_t *vm)
 
static clib_error_tcj_config (vlib_main_t *vm, unformat_input_t *input)
 
void cj_enable_disable (int is_enable)
 
static void cj_dump_one_record (cj_record_t *r)
 
static void cj_dump_internal (u8 filter0_enable, u64 filter0, u8 filter1_enable, u64 filter1)
 
void cj_dump (void)
 
void cj_dump_filter_data0 (u64 filter0)
 
void cj_dump_filter_data1 (u64 filter1)
 
void cj_dump_filter_data12 (u64 filter0, u64 filter1)
 
static clib_error_tcj_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

cj_main_t cj_main
 
static vlib_cli_command_t cj_command
 (constructor) VLIB_CLI_COMMAND (cj_command) More...
 

Detailed Description

Circular journal diagnostic mechanism.

The cj thread-safe circular log buffer scheme is occasionally useful when chasing bugs. Calls to it should not be checked in.

Definition in file cj.c.

Function Documentation

◆ cj_command_fn()

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

Definition at line 218 of file cj.c.

+ Here is the call graph for this function:

◆ cj_config()

static clib_error_t* cj_config ( vlib_main_t vm,
unformat_input_t input 
)
static

Definition at line 78 of file cj.c.

+ Here is the call graph for this function:

◆ cj_dump()

void cj_dump ( void  )

Definition at line 194 of file cj.c.

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

◆ cj_dump_filter_data0()

void cj_dump_filter_data0 ( u64  filter0)

Definition at line 200 of file cj.c.

+ Here is the call graph for this function:

◆ cj_dump_filter_data1()

void cj_dump_filter_data1 ( u64  filter1)

Definition at line 206 of file cj.c.

+ Here is the call graph for this function:

◆ cj_dump_filter_data12()

void cj_dump_filter_data12 ( u64  filter0,
u64  filter1 
)

Definition at line 212 of file cj.c.

+ Here is the call graph for this function:

◆ cj_dump_internal()

static void cj_dump_internal ( u8  filter0_enable,
u64  filter0,
u8  filter1_enable,
u64  filter1 
)
static

Definition at line 142 of file cj.c.

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

◆ cj_dump_one_record()

static void cj_dump_one_record ( cj_record_t r)
inlinestatic

Definition at line 133 of file cj.c.

+ Here is the caller graph for this function:

◆ cj_enable_disable()

void cj_enable_disable ( int  is_enable)

Definition at line 122 of file cj.c.

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

◆ cj_init()

clib_error_t* cj_init ( vlib_main_t vm)

Definition at line 67 of file cj.c.

◆ cj_log()

void cj_log ( u32  type,
void *  data0,
void *  data1 
)

Definition at line 38 of file cj.c.

+ Here is the call graph for this function:

◆ cj_stop()

void cj_stop ( void  )

Definition at line 58 of file cj.c.

Variable Documentation

◆ cj_command

vlib_cli_command_t cj_command
static
Initial value:
= {
.path = "cj",
.short_help = "cj <enable | disable | dump>",
.function = cj_command_fn,
}
static clib_error_t * cj_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cj.c:218

(constructor) VLIB_CLI_COMMAND (cj_command)

Definition at line 270 of file cj.c.

◆ cj_main

cj_main_t cj_main

Definition at line 35 of file cj.c.