18 #include <sys/socket.h> 26 #include <vpp/app/version.h> 30 #include <tracedump/graph.api_enum.h> 31 #include <tracedump/graph.api_types.h> 42 for (i = 0; i < n_arcs; ++
i)
77 if (
unformat (input,
"node %d", &index))
79 else if (
unformat (input,
"node %v", &name))
82 else if (
unformat (input,
"want_arcs"))
85 else if (
unformat (input,
"trace_supported"))
95 else if (
unformat (input,
"handoff"))
97 else if (
unformat (input,
"no_free"))
99 else if (
unformat (input,
"polling"))
101 else if (
unformat (input,
"interrupt"))
122 for (i = 0; i <
vec_len (nodes); ++
i)
124 if (flags == 0 || (flags & nodes[i]->flags))
137 .path =
"show graph",
138 .short_help =
"show graph [node <index>|<name>] [want_arcs] [input|trace_supported] [drop] [output] [punt] [handoff] [no_free] [polling] [interrupt]",
vl_api_wireguard_peer_flags_t flags
static clib_error_t * graph_node_show_cmd(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static int node_cmp(void *a1, void *a2)
#define clib_error_return(e, args...)
vlib_node_t * vlib_get_node_by_name(vlib_main_t *vm, u8 *name)
static void graph_node_print(vlib_main_t *vm, vlib_node_t *n, bool want_arcs)
#define vec_dup(V)
Return copy of vector (no header, no alignment)
sll srl srl sll sra u16x4 i
#define vec_free(V)
Free vector's memory (no header).
#define VLIB_CLI_COMMAND(x,...)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
#define vec_cmp(v1, v2)
Compare two vectors (only applicable to vectors of signed numbers).
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
vlib_node_main_t node_main
#define vec_sort_with_function(vec, f)
Sort a vector using the supplied element comparison function.
static vlib_node_t * vlib_get_node(vlib_main_t *vm, u32 i)
Get vlib node by index.