linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Intel SPR: perf-record doesn't support topdown events?
@ 2024-10-22 16:40 laksono
  2024-10-30  0:02 ` Namhyung Kim
  0 siblings, 1 reply; 4+ messages in thread
From: laksono @ 2024-10-22 16:40 UTC (permalink / raw)
  To: linux-perf-users

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?

My Linux kernel: 5.15.0-86-generic #96-Ubuntu (just in case this matters).

Regards

Laksono Adhianto

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Intel SPR: perf-record doesn't support topdown events?
  2024-10-22 16:40 Intel SPR: perf-record doesn't support topdown events? laksono
@ 2024-10-30  0:02 ` Namhyung Kim
  2024-10-30  1:00   ` laksono
  0 siblings, 1 reply; 4+ messages in thread
From: Namhyung Kim @ 2024-10-30  0:02 UTC (permalink / raw)
  To: laksono, Kan Liang; +Cc: linux-perf-users

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Intel SPR: perf-record doesn't support topdown events?
  2024-10-30  0:02 ` Namhyung Kim
@ 2024-10-30  1:00   ` laksono
  2024-10-30 12:57     ` Liang, Kan
  0 siblings, 1 reply; 4+ messages in thread
From: laksono @ 2024-10-30  1:00 UTC (permalink / raw)
  To: Namhyung Kim; +Cc: Kan Liang, linux-perf-users

Hi Namhyung

On Tue, Oct 29, 2024 at 7:02 PM Namhyung Kim <namhyung@kernel.org> wrote:
>
> I guess you need the leader sampling with 'S' modifier.
>
>   $ perf record -e '{slots,topdown-be-bound}:S' ...
>
Unfortunately, it doesn't work for me:

$ perf record -e '{slots,topdown-be-bound}:S'  ...
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument)
for event (topdown-be-bound).
/bin/dmesg | grep -i perf may provide additional information.

Regards

Laksono

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Intel SPR: perf-record doesn't support topdown events?
  2024-10-30  1:00   ` laksono
@ 2024-10-30 12:57     ` Liang, Kan
  0 siblings, 0 replies; 4+ messages in thread
From: Liang, Kan @ 2024-10-30 12:57 UTC (permalink / raw)
  To: laksono, Namhyung Kim; +Cc: linux-perf-users



On 2024-10-29 9:00 p.m., laksono wrote:
> Hi Namhyung
> 
> On Tue, Oct 29, 2024 at 7:02 PM Namhyung Kim <namhyung@kernel.org> wrote:
>>
>> I guess you need the leader sampling with 'S' modifier.
>>
>>   $ perf record -e '{slots,topdown-be-bound}:S' ...
>>
> Unfortunately, it doesn't work for me:

The issue should have been fixed by the below patch set.
https://lore.kernel.org/lkml/20240913084712.13861-1-dapeng1.mi@linux.intel.com/

You may have to use the latest perf-tools-next branch.

Thanks,
Kan
> 
> $ perf record -e '{slots,topdown-be-bound}:S'  ...
> Error:
> The sys_perf_event_open() syscall returned with 22 (Invalid argument)
> for event (topdown-be-bound).
> /bin/dmesg | grep -i perf may provide additional information.
> 
> Regards
> 
> Laksono
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-30 12:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-22 16:40 Intel SPR: perf-record doesn't support topdown events? laksono
2024-10-30  0:02 ` Namhyung Kim
2024-10-30  1:00   ` laksono
2024-10-30 12:57     ` Liang, Kan

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).