From: Namhyung Kim <namhyung@kernel.org>
To: laksono <laksono@gmail.com>, Kan Liang <kan.liang@linux.intel.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: Intel SPR: perf-record doesn't support topdown events?
Date: Tue, 29 Oct 2024 17:02:27 -0700 [thread overview]
Message-ID: <ZyF3k__jUtRUAcWm@google.com> (raw)
In-Reply-To: <CALwKgup1UhiKMHvEni_3gaWoC0BLu8kkT6R=7R=b-LkBx5_3ZA@mail.gmail.com>
Hello,
Adding Kan to the circle.
On Tue, Oct 22, 2024 at 11:40:25AM -0500, laksono wrote:
> All,
>
> I am interested in using Intel TMA support in Linux perf. I can run
>
> $ perf stat -e '{slots,topdown-be-bound}' ...
>
> on Intel SPR with no problem, but running with perf record doesn't work:
>
> $ perf record -e '{slots,topdown-be-bound}' ...
> Error:
> The sys_perf_event_open() syscall returned with 22 (Invalid argument)
> for event (topdown-be-bound).
>
> I suspect MSR_PERF_METRICS cannot be used in the perf_event sampling
> mode. Could someone (probably from Intel) confirm?
I guess you need the leader sampling with 'S' modifier.
$ perf record -e '{slots,topdown-be-bound}:S' ...
Thanks,
Namhyung
>
> My Linux kernel: 5.15.0-86-generic #96-Ubuntu (just in case this matters).
>
> Regards
>
> Laksono Adhianto
next prev parent reply other threads:[~2024-10-30 0:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-22 16:40 Intel SPR: perf-record doesn't support topdown events? laksono
2024-10-30 0:02 ` Namhyung Kim [this message]
2024-10-30 1:00 ` laksono
2024-10-30 12:57 ` Liang, Kan
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=ZyF3k__jUtRUAcWm@google.com \
--to=namhyung@kernel.org \
--cc=kan.liang@linux.intel.com \
--cc=laksono@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).