Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751179Ab3HSOjf (ORCPT ); Mon, 19 Aug 2013 10:39:35 -0400 Received: from merlin.infradead.org ([205.233.59.134]:33430 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750829Ab3HSOjf (ORCPT ); Mon, 19 Aug 2013 10:39:35 -0400 Date: Mon, 19 Aug 2013 16:39:24 +0200 From: Peter Zijlstra To: Stephane Eranian Cc: "Yan, Zheng" , LKML , "mingo@elte.hu" , "ak@linux.intel.com" Subject: Re: [PATCH 1/2] perf, x86: use INTEL_UEVENT_EXTRA_REG to define MSR_OFFCORE_RSP_X Message-ID: <20130819143924.GG24092@twins.programming.kicks-ass.net> References: <1374138144-17278-1-git-send-email-zheng.z.yan@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1000 Lines: 22 On Mon, Aug 19, 2013 at 04:24:56PM +0200, Stephane Eranian wrote: > On Thu, Jul 18, 2013 at 11:02 AM, Yan, Zheng wrote: > > From: "Yan, Zheng" > > > > Silvermont (22nm Atom) has two offcore response configuration MSRs, > > unlike other Intel CPU, its event code for MSR_OFFCORE_RSP_1 is 0x02b7. > > To avoid complicating intel_fixup_er(), use INTEL_UEVENT_EXTRA_REG to > > define MSR_OFFCORE_RSP_X. So intel_fixup_er() can find the event code > > for OFFCORE_RSP_N by x86_pmu.extra_regs[N].event. > > > > Signed-off-by: Yan, Zheng > > Works for me on IVB and NHM. > > Reviewed-by: Stephane Eranian Thanks guys, and sorry for getting them lost in the inbox :/ -- 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/