aboutsummaryrefslogtreecommitdiffstats
path: root/vlib
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 /vlib
parent6f7b992f56955b9eee2f9bd6357e2119645e80f7 (diff)
Add per-thread, per-node runtime stats serialization
Change-Id: Ic4009cdbac67b7cd53c88079439496b9d9dfaa35 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vlib')
-rw-r--r--vlib/vlib/main.h2
-rw-r--r--vlib/vlib/node.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/vlib/vlib/main.h b/vlib/vlib/main.h
index ef36c1e39ac..ea279c36bdd 100644
--- a/vlib/vlib/main.h
+++ b/vlib/vlib/main.h
@@ -314,4 +314,6 @@ u8 **vlib_thread_stacks;
/* Number of thread stacks that the application needs */
u32 vlib_app_num_thread_stacks_needed (void) __attribute__ ((weak));
+extern void vlib_node_sync_stats (vlib_main_t * vm, vlib_node_t * n);
+
#endif /* included_vlib_main_h */
diff --git a/vlib/vlib/node.h b/vlib/vlib/node.h
index 9b33a0a3ae0..a54f4e83e62 100644
--- a/vlib/vlib/node.h
+++ b/vlib/vlib/node.h
@@ -311,6 +311,8 @@ typedef struct vlib_node_t {
u8 * (* validate_frame) (struct vlib_main_t * vm,
struct vlib_node_runtime_t *,
struct vlib_frame_t * f);
+ /* for pretty-printing, not typically valid */
+ u8 * state_string;
} vlib_node_t;
#define VLIB_INVALID_NODE_INDEX ((u32) ~0)