From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dietmar Hahn Subject: Re: [PATCH v2 1/2] x86/VPMU: return correct fixed PMC count Date: Wed, 25 Nov 2015 10:13:09 +0100 Message-ID: <1994616.xHA5sAh0S4@amur> References: <1448409192-4914-1-git-send-email-bgregg@netflix.com> <1448409192-4914-2-git-send-email-bgregg@netflix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1448409192-4914-2-git-send-email-bgregg@netflix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: boris.ostrovsky@oracle.com, Brendan Gregg List-Id: xen-devel@lists.xenproject.org Am Dienstag 24 November 2015, 15:53:11 schrieb Brendan Gregg: > Fixes a register typo. > > Signed-off-by: Brendan Gregg > --- > xen/arch/x86/cpu/vpmu_intel.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Dietmar Hahn > > diff --git a/xen/arch/x86/cpu/vpmu_intel.c b/xen/arch/x86/cpu/vpmu_intel.c > index 12f80ae..8d83a1a 100644 > --- a/xen/arch/x86/cpu/vpmu_intel.c > +++ b/xen/arch/x86/cpu/vpmu_intel.c > @@ -166,10 +166,10 @@ static int core2_get_arch_pmc_count(void) > */ > static int core2_get_fixed_pmc_count(void) > { > - u32 eax; > + u32 edx; > > - eax = cpuid_eax(0xa); > - return MASK_EXTR(eax, PMU_FIXED_NR_MASK); > + edx = cpuid_edx(0xa); > + return MASK_EXTR(edx, PMU_FIXED_NR_MASK); > } > > /* edx bits 5-12: Bit width of fixed-function performance counters */ > -- Company details: http://ts.fujitsu.com/imprint.html