* perf stat --smi-cost not working on hybrid/alder lake
@ 2022-10-09 8:28 Stephan Dollberg
0 siblings, 0 replies; only message in thread
From: Stephan Dollberg @ 2022-10-09 8:28 UTC (permalink / raw)
To: linux-perf-users
Hi,
perf stat --smi-cost does not work on AlderLake/hybrid-arches:
```
$ perf stat --smi-cost -C 1 -- sleep 1
freeze_on_smi is not supported.
```
Caused by FREEZE_ON_SMI_PATH being hardcoded to "devices/cpu/freeze_on_smi"
https://github.com/torvalds/linux/blob/3002b7a31894cfa0e57080f7e0961b5fee788aa3/tools/perf/builtin-stat.c#L98
However, on hybrid the devices subtree looks like:
```
$ ls -h /sys/devices/ | grep cpu_
cpu_atom
cpu_core
```
I tried a hacked build by changing that path to
"devices/cpu_core/freeze_on_smi" but even then didn't get any output
even on the "core" cores.
Happy to help with further debugging.
Cheers,
Stephan
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-09 8:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-09 8:28 perf stat --smi-cost not working on hybrid/alder lake Stephan Dollberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).