From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758937AbZDPRA7 (ORCPT ); Thu, 16 Apr 2009 13:00:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753335AbZDPRAs (ORCPT ); Thu, 16 Apr 2009 13:00:48 -0400 Received: from verein.lst.de ([213.95.11.210]:37891 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752671AbZDPRAr (ORCPT ); Thu, 16 Apr 2009 13:00:47 -0400 Date: Thu, 16 Apr 2009 18:58:49 +0200 From: Christoph Hellwig To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , Thomas Gleixner , Peter Zijlstra , Frederic Weisbecker , Theodore Tso , 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 4/4] tracing/events: add trace-events-sample Message-ID: <20090416165849.GF5933@lst.de> References: <20090415031511.128139334@goodmis.org> <20090415031605.445499740@goodmis.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090415031605.445499740@goodmis.org> User-Agent: Mutt/1.3.28i X-Spam-Score: 0 () Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) That should better be written as. But you'd easily get rid of that by just including the file using #include "foo.h" instead of , no? > --- /dev/null > +++ b/samples/trace_events/trace-events-sample.h > @@ -0,0 +1,124 @@ > +/* > + * Notice that this file is not protected like a normal header. > + * We also must allow for rereading of this file. The > + * > + * || defined(TRACE_HEADER_MULTI_READ) > + * > + * serves this purpose. > + */ > +#if !defined(_TRACE_EVENT_SAMPLE_H) || defined(TRACE_HEADER_MULTI_READ) > +#define _TRACE_EVENT_SAMPLE_H Why do we need this protection at all? It only be included by the users of the tracepoints, and it seems just fair to take some more than normal precaution for more than unusual magic headers.