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

From: Andi Kleen
Date: Wed Dec 16 2015 - 11:26:46 EST


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@xxxxxxxxxxxxxx> wrote:
> >
> > From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
> >
> > 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/