From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761398AbZBYQ3R (ORCPT ); Wed, 25 Feb 2009 11:29:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756486AbZBYQ3F (ORCPT ); Wed, 25 Feb 2009 11:29:05 -0500 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.123]:33981 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753697AbZBYQ3E (ORCPT ); Wed, 25 Feb 2009 11:29:04 -0500 Date: Wed, 25 Feb 2009 11:28:59 -0500 (EST) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Mathieu Desnoyers cc: linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , Thomas Gleixner , Peter Zijlstra , Frederic Weisbecker , Theodore Tso , Arjan van de Ven , Pekka Paalanen , Arnaldo Carvalho de Melo , Jason Baron , Martin Bligh , "Frank Ch. Eigler" , KOSAKI Motohiro , Jens Axboe , Masami Hiramatsu , Steven Rostedt Subject: Re: [PATCH 1/4] tracing: add DEFINE_TRACE_FMT to tracepoint.h In-Reply-To: <20090225161335.GB11295@Krystal> Message-ID: References: <20090225025608.956691460@goodmis.org> <20090225025753.547618424@goodmis.org> <20090225161335.GB11295@Krystal> 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 On Wed, 25 Feb 2009, Mathieu Desnoyers wrote: > * Steven Rostedt (rostedt@goodmis.org) wrote: > > From: Steven Rostedt > > > > This patch creates a DEFINE_TRACE_FMT to map to DECLARE_TRACE. > > This allows for the developers to place format strings and > > args in with their tracepoint declaration. A tracer may now > > override the DEFINE_TRACE_FMT macro and use it to record > > a default format. > > > > Hi Steven, > > How comes does a DEFINE_* maps to a DECLARE_* ? > > Usually, DEFINE_* are meant to be put in .c files. DECLARE_* are in > headers. I don't see how the mapping you propose here can be > semantically correct ? Because it can be either a define or a declare ;-) Gag, I can't win! First Andrew points out that I use DECLARE_TRACE_FMT when it should be a DEFINE. Now I go change it and you state that it should be a DECLARE not a DEFINE! Well, any tracer that remaps it, it should be a DEFINE. Just in the "default" case of trace points, is it used as a DECLARE. Because, it ignores the fmt parameter that would be used in the define. -- Steve