Li Zefan d0b6e04a4c tracing/events: Move TRACE_SYSTEM outside of include guard
If TRACE_INCLDUE_FILE is defined, <trace/events/TRACE_INCLUDE_FILE.h>
will be included and compiled, otherwise it will be
<trace/events/TRACE_SYSTEM.h>

So TRACE_SYSTEM should be defined outside of #if proctection,
just like TRACE_INCLUDE_FILE.

Imaging this scenario:

 #include <trace/events/foo.h>
    -> TRACE_SYSTEM == foo
 ...
 #include <trace/events/bar.h>
    -> TRACE_SYSTEM == bar
 ...
 #define CREATE_TRACE_POINTS
 #include <trace/events/foo.h>
    -> TRACE_SYSTEM == bar !!!

and then bar.h will be included and compiled.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4A5A9CF1.2010007@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-07-13 10:59:55 +02:00
..
2009-03-31 23:00:26 -04:00
2006-11-30 10:37:32 -05:00
2009-05-22 10:01:55 +01:00
2009-06-12 08:49:20 +01:00
2009-05-22 10:01:55 +01:00
2009-03-24 11:21:14 +00:00
2007-10-10 08:55:03 +01:00
2009-05-22 10:01:55 +01:00
2009-06-03 10:07:44 +01:00
2008-06-27 09:39:44 +01:00
2009-06-12 08:49:20 +01:00
2009-03-24 11:21:14 +00:00
2009-06-12 08:49:20 +01:00
2008-06-27 09:39:31 +01:00
2009-06-12 08:49:20 +01:00
2008-03-31 10:39:54 +01:00
2009-05-19 10:01:18 +01:00
2009-06-12 08:49:20 +01:00
2009-05-22 10:01:55 +01:00
2009-03-24 11:21:27 +00:00
2009-06-12 08:49:20 +01:00
2009-05-22 10:01:55 +01:00
2009-05-19 10:01:18 +01:00
2009-05-19 10:01:18 +01:00
2009-06-12 08:49:20 +01:00
2009-01-05 07:39:13 +00:00
2009-03-24 11:21:14 +00:00
2009-01-05 07:39:05 +00:00