aboutsummaryrefslogtreecommitdiffstats
path: root/vlib/vlib/trace.h
diff options
context:
space:
mode:
authorBud Grise <griseb@cisco.com>2016-02-19 12:10:33 -0500
committerGerrit Code Review <gerrit@fd.io>2016-02-26 21:01:17 +0000
commitd56a6f59e99b7adec6742cd25f0d84bacf594537 (patch)
tree868a86b3fd2554ed11744a457e18610de4ddcfd8 /vlib/vlib/trace.h
parent060c6fc0b54c909db56856b4d3e3fa65265f5871 (diff)
Add packet tracing hint
This avoids checking the buffer flags bit if tracing is not enabled. Change-Id: I32e1a90b5fd10318254c611344488bc2a441c71e Signed-off-by: Todd Foggoa (tfoggoa) <tfoggoa@cisco.com>
Diffstat (limited to 'vlib/vlib/trace.h')
-rw-r--r--vlib/vlib/trace.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vlib/vlib/trace.h b/vlib/vlib/trace.h
index 50e51638fdb..fe5d7377861 100644
--- a/vlib/vlib/trace.h
+++ b/vlib/vlib/trace.h
@@ -76,6 +76,9 @@ typedef struct {
#define FILTER_FLAG_EXCLUDE 2
u32 filter_count;
+ /* set on trace add, cleared on clear trace */
+ u32 trace_active_hint;
+
/* Per node trace counts. */
vlib_trace_node_t * nodes;
} vlib_trace_main_t;