Re: [PATCH 0/8] [GIT PULL] TRACE_EVENT for modules

Steven Rostedt
2009-04-14T21:59:19Z

On Tue, 14 Apr 2009, Steven Rostedt wrote:
>
> Yes, at the bottom of your header file, before including define_trace.h,
> you can simply add:
>
> #undef TRACE_INCLUDE_PATH
> #define TRACE_INCLUDE_PATH ../../fs/ext4
>
> #include <trace/define_trace.h>
>
> the TRACE_INCLUDE_PATH is a reference from where trace/define_trace.h is
> located. It may even be cleaner to do:
>
>
> #undef TRACE_INCLUDE_PATH
> #define TRACE_INCLUDE_PATH EXT4_PATH
>
> and in the Makefile have:
>
> CFLAGS_ext4_jbd2.o := -DEXT4_PATH=$(PWD)
>
> That's something like what I did for my external module test.

Note, you only need to add the CFLAGS for the object that performs the:

#define CREATE_TRACE_POINTS

-- Steve