]> git.karo-electronics.de Git - linux-beck.git/commit
tracing/events: Move TRACE_SYSTEM outside of include guard
authorLi Zefan <lizf@cn.fujitsu.com>
Mon, 13 Jul 2009 02:33:21 +0000 (10:33 +0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 13 Jul 2009 08:59:55 +0000 (10:59 +0200)
commitd0b6e04a4cd8360e3c9c419f7c30a3081a0c142a
tree621a99cac5fdc0c90a3bcdab60d5896daba04a00
parent7638d5322bd89d49e013a03fe2afaeb6d214fabd
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>
fs/gfs2/trace_gfs2.h
include/trace/events/block.h
include/trace/events/ext4.h
include/trace/events/irq.h
include/trace/events/jbd2.h
include/trace/events/kmem.h
include/trace/events/lockdep.h
include/trace/events/sched.h
include/trace/events/skb.h
include/trace/events/workqueue.h
samples/trace_events/trace-events-sample.h