lkml.org 
[lkml]   [2009]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 0/8] [GIT PULL] TRACE_EVENT for modules

    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



    \
     
     \ /
      Last update: 2009-04-15 00:01    [W:0.029 / U:60.768 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site