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

From: Andi Kleen
Date: Mon Jan 18 2016 - 17:28:39 EST

> So one obvious problem with this is that a concurrent hotplug operation
> can toggle ht_on resulting in bogus measurements.
> I'm not sure there's anything we can do about that, other than WARN in
> the tool if it finds inconsistent results; does it?

Right. Supporting a good interface for user programs to be informed
of CPU hotplug would be useful for a lot of things, but currently
it doesn't exist and it's definitely outside the scope of this
patchkit. If such an interface existed perf stat could use it
to reconfigure itself.

It's hard to do a good sanity check unfortunately.


ak@xxxxxxxxxxxxxxx -- Speaking for myself only.