Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754846AbYLEGKw (ORCPT ); Fri, 5 Dec 2008 01:10:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751916AbYLEGKk (ORCPT ); Fri, 5 Dec 2008 01:10:40 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:45798 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751303AbYLEGKj (ORCPT ); Fri, 5 Dec 2008 01:10:39 -0500 Date: Fri, 5 Dec 2008 07:10:12 +0100 From: Ingo Molnar To: David Miller Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, akpm@linux-foundation.org, eranian@googlemail.com, dada1@cosmosbay.com, robert.richter@amd.com, arjan@infradead.org, hpa@zytor.com, a.p.zijlstra@chello.nl, rostedt@goodmis.org, paulus@samba.org Subject: Re: [patch 0/3] [Announcement] Performance Counters for Linux Message-ID: <20081205061012.GA12785@elte.hu> References: <20081204225345.654705757@linutronix.de> <20081204.171233.201039452.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081204.171233.201039452.davem@davemloft.net> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 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: 1862 Lines: 46 * David Miller wrote: > From: Thomas Gleixner > Date: Thu, 04 Dec 2008 23:44:39 -0000 > > > - No interaction with ptrace: any task (with sufficient permissions) can > > monitor other tasks, without having to stop that task. > > This isn't going to work. > > If you look at the things the perfmon libraries do, you do need to stop > the task. > > Consider counter virtualization as the most direct example. [...] Note that counter virtualization is not offered in the perfmon3 patchset that has been posted to lkml. (It is part of the much larger 'full' perfmon patchset which has not been submitted for integration) Nevertheless we will offer counter virtualization in -v2 of our patchset and we mentioned it in the TODO list: > > - Round-robin scheduling of counters, when there's more task > > counters than hw counters available. The 'target' task does not have to be stopped to offer counter virtualization (counter overcommit or counter scheduling) - or to offer any of the other performance counter features. Please let us know why it needs the task to be stopped - we asked about that on lkml in the perfmon thread and no technical answer was given, and couldnt find any such technical reason while implementing it ourselves. Relying on ptrace machinery can be considered one of the bigger design mistakes of the permon3 patchset. We pointed that out in review, and now we demonstrate it via this patchset that it can be done much cleaner and much simpler. (Please stay tuned for -v2 if you want to see the proof of the pudding.) 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/