From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755335Ab0EUAVb (ORCPT ); Thu, 20 May 2010 20:21:31 -0400 Received: from e3.ny.us.ibm.com ([32.97.182.143]:39914 "EHLO e3.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754443Ab0EUAV3 (ORCPT ); Thu, 20 May 2010 20:21:29 -0400 Message-ID: <4BF5D203.7000007@linux.vnet.ibm.com> Date: Thu, 20 May 2010 17:21:23 -0700 From: Corey Ashford User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Peter Zijlstra CC: Lin Ming , Ingo Molnar , Frederic Weisbecker , Paul Mundt , "eranian@gmail.com" , "Gary.Mohr@Bull.com" , "arjan@linux.intel.com" , "Zhang, Yanmin" , Paul Mackerras , "David S. Miller" , Russell King , Arnaldo Carvalho de Melo , Will Deacon , Maynard Johnson , Carl Love , "greg@kroah.com" , Kay Sievers , lkml Subject: Re: [RFC][PATCH v2 11/11] perf top: demo of how to use the sysfs interface References: <1274233792.3036.90.camel@localhost> <4BF42B6F.6000009@linux.vnet.ibm.com> <1274318249.3603.135.camel@minggr.sh.intel.com> <4BF4915B.10104@linux.vnet.ibm.com> <1274386126.1674.1637.camel@laptop> In-Reply-To: <1274386126.1674.1637.camel@laptop> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/20/2010 1:08 PM, Peter Zijlstra wrote: > On Wed, 2010-05-19 at 18:33 -0700, Corey Ashford wrote: >> >> We also need to take into account event "attributes" - other data that >> is needed to configure a specific event. For example, think about a >> memory controller which has a PMU can count events in a particular >> memory range; we need to be able to supply the memory range somehow, > > That's that perf_event_attr is for. > I think the issue is that what is stuffed into perf_event_attr's fields should be done in a way that userspace tools can figure out via attribute info which is in exported by the kernel via sysfs (or eventfs, etc.) - Corey