|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
135 fprintf (stderr,
"[%d]: %10.6f T%02d %llx %llx\n",
136 r->thread_index,
r->time,
r->type,
137 (
long long unsigned int)
r->data[0],
138 (
long long unsigned int)
r->data[1]);
143 u8 filter1_enable,
u64 filter1)
151 fprintf (stderr,
"CJ not configured...\n");
157 fprintf (stderr,
"No data collected...\n");
165 if (
r->thread_index != (
u32) ~ 0)
170 if (filter0_enable && (
r->data[0] != filter0))
172 if (filter1_enable && (
r->data[1] != filter1))
183 if (filter0_enable && (
r->data[0] != filter0))
185 if (filter1_enable && (
r->data[1] != filter1))
234 else if (
unformat (line_input,
"disable")
237 else if (
unformat (line_input,
"dump"))
272 .short_help =
"cj <enable | disable | dump>",
static void cj_dump_internal(u8 filter0_enable, u64 filter0, u8 filter1_enable, u64 filter1)
static uword pointer_to_uword(const void *p)
#define clib_atomic_add_fetch(a, b)
static clib_error_t * cj_config(vlib_main_t *vm, unformat_input_t *input)
#define clib_error_return(e, args...)
void cj_dump_filter_data12(u64 filter0, u64 filter1)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
vnet_hw_if_output_node_runtime_t * r
#define VLIB_CONFIG_FUNCTION(x, n,...)
static void cj_dump_one_record(cj_record_t *r)
static clib_error_t * cj_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static_always_inline uword vlib_get_thread_index(void)
sll srl srl sll sra u16x4 i
clib_error_t * cj_init(vlib_main_t *vm)
#define vec_validate(V, I)
Make sure vector is long enough for given index (no header, unspecified alignment)
#define VLIB_CLI_COMMAND(x,...)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
#define VLIB_INIT_FUNCTION(x)
void cj_enable_disable(int is_enable)
static vlib_cli_command_t cj_command
(constructor) VLIB_CLI_COMMAND (cj_command)
void cj_dump_filter_data1(u64 filter1)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
static uword max_pow2(uword x)
static f64 vlib_time_now(vlib_main_t *vm)
void cj_dump_filter_data0(u64 filter0)
void cj_log(u32 type, void *data0, void *data1)
vl_api_fib_path_type_t type