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

From: Steven Rostedt
Date: Tue Apr 14 2009 - 17:59:19 EST



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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/