Re: [PATCH 08/10] x86, perf: Support sysfs files depending on SMT status

Andi Kleen
2015-12-16T16:26:43Z

On Wed, Dec 16, 2015 at 04:48:52AM -0800, Stephane Eranian wrote:
> Andi,
>
> On Tue, Dec 15, 2015 at 4:54 PM, Andi Kleen <andi@firstfloor.org> wrote:
> >
> > From: Andi Kleen <ak@linux.intel.com>
> >
> > Add a way to show different sysfs events attributes depending on
> > HyperThreading is on or off. This is difficult to determine
> > early at boot, so we just do it dynamically when the sysfs
> > attribute is read.
> >
> The only attribute I can think of is the any thread bit.
> But I do not see this in this patch. Is this somewhere else?

Yes the "Intel Core" patch uses the Any bit when SMT is on.
We need different events, formulas and factors for SMT.
This patch just adds a the infrastructure to support this.

-Andi