From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757256Ab0KPWsN (ORCPT ); Tue, 16 Nov 2010 17:48:13 -0500 Received: from mga11.intel.com ([192.55.52.93]:50311 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756610Ab0KPWsM (ORCPT ); Tue, 16 Nov 2010 17:48:12 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.59,207,1288594800"; d="scan'208";a="627479626" Message-ID: <4CE30A2C.9010308@linux.intel.com> Date: Tue, 16 Nov 2010 14:48:12 -0800 From: Darren Hart User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: Peter Zijlstra CC: Ingo Molnar , Thomas Gleixner , LKML , Linus Torvalds , Andrew Morton , Steven Rostedt , Arjan van de Ven , Arnaldo Carvalho de Melo , Frederic Weisbecker , Masami Hiramatsu , Tom Zanussi , Mathieu Desnoyers , Li Zefan , Jason Baron , "David S. Miller" , Christoph Hellwig , Pekka Enberg , Lai Jiangshan , Eric Dumazet Subject: Re: [ANNOUNCE] New utility: 'trace' References: <4CE2F747.4060406@linux.intel.com> <20101116215940.GA13912@elte.hu> <1289945023.2109.672.camel@laptop> <4CE30108.7010207@linux.intel.com> In-Reply-To: <4CE30108.7010207@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/16/2010 02:09 PM, Darren Hart wrote: > On 11/16/2010 02:03 PM, Peter Zijlstra wrote: >> On Tue, 2010-11-16 at 22:59 +0100, Ingo Molnar wrote: >>> >>> >>> Would you be interested in helping out with (and testing) such a more >>> generic >>> approach? >> >> how about having perf-record open a named pipe and rewriting everything >> that comes in through that as an event and storing it in the buffer? > > When I'm tracing an app or test-case, I want to be able to quickly add > and change strings. I like the trace_printk sort of access as it avoids > having to do a bunch of string formatting (sprintf()) calls in the test > app. Sorry - fprintf would work for Peter's suggestion. I had the PR_SET_NAME with a short string or another call with jsut a plain C string - those would require the user doing the string formatting first. -- Darren Hart Yocto Linux Kernel