FD.io VPP  v17.01.1-3-gc6833f8
Vector Packet Processing
cj.c File Reference

Circular joournal 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 joournal 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

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

Definition at line 217 of file cj.c.

+ Here is the call graph for this function:

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:

void cj_dump ( void  )

Definition at line 193 of file cj.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cj_dump_filter_data0 ( u64  filter0)

Definition at line 199 of file cj.c.

+ Here is the call graph for this function:

void cj_dump_filter_data1 ( u64  filter1)

Definition at line 205 of file cj.c.

+ Here is the call graph for this function:

void cj_dump_filter_data12 ( u64  filter0,
u64  filter1 
)

Definition at line 211 of file cj.c.

+ Here is the call graph for this function:

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

Definition at line 141 of file cj.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

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:

clib_error_t* cj_init ( vlib_main_t vm)

Definition at line 67 of file cj.c.

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:

void cj_stop ( void  )

Definition at line 58 of file cj.c.

+ Here is the caller graph for this function:

Variable Documentation

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:217

(constructor) VLIB_CLI_COMMAND (cj_command)

Definition at line 257 of file cj.c.

cj_main_t cj_main

Definition at line 35 of file cj.c.