Re: [RFC] perf/x86/intel: Export mem events only if there's PEBs support

From: Andi Kleen
Date: Mon Aug 13 2018 - 14:58:16 EST


On Mon, Aug 13, 2018 at 05:48:20PM +0200, Jiri Olsa wrote:
> hi,
> we had some reports that we show mem* events on KVM servers
> where they are not available, this patch hides them if there's
> no PEBs available
>
> currently on those servers we fail to open mem* events,
> because we can't access LDLAT msr
>
> however that's not so easy/straight forward to check,
> so I thought we could use check on PEBs instead, which
> needs to be there for mem events as well and seems to
> be enough to check
>
> thoughts? thanks,
> jirka

Acked-by: Andi Kleen <ak@xxxxxxxxxxxxxxx>

-Andi