aboutsummaryrefslogtreecommitdiffstats
path: root/vpp
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-05-13 12:55:01 -0400
committerDave Barach <dave@barachs.net>2016-05-21 10:04:06 -0400
commit6931f59e54c9643196c0edda20840e49e9eb1da1 (patch)
treeedc1d340cedcc6aca6b4149fbf96f41e65d61661 /vpp
parent6f7b992f56955b9eee2f9bd6357e2119645e80f7 (diff)
Add per-thread, per-node runtime stats serialization
Change-Id: Ic4009cdbac67b7cd53c88079439496b9d9dfaa35 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vpp')
-rw-r--r--vpp/Makefile.am6
-rw-r--r--vpp/api/api.c11
2 files changed, 12 insertions, 5 deletions
diff --git a/vpp/Makefile.am b/vpp/Makefile.am
index bd2d30a9..640c844b 100644
--- a/vpp/Makefile.am
+++ b/vpp/Makefile.am
@@ -93,16 +93,20 @@ SUFFIXES = .api.h .api
| vppapigen --input - --output $@ --show-name $@
-noinst_PROGRAMS += test_client test_ha
+noinst_PROGRAMS += test_client
test_client_SOURCES = api/test_client.c
test_client_LDADD = -lvlibmemoryclient -lvlibapi -lsvm -lvppinfra \
-lpthread -lm -lrt
+noinst_PROGRAMS += test_client test_ha
+
test_ha_SOURCES = api/test_ha.c
test_ha_LDADD = -lvlibmemoryclient -lvlibapi -lsvmdb -lsvm -lvppinfra \
-lpthread -lm -lrt
+
+
noinst_PROGRAMS += summary_stats_client
summary_stats_client_SOURCES = api/summary_stats_client.c
diff --git a/vpp/api/api.c b/vpp/api/api.c
index 42cb772e..d1c45fd3 100644
--- a/vpp/api/api.c
+++ b/vpp/api/api.c
@@ -5828,13 +5828,15 @@ static void vl_api_get_node_graph_t_handler
/*
* Keep the number of memcpy ops to a minimum (e.g. 1).
- * The current size of the serialized vector is
- * slightly under 4K.
*/
- vec_validate (vector, 4095);
+ vec_validate (vector, 16384);
vec_reset_length (vector);
- vector = vlib_node_serialize (&vm->node_main, vector);
+ /* $$$$ FIXME */
+ vector = vlib_node_serialize (&vm->node_main, vector,
+ (u32)~0 /* all threads */,
+ 1 /* include nexts */,
+ 1 /* include stats */);
svm_pop_heap (oldheap);
pthread_mutex_unlock (&am->vlib_rp->mutex);
@@ -6178,6 +6180,7 @@ vpe_api_hookup (vlib_main_t *vm)
* Thread-safe API messages
*/
am->is_mp_safe [VL_API_IP_ADD_DEL_ROUTE] = 1;
+ am->is_mp_safe [VL_API_GET_NODE_GRAPH] = 1;
return 0;
}