From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756755Ab0EJLEz (ORCPT ); Mon, 10 May 2010 07:04:55 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:51743 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756727Ab0EJLEx convert rfc822-to-8bit (ORCPT ); Mon, 10 May 2010 07:04:53 -0400 Subject: Re: [RFC][PATCH 3/9] perf: export registerred pmus via sysfs From: Peter Zijlstra To: Lin Ming Cc: Paul Mundt , Ingo Molnar , Frederic Weisbecker , "eranian@gmail.com" , "Gary.Mohr@Bull.com" , Corey Ashford , "arjan@linux.intel.com" , "Zhang, Yanmin" , Paul Mackerras , "David S. Miller" , Russell King , lkml In-Reply-To: <1273489084.15998.99.camel@minggr.sh.intel.com> References: <1273483623.15998.57.camel@minggr.sh.intel.com> <1273484401.5605.3333.camel@twins> <1273486313.15998.76.camel@minggr.sh.intel.com> <1273486708.5605.3342.camel@twins> <1273487195.15998.85.camel@minggr.sh.intel.com> <20100510103546.GB14278@linux-sh.org> <1273489084.15998.99.camel@minggr.sh.intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Mon, 10 May 2010 13:04:34 +0200 Message-ID: <1273489474.5605.3355.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2010-05-10 at 18:58 +0800, Lin Ming wrote: > Take Nehalem core and uncore pmu as an example, > > core pmu sits under /sys/devices/system/cpu/cpuN/pmu_id with ID 0, > > But uncore pmu is shared by cpus within package, where should it sit > under? I already gave you the answer to that: /sys/devices/system/cpu/cpuN/nodeN/ the uncore pmu is the memory controller (aka node) pmu.