On Fri, 17 Apr 2009, Jeremy Fitzhardinge wrote:
Steven Rostedt wrote:
On Fri, 17 Apr 2009, Jeremy Fitzhardinge wrote:Yes, but it means that if you're in the middle of CREATE_FOO_TRACE_POINTS and
Steven Rostedt wrote:Actually, I'm kind of against that. Just because as it stands, the
Ah yes! It needs to be:We should probably also move the #define TRACE_SYS in there as well
#ifdef CONFIG_IRQ_TRACE_POINTS
#undef CONFIG_IRQ_TRACE_POINTS
#include <trace/define_trace.h>
#endif
Otherwise we get into the recursion again.
(without
the #undef), as it should only have one definition at a time...
TRACE_SYSTEM macro is up at the top, and it is easy to see.
foo.h happens to include bar.h, suddenly TRACE_SUBSYSTEM becomes bar...
How so?