Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754765AbZDOQIe (ORCPT ); Wed, 15 Apr 2009 12:08:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753375AbZDOQIH (ORCPT ); Wed, 15 Apr 2009 12:08:07 -0400 Received: from gw.goop.org ([64.81.55.164]:56323 "EHLO mail.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753199AbZDOQIF (ORCPT ); Wed, 15 Apr 2009 12:08:05 -0400 Message-ID: <49E6065B.7080409@goop.org> Date: Wed, 15 Apr 2009 09:07:55 -0700 From: Jeremy Fitzhardinge User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Mathieu Desnoyers CC: Steven Rostedt , linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , Thomas Gleixner , Peter Zijlstra , Frederic Weisbecker , Theodore Tso , Arjan van de Ven , Christoph Hellwig , Lai Jiangshan , Zhaolei , Li Zefan , KOSAKI Motohiro , Masami Hiramatsu , "Frank Ch. Eigler" , Tom Zanussi , Jiaying Zhang , Michael Rubin , Martin Bligh , Peter Zijlstra , Neil Horman , Eduard - Gabriel Munteanu , Pekka Enberg Subject: Re: [PATCH 2/8] tracing: create automated trace defines References: <20090414172337.280621613@goodmis.org> <20090414172640.796858018@goodmis.org> <49E51FC1.8090306@goop.org> <20090415014548.GA7984@Krystal> In-Reply-To: <20090415014548.GA7984@Krystal> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 896 Lines: 23 Mathieu Desnoyers wrote: > * Jeremy Fitzhardinge (jeremy@goop.org) wrote: >> -#define __DO_TRACE(tp, proto, args) \ >> - do { \ >> +#define DEFINE_DO_TRACE(name, proto, args) \ >> + void __do_trace_##name(struct tracepoint *tp, TP_PROTO(proto)) \ >> > > I fear that won't work with "void" prototype. If we need this kind of > flexibility, we will need to create a special case for empty prototype. > Yes, that has been a bit awkward. I couldn't find a way to create a no-param tracepoint, and so ended up passing a dummy arg. Stupid C syntax. On the other hand, I can get something that actually compiles this way... J -- 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/