From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758265AbZDPSXu (ORCPT ); Thu, 16 Apr 2009 14:23:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757252AbZDPSXk (ORCPT ); Thu, 16 Apr 2009 14:23:40 -0400 Received: from pfepb.post.tele.dk ([195.41.46.236]:52814 "EHLO pfepb.post.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756824AbZDPSXk (ORCPT ); Thu, 16 Apr 2009 14:23:40 -0400 Date: Thu, 16 Apr 2009 20:25:43 +0200 From: Sam Ravnborg To: Steven Rostedt Cc: Christoph Hellwig , linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , Thomas Gleixner , Peter Zijlstra , Frederic Weisbecker , Theodore Tso , Arjan van de Ven , 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 4/4] tracing/events: add trace-events-sample Message-ID: <20090416182543.GD5377@uranus.ravnborg.org> References: <20090415031511.128139334@goodmis.org> <20090415031605.445499740@goodmis.org> <20090416165849.GF5933@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 16, 2009 at 01:34:46PM -0400, Steven Rostedt wrote: > > On Thu, 16 Apr 2009, Christoph Hellwig wrote: > > > On Tue, Apr 14, 2009 at 11:15:15PM -0400, Steven Rostedt wrote: > > > +++ b/samples/trace_events/Makefile > > > @@ -0,0 +1,8 @@ > > > +# builds the trace events example kernel modules; > > > +# then to use one (as root): insmod > > > + > > > +PWD := $(shell pwd) > > > + > > > +CFLAGS_trace-events-sample.o := -I$(PWD)/samples/trace_events/ > > > > CFLAGS_trace-events-sample.o += -I$(src) > > Is $(src) defined to be where the object is compiled? $(src) is the path to the directory where the source files are located. $(obj) is the path to the directory where the output is located. They are both relative to the root of the kernel tree and thus they are equal. We have $(src) and $(obj) only for documentation purposes today. In this case $(src) is correct as we want to point at where the source files are located. Sam