diff options
Diffstat (limited to 'src/vlib/trace_funcs.h')
-rw-r--r-- | src/vlib/trace_funcs.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vlib/trace_funcs.h b/src/vlib/trace_funcs.h index b25237bd7e8..98bdb7e0a06 100644 --- a/src/vlib/trace_funcs.h +++ b/src/vlib/trace_funcs.h @@ -40,7 +40,7 @@ #ifndef included_vlib_trace_funcs_h #define included_vlib_trace_funcs_h -extern u8 *vnet_trace_dummy; +extern u8 *vnet_trace_placeholder; always_inline void vlib_validate_trace (vlib_trace_main_t * tm, vlib_buffer_t * b) @@ -60,10 +60,10 @@ vlib_add_trace_inline (vlib_main_t * vm, vlib_trace_header_t *h; u32 n_data_words; - ASSERT (vnet_trace_dummy); + ASSERT (vnet_trace_placeholder); if (PREDICT_FALSE ((b->flags & VLIB_BUFFER_IS_TRACED) == 0)) - return vnet_trace_dummy; + return vnet_trace_placeholder; if (PREDICT_FALSE (tm->add_trace_callback != 0)) { @@ -74,8 +74,8 @@ vlib_add_trace_inline (vlib_main_t * vm, } else if (PREDICT_FALSE (tm->trace_enable == 0)) { - ASSERT (vec_len (vnet_trace_dummy) >= n_data_bytes + sizeof (*h)); - return vnet_trace_dummy; + ASSERT (vec_len (vnet_trace_placeholder) >= n_data_bytes + sizeof (*h)); + return vnet_trace_placeholder; } /* Are we trying to trace a handoff case? */ |