23 u32 fl_len, track_index;
37 #define _(sym, str) str, 62 u32 group = ~0, level = ~0;
76 else if (
unformat (line_input,
"group %d", &group))
78 else if (
unformat (line_input,
"level %d", &level))
98 if (group == ~0 || level == ~0)
116 .short_help =
"tcp [show] [debug group <N> level <N>]",
vlib_main_t vlib_global_main
word elog_track_register(elog_main_t *em, elog_track_t *t)
register an event track
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_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)
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[]
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)