linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephan Dollberg <stephan.dollberg@gmail.com>
To: linux-perf-users@vger.kernel.org
Subject: perf stat --smi-cost not working on hybrid/alder lake
Date: Sun, 9 Oct 2022 09:28:04 +0100	[thread overview]
Message-ID: <CAE4R7x2JMHroRyPNMsy5_wnOnsRE9c+UCsmXRJrODhT3PjVUxg@mail.gmail.com> (raw)

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

                 reply	other threads:[~2022-10-09  8:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAE4R7x2JMHroRyPNMsy5_wnOnsRE9c+UCsmXRJrODhT3PjVUxg@mail.gmail.com \
    --to=stephan.dollberg@gmail.com \
    --cc=linux-perf-users@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).