summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_events_stage_3.h
diff options
context:
space:
mode:
authorSteven Rostedt2009-04-10 14:54:16 +0200
committerSteven Rostedt2009-04-14 15:43:40 +0200
commitea20d9293ce423a39717ed4375393129a2e701f9 (patch)
tree30cbfd532e6541c17eb69a63044cfe7bce6cf974 /kernel/trace/trace_events_stage_3.h
parenttracing/filters: allow on-the-fly filter switching (diff)
downloadkernel-qcow2-linux-ea20d9293ce423a39717ed4375393129a2e701f9.tar.gz
kernel-qcow2-linux-ea20d9293ce423a39717ed4375393129a2e701f9.tar.xz
kernel-qcow2-linux-ea20d9293ce423a39717ed4375393129a2e701f9.zip
tracing: consolidate trace and trace_event headers
Impact: clean up Neil Horman (et. al.) criticized the way the trace events were broken up into two files. The reason for that was that ftrace needed to separate out the declarations from where the #include <linux/tracepoint.h> was used. It then dawned on me that the tracepoint.h header only needs to define the TRACE_EVENT macro if it is not already defined. The solution is simply to test if TRACE_EVENT is defined, and if it is not then the linux/tracepoint.h header can define it. This change consolidates all the <traces>.h and <traces>_event_types.h into the <traces>.h file. Reported-by: Neil Horman <nhorman@tuxdriver.com> Reported-by: Theodore Tso <tytso@mit.edu> Reported-by: Jiaying Zhang <jiayingz@google.com> Cc: Zhaolei <zhaolei@cn.fujitsu.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Jason Baron <jbaron@redhat.com> Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_events_stage_3.h')
-rw-r--r--kernel/trace/trace_events_stage_3.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_events_stage_3.h b/kernel/trace/trace_events_stage_3.h
index 5bb1b7ffbdb6..45c04e1f38db 100644
--- a/kernel/trace/trace_events_stage_3.h
+++ b/kernel/trace/trace_events_stage_3.h
@@ -1,7 +1,7 @@
/*
* Stage 3 of the trace events.
*
- * Override the macros in <trace/trace_event_types.h> to include the following:
+ * Override the macros in <trace/trace_events.h> to include the following:
*
* static void ftrace_event_<call>(proto)
* {
@@ -272,7 +272,7 @@ __attribute__((section("_ftrace_events"))) event_##call = { \
_TRACE_PROFILE_INIT(call) \
}
-#include <trace/trace_event_types.h>
+#include <trace/trace_events.h>
#undef _TRACE_PROFILE
#undef _TRACE_PROFILE_INIT