aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/trace.h
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2018-08-17 18:29:07 -0400
committerDamjan Marion <dmarion@me.com>2018-08-24 19:03:12 +0000
commitf8b8586b699bae9e786726f2697c3e642d904c61 (patch)
treef8be5022a5e6b1ce80023be6b3a02d241f40b466 /src/vlib/trace.h
parenta9aedb681feb0a489b1b78435794081ecd5b88fc (diff)
Clean up packet tracer, especially "clear trace"
There are multiple trace enablement schemes. It's easy to end up in vlib_add_trace with tracing disabled insofar as the packet tracer is concerned. When that happens, return the address of a per-system dummy trace record. Change-Id: I929391b8be4ed57e26e291afdc509a15f09a3160 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vlib/trace.h')
-rw-r--r--src/vlib/trace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/trace.h b/src/vlib/trace.h
index fc0fc5c8ed4..0560913c588 100644
--- a/src/vlib/trace.h
+++ b/src/vlib/trace.h
@@ -80,7 +80,7 @@ typedef struct
u32 filter_count;
/* set on trace add, cleared on clear trace */
- u32 trace_active_hint;
+ u32 trace_enable;
/* Per node trace counts. */
vlib_trace_node_t *nodes;