aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--samples/trace_events/trace-events-sample.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/samples/trace_events/trace-events-sample.h b/samples/trace_events/trace-events-sample.h
index eab46443e610..128a897687c5 100644
--- a/samples/trace_events/trace-events-sample.h
+++ b/samples/trace_events/trace-events-sample.h
@@ -31,7 +31,7 @@
31 * 31 *
32 */ 32 */
33#undef TRACE_SYSTEM 33#undef TRACE_SYSTEM
34#define TRACE_SYSTEM trace-events-sample 34#define TRACE_SYSTEM sample
35 35
36/* 36/*
37 * The TRACE_EVENT macro is broken up into 5 parts. 37 * The TRACE_EVENT macro is broken up into 5 parts.
@@ -120,5 +120,10 @@ TRACE_EVENT(foo_bar,
120 * result. 120 * result.
121 */ 121 */
122#undef TRACE_INCLUDE_PATH 122#undef TRACE_INCLUDE_PATH
123#undef TRACE_INCLUDE_FILE
123#define TRACE_INCLUDE_PATH . 124#define TRACE_INCLUDE_PATH .
125/*
126 * TRACE_INCLUDE_FILE is not needed if the filename and TRACE_SYSTEM are equal
127 */
128#define TRACE_INCLUDE_FILE trace-events-sample
124#include <trace/define_trace.h> 129#include <trace/define_trace.h>