Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757182Ab2EGOsj (ORCPT ); Mon, 7 May 2012 10:48:39 -0400 Received: from am1ehsobe001.messaging.microsoft.com ([213.199.154.204]:57644 "EHLO am1outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757106Ab2EGOsb (ORCPT ); Mon, 7 May 2012 10:48:31 -0400 X-SpamScore: -3 X-BigFish: VPS-3(zz98dKzz1202hzzz2dh668h839h944hd25h) X-Forefront-Antispam-Report: CIP:163.181.249.108;KIP:(null);UIP:(null);IPV:NLI;H:ausb3twp01.amd.com;RD:none;EFVD:NLI X-WSS-ID: 0M3NQGK-01-0LO-02 X-M-MSG: Date: Mon, 7 May 2012 16:47:56 +0200 From: Robert Richter To: Peter Zijlstra CC: Arnaldo Carvalho de Melo , Ingo Molnar , Stephane Eranian , Jiri Olsa , LKML Subject: Re: [PATCH 4/7] perf/x86-ibs: Add support for IBS pseudo events Message-ID: <20120507144756.GG18810@erda.amd.com> References: <1335983192-23731-1-git-send-email-robert.richter@amd.com> <1335983192-23731-5-git-send-email-robert.richter@amd.com> <1336388454.27020.2.camel@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1336388454.27020.2.camel@laptop> User-Agent: Mutt/1.5.21 (2010-09-15) X-OriginatorOrg: amd.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 876 Lines: 25 On 07.05.12 13:00:54, Peter Zijlstra wrote: > Who again wasn't decoding anything in perf_event_attr:config* ? attr:config is one of the ibs control msrs comparable with perfctr's evntsel msr: MSRC001_1030 IBS Fetch Control Register (IbsFetchCtl) MSRC001_1033 IBS Execution Control Register (IbsOpCtl) There are some options (randomisation, cycle/micro-op counting) but usually it is null since the period is encoded in attr:period. But ibs could be setup by an application using attr:config only which then passes the value directly to the ctl msr. -Robert -- Advanced Micro Devices, Inc. Operating System Research Center -- 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/