From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756759AbZBYBB3 (ORCPT ); Tue, 24 Feb 2009 20:01:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751467AbZBYBBU (ORCPT ); Tue, 24 Feb 2009 20:01:20 -0500 Received: from tomts13.bellnexxia.net ([209.226.175.34]:51312 "EHLO tomts13-srv.bellnexxia.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751274AbZBYBBU (ORCPT ); Tue, 24 Feb 2009 20:01:20 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhQFAHclpElMQWXi/2dsb2JhbACBb9YRhBEG Date: Tue, 24 Feb 2009 20:01:11 -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: <20090225010111.GB16396@Krystal> References: <20090224193344.638329210@goodmis.org> <1235504556.4645.2252.camel@laptop> <49A473ED.4010001@redhat.com> 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: 19:59:51 up 3 days, 16:33, 3 users, load average: 0.41, 0.40, 0.28 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, 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. Mathieu > > > > Anyway, your proposal is good for me, because it will recover > > an information which tracepoint has lost. > > Thanks, > > -- Steve > -- Mathieu Desnoyers OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68