23 u32 fl_len, track_index;
37 #define _(sym, str) str, 60 int i, have_enabled = 0;
85 u32 group = ~0, level = ~0;
99 else if (
unformat (line_input,
"group %d", &group))
101 else if (
unformat (line_input,
"level %d", &level))
121 if (group == ~0 || level == ~0)
141 .short_help =
"tcp [show] [debug group <N> level <N>]",
vlib_main_t vlib_global_main
static clib_error_t * tcp_debug_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define foreach_tcp_evt_grp
#define clib_error_return(e, args...)
u8 grp_dbg_lvl[TCP_EVT_N_GRP]
static void tcp_debug_check_lc(void)
sll srl srl sll sra u16x4 i
static void tcp_debug_show_groups(void)
u32 track_index_plus_one
Set to one when track has been added to main structure.
#define VLIB_CLI_COMMAND(x,...)
void tcp_evt_track_register(elog_track_t *et)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
static vlib_main_t * vlib_get_main(void)
#define TCP_DEBUG_ALWAYS
Build debugging infra unconditionally.
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
tcp_dbg_main_t tcp_dbg_main
static const char * tcp_evt_grp_str[]
__clib_export word elog_track_register(elog_main_t *em, elog_track_t *t)
register an event track