Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755463AbZDNV7T (ORCPT ); Tue, 14 Apr 2009 17:59:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753027AbZDNV7G (ORCPT ); Tue, 14 Apr 2009 17:59:06 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.124]:47152 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752123AbZDNV7E (ORCPT ); Tue, 14 Apr 2009 17:59:04 -0400 Date: Tue, 14 Apr 2009 17:59:01 -0400 (EDT) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Theodore Tso cc: linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , Thomas Gleixner , Peter Zijlstra , Frederic Weisbecker , Arjan van de Ven , Christoph Hellwig , Mathieu Desnoyers , Jeremy Fitzhardinge , Lai Jiangshan , Zhaolei , Li Zefan , KOSAKI Motohiro , Masami Hiramatsu , "Frank Ch. Eigler" , Tom Zanussi , Jiaying Zhang , Michael Rubin , Martin Bligh Subject: Re: [PATCH 0/8] [GIT PULL] TRACE_EVENT for modules In-Reply-To: Message-ID: References: <20090414172337.280621613@goodmis.org> <20090414210445.GM955@mit.edu> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 951 Lines: 35 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 > > 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/