From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752909Ab0KDT3J (ORCPT ); Thu, 4 Nov 2010 15:29:09 -0400 Received: from casper.infradead.org ([85.118.1.10]:44211 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752881Ab0KDT3I convert rfc822-to-8bit (ORCPT ); Thu, 4 Nov 2010 15:29:08 -0400 Subject: Re: [DRAFT PATCH 2/3] perf: Implement Nehalem uncore pmu From: Peter Zijlstra To: Stephane Eranian Cc: Lin Ming , Ingo Molnar , Frederic Weisbecker , Arjan van de Ven , "robert.richter@amd.com" , Cyrill Gorcunov , "paulus@samba.org" , Thomas Gleixner , "H. Peter Anvin" , Corey Ashford , lkml In-Reply-To: References: <1288682905.12061.109.camel@minggr.sh.intel.com> <1288712023.2457.25.camel@localhost> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Thu, 04 Nov 2010 20:28:49 +0100 Message-ID: <1288898929.2039.78.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2010-11-02 at 17:59 +0100, Stephane Eranian wrote: > I think using uncore PMU to measure per-thread is pretty much useless. > Maybe it should not even be allowed. There is no way you can correlate > the counts you're getting to a place in your program. Or put differently, > sampling in per-thread mode using uncore is useless. Right, per-task uncore event should not be allowed. I think it as simple as setting pmu::task_ctx_nr = perf_invalid_context.