[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v2 1/2] x86/VPMU: return correct fixed PMC count


  • To: xen-devel@xxxxxxxxxxxxx
  • From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>
  • Date: Wed, 25 Nov 2015 10:13:09 +0100
  • Cc: boris.ostrovsky@xxxxxxxxxx, Brendan Gregg <bgregg@xxxxxxxxxxx>
  • Delivery-date: Wed, 25 Nov 2015 09:13:25 +0000
  • Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:Received:Received:Received:From:To:Cc: Subject:Date:Message-ID:User-Agent:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding:Content-Type; b=AMr+HIW9HWXF/KKcN1iQjeSTATYvlPXUAzIJEZj3bnn4OrgTMjyPezjI YBKRZTZRzOp4WgYtWo8DDegYUCG0PiSJInowFUqpEVI1KrXsh0kd18ef4 LMkadowCSNTLaocKIWUZwEjFq4K5Bv8F8GYoUNXvbZF2QYslOOeHv6khu i0O9/HKJyBSvfK+uhGX2MrdAMB2wRGF62UpYOjR89FSH8ySfHK4CTSUuu 0dDkSGQk/rxv6+ZKhFx1uJr8ARdFo;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

Am Dienstag 24 November 2015, 15:53:11 schrieb Brendan Gregg:
> Fixes a register typo.
> 
> Signed-off-by: Brendan Gregg <bgregg@xxxxxxxxxxx>
> ---
>  xen/arch/x86/cpu/vpmu_intel.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Reviewed-by: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>

> 
> 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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.