linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yuzhong Huang <yuzhongh@usc.edu>
To: linux-perf-users@vger.kernel.org
Subject: Unable to run `perf stat` on Intel hybrid system with e-core (atom) disabled
Date: Sat, 30 Dec 2023 02:25:55 -0800	[thread overview]
Message-ID: <CAMRy72f0kF_8-BoJfb1_qmpgMLcNFmzPhYQaury_XeDnhPPXxA@mail.gmail.com> (raw)

Hi Linux Perf Users,

On my system (intel 12600k), if I disable the e-cores in bios, perf
stat command would fail:
> root@localhost:~# perf stat sleep 1
> Error:
> The sys_perf_event_open() syscall returned with 12 (Cannot allocate memory) for event (cpu_atom/cycles/).
> /bin/dmesg | grep -i perf may provide additional information.

Looks like it's trying to read some counters from the e-core (atom). I
have tried `perf stat --cputype=core  sleep 1`, still doesn't work.

I notice that if I do a system wide `perf stat`, it works as expected.
Other perf tools like `perf record`, `perf top` all work as expected.

I have run `perf list`, which does include all kinds of events from
e-core(atom), even though they have been disabled in the bios.

I wonder if there is a switch to get around this? For example to
override the list of events. Or if it has to be fixed somewhere in the
code, which file should I look at? I am happy to work on a patch.

Yuzhong Huang
University of Southern California

             reply	other threads:[~2023-12-30 10:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-30 10:25 Yuzhong Huang [this message]
2024-01-12 15:18 ` Unable to run `perf stat` on Intel hybrid system with e-core (atom) disabled Arnaldo Carvalho de Melo

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=CAMRy72f0kF_8-BoJfb1_qmpgMLcNFmzPhYQaury_XeDnhPPXxA@mail.gmail.com \
    --to=yuzhongh@usc.edu \
    --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).