Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932994Ab0KPWJV (ORCPT ); Tue, 16 Nov 2010 17:09:21 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:41524 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932946Ab0KPWJS (ORCPT ); Tue, 16 Nov 2010 17:09:18 -0500 Date: Tue, 16 Nov 2010 23:08:51 +0100 From: Ingo Molnar To: Peter Zijlstra Cc: Darren Hart , 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' Message-ID: <20101116220851.GA15052@elte.hu> References: <4CE2F747.4060406@linux.intel.com> <20101116215940.GA13912@elte.hu> <1289945023.2109.672.camel@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1289945023.2109.672.camel@laptop> User-Agent: Mutt/1.5.20 (2009-08-17) X-ELTE-SpamScore: -2.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-2.0 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.5 -2.0 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 992 Lines: 28 * 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? Yeah, that would work too in most cases - except if there's no VFS connection between tracer and tracee. (as it might be in the case of say chroot environments, etc.) I think it's better to have kernel solutions that dont modify the VFS beyond the trace.data session info. A task could thus generate a user-space event without having to negotiate with the tracer. Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/