Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753612AbbGXU54 (ORCPT ); Fri, 24 Jul 2015 16:57:56 -0400 Received: from mga14.intel.com ([192.55.52.115]:1997 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752217AbbGXU5z (ORCPT ); Fri, 24 Jul 2015 16:57:55 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,540,1432623600"; d="scan'208";a="754107821" From: "Liang, Kan" To: Stephane Eranian CC: Peter Zijlstra , "mingo@redhat.com" , Arnaldo Carvalho de Melo , "ak@linux.intel.com" , LKML Subject: RE: [PATCH 1/1] perf/x86: Add Intel power cstate PMUs support Thread-Topic: [PATCH 1/1] perf/x86: Add Intel power cstate PMUs support Thread-Index: AQHQxkqP3Pe++2jjf02AQx0+fSwp7J3qkLUAgACIR2A= Date: Fri, 24 Jul 2015 20:57:43 +0000 Message-ID: <37D7C6CF3E00A74B8858931C1DB2F077018CC567@SHSMSX103.ccr.corp.intel.com> References: <1437741564-8717-1-git-send-email-kan.liang@intel.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id t6OKw1nQ030995 Content-Length: 2077 Lines: 41 > > + * MSR_PKG_C6_RESIDENCY: Package C6 Residency Counter. > > + * perf code: 0x06 > > + * Available model: NHM,WSM,SNB,IVB,HSW,BDW > > + * Scope: Package (physical package) > > + * MSR_PKG_C7_RESIDENCY: Package C7 Residency Counter. > > + * perf code: 0x07 > > + * Available model: NHM,WSM,SNB,IVB,HSW,BDW > > + * Scope: Package (physical package) > > + * MSR_PKG_C8_RESIDENCY: Package C8 Residency Counter. > > + * perf code: 0x08 > > + * Available model: HSW ULT only > > + * Scope: Package (physical package) > > + * MSR_PKG_C9_RESIDENCY: Package C9 Residency Counter. > > + * perf code: 0x09 > > + * Available model: HSW ULT only > > + * Scope: Package (physical package) > > + * MSR_PKG_C10_RESIDENCY: Package C10 Residency Counter. > > + * perf code: 0x0a > > + * Available model: HSW ULT only > > + * Scope: Package (physical package) > > + * MSR_SLM_PKG_C6_RESIDENCY: Package C6 Residency Counter for > SLM. > > + * perf code: 0x0b > > + * Available model: SLM,AMT > > + * Scope: Package (physical package) > > + * > > + */ > > + > Why would the user (and the tools) have to change the event code to > measure, let's say C6 residency, between SLM (0xb) and and BDW (0x6)? > Are they not measuring the same thing? > Yes, they are measuring the same thing, but with different MSR. I will make their event code consistent and special handle PKG_C6 in event_init in next version. Thanks, Kan ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?