From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757529AbZBYBPW (ORCPT ); Tue, 24 Feb 2009 20:15:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752000AbZBYBPH (ORCPT ); Tue, 24 Feb 2009 20:15:07 -0500 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.124]:51154 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752681AbZBYBPF (ORCPT ); Tue, 24 Feb 2009 20:15:05 -0500 Date: Tue, 24 Feb 2009 20:15:01 -0500 (EST) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Mathieu Desnoyers cc: Masami Hiramatsu , Peter Zijlstra , linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , Thomas Gleixner , 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 Subject: Re: [PATCH 0/4][RFC] event tracer In-Reply-To: <20090225010111.GB16396@Krystal> Message-ID: References: <20090224193344.638329210@goodmis.org> <1235504556.4645.2252.camel@laptop> <49A473ED.4010001@redhat.com> <20090225010111.GB16396@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 Tue, 24 Feb 2009, Mathieu Desnoyers wrote: > * Steven Rostedt (rostedt@goodmis.org) wrote: > > > > On Tue, 24 Feb 2009, Masami Hiramatsu wrote: > > > > > > > > #undef TPFMT > > > > #define TPFMT(fmt, args...) \ > > > > "(%s)" fmt "\n", #call, ##args > > > > > > > > and then I could do > > > > > > > > event_printk(fmt); > > > > > > Why don't you do as below? :) > > > event_printk_line("(" #call ")" ##fmtandargs); > > > > Still need to sneak that "\n" in ;-) > > > > Why do you need the \n ? Having all event format strings ending with \0 > should be enough to tell event_printk to generate a \n each time it > encounters a format string \0. Doing so would save 1 byte per format > string. Because currently event_printk uses a generic function that acts pretty much like ftrace_printk. I like having fmt and args separate. This way, we can add more stuff to the end if we ever want to. For now it's a '\n'. We can deal with those extra bytes. -- Steve