linux-sg2042/samples
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
..
kobject samples: mark {static|__init|__exit} for {init|exit} functions 2009-01-06 15:59:12 -08:00
kprobes Kprobes: move kprobe examples to samples/ 2008-03-04 16:35:11 -08:00
markers samples: mark {static|__init|__exit} for {init|exit} functions 2009-01-06 15:59:12 -08:00
trace_events tracing/events: Move TRACE_SYSTEM outside of include guard 2009-07-13 10:59:55 +02:00
tracepoints tracing: Documentation / sample code fixes for tracepoints 2009-03-24 22:32:12 +01:00
Kconfig kobject: samples: make SAMPLE_KOBJECT module-only 2009-06-15 21:30:24 -07:00
Makefile tracing/events: add trace-events-sample 2009-04-14 22:09:18 -04:00