aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/unix
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2017-10-18 18:48:11 -0400
committerFlorin Coras <florin.coras@gmail.com>2017-10-19 04:35:54 +0000
commit7bee773e71b81a1e13a656030b0f7edae99c5e92 (patch)
tree86f615367c1b3bf29ecd2957c7dbea2d9e6ed0a6 /src/vnet/unix
parent9c4b5b28b1c1df0c100b377a2f5bfc07bd9a0b2e (diff)
VPP-1024: rewrite buffer trajectory tracer
Use a proper u16 * vector to capture node indices, since vpp w/ plugins now exceeds 255 graph nodes Change-Id: Ic48cad676fa3a6116413ddf08c083dd9660783f1 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vnet/unix')
-rw-r--r--src/vnet/unix/gdb_funcs.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/vnet/unix/gdb_funcs.c b/src/vnet/unix/gdb_funcs.c
index 32e22d924ba..40d0d663472 100644
--- a/src/vnet/unix/gdb_funcs.c
+++ b/src/vnet/unix/gdb_funcs.c
@@ -190,6 +190,8 @@ show_gdb_command_fn (vlib_main_t * vm,
vlib_cli_command_t * cmd)
{
vlib_cli_output (vm, "vl(p) returns vec_len(p)");
+ vlib_cli_output (vm, "vb(b) returns vnet_buffer(b) [opaque]");
+ vlib_cli_output (vm, "vb2(b) returns vnet_buffer2(b) [opaque2]");
vlib_cli_output (vm, "pe(p) returns pool_elts(p)");
vlib_cli_output (vm, "pifi(p, i) returns pool_is_free_index(p, i)");
vlib_cli_output (vm, "gdb_show_errors(0|1) dumps error counters");
@@ -217,6 +219,17 @@ vnet_buffer_opaque_t *vb (void *vb_arg)
return rv;
}
+vnet_buffer_opaque2_t *vb2 (void *vb_arg)
+{
+ vlib_buffer_t *b = (vlib_buffer_t *)vb_arg;
+ vnet_buffer_opaque2_t *rv;
+
+ rv = vnet_buffer2(b);
+
+ return rv;
+}
+
+
/* Cafeteria plan, maybe you don't want these functions */
clib_error_t *
gdb_func_init (vlib_main_t * vm) { return 0; }