lkml.org 
[lkml]   [2016]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH v2] perf: honouring the cpuid for number of fixed counters in hypervisors
On Fri, Oct 21, 2016 at 01:18:59AM -0700, Imre Palik wrote:
> From: Imre Palik <imrep@amazon.de>
>
> perf doesn't seem to honour the number of fixed counters specified by cpuid
> leaf 0xa. It always assume that Intel CPUs have at least 3 fixed counters.
>
> So if some of the fixed counters are masked out by the hypervisor, it still
> tries to check/set them.
>
> This patch makes perf behave nicer when the kernel is running under a
> hypervisor that doesn't expose all the counters.
>
> This patch contains some ideas from Matt Wilson.

Patch looks good to me.

Reviewed-by: Andi Kleen <ak@linux.intel.com>

-Andi

\
 
 \ /
  Last update: 2016-10-24 18:51    [W:0.071 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site