[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1273259412.22438.420.camel@gandalf.stny.rr.com>
Date: Fri, 07 May 2010 15:10:12 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Frederic Weisbecker <fweisbec@...il.com>
Cc: linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...e.hu>,
Andrew Morton <akpm@...ux-foundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
Peter Zijlstra <peterz@...radead.org>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Mathieu Desnoyers <compudj@...stal.dyndns.org>,
Lai Jiangshan <laijs@...fujitsu.com>,
Li Zefan <lizf@...fujitsu.com>,
Masami Hiramatsu <mhiramat@...hat.com>,
Christoph Hellwig <hch@....de>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
Subject: Re: [PATCH 2/9 - v2][RFC] tracing: Let tracepoints have data
passed to tracepoint callbacks
On Fri, 2010-05-07 at 20:06 +0200, Frederic Weisbecker wrote:
> No, what I meant is that you have:
>
> #ifdef CONFIG_TRACEPOINTS
> [...]
> +#define DECLARE_TRACE_NOARGS(name) \
> __DECLARE_TRACE(name, void, , void *__data, __data)
>
> #define DECLARE_TRACE(name, proto, args) \
> __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
> PARAMS(proto, void *__data), \
> PARAMS(args, __data))
> [...]
> #else
> [...]
> +#define DECLARE_TRACE_NOARGS(name) \
> __DECLARE_TRACE(name, void, , void *__data, __data)
>
> #define DECLARE_TRACE(name, proto, args) \
> __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
> PARAMS(proto, void *__data), \
> PARAMS(args, __data)
> [...]
> #endif
>
>
> See? They seem to be the exact same version, so this could be only
> one version outside the ifdef.
> And the CONFIG_TRACEPOINTS on/off case is dealt from __DECLARE_TRACE().
Ah, I see (said the blind man as he slipped and fell on the ice).
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists