From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758043AbZBYBqY (ORCPT ); Tue, 24 Feb 2009 20:46:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752296AbZBYBqO (ORCPT ); Tue, 24 Feb 2009 20:46:14 -0500 Received: from tomts10-srv.bellnexxia.net ([209.226.175.54]:65471 "EHLO tomts10-srv.bellnexxia.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752098AbZBYBqN (ORCPT ); Tue, 24 Feb 2009 20:46:13 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhQFADMtpElMQWXi/2dsb2JhbACBbtYDhBEG Date: Tue, 24 Feb 2009 20:46:09 -0500 From: Mathieu Desnoyers To: Steven Rostedt 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 Message-ID: <20090225014609.GA18250@Krystal> References: <20090224193344.638329210@goodmis.org> <1235504556.4645.2252.camel@laptop> <49A473ED.4010001@redhat.com> <20090225010111.GB16396@Krystal> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: X-Editor: vi X-Info: http://krystal.dyndns.org:8080 X-Operating-System: Linux/2.6.21.3-grsec (i686) X-Uptime: 20:45:45 up 3 days, 17:19, 2 users, load average: 0.48, 0.56, 0.43 User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Steven Rostedt (rostedt@goodmis.org) wrote: > > 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. > Ah ok, given you need it as a separator too, that makes sense. Mathieu > -- Steve > -- Mathieu Desnoyers OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68