Perf-stat tool does not support ipc and ipc_rate monitoring on NVIDIA Grace system

Bug #2063461 reported by Brad Figg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-nvidia-6.5 (Ubuntu)
New
Undecided
Unassigned

Bug Description

PROBLEM:

While trying to monitor the ipc group for using perf-stat tool, despite it being supported, I get the following errors:
$ sudo perf list | grep ipc
  ipc
  ipc_rate
  retired_ipc
  spec_ipc

$ sudo -S perf stat -a -M ipc -- sudo -S stress-ng --cpu 0 -t 10s
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (instructions).
/bin/dmesg | grep -i perf may provide additional information.
$ sudo -S perf stat -a -M ipc_rate -- sudo -S stress-ng --cpu 0 -t 10s
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (instructions).
/bin/dmesg | grep -i perf may provide additional information.

However, I can get the groups retired_ipc and spec_ipc to work:
$ sudo -S perf stat -a -M retired_ipc -- sudo -S stress-ng --cpu 0 -t 10s
Value 0 contains non-numeric: ' '

 Performance counter stats for 'system wide':

        96,818,964 INST_RETIRED # 0.58 retired_ipc
       166,601,455 CPU_CYCLES

       0.013516186 seconds time elapsed

$ sudo -S perf stat -a -M spec_ipc -- sudo -S stress-ng --cpu 0 -t 10s
Value 0 contains non-numeric: ' '

 Performance counter stats for 'system wide':

        91,053,297 INST_SPEC # 0.58 spec_ipc
       156,558,810 CPU_CYCLES

       0.009877355 seconds time elapsed

SOLUTION:
Please accept the pull request which cherry-picks the following two upstream commits:

d43f5491210197196458c1454f2be0eb66d3e4d1 perf vendor events arm64: Update stall_slot workaround
 for N2 r0p3
4473949074c35072f598bd525ae51d5455f05745 perf vendor events arm64: Update N2 and V2 metrics and
 events using Arm telemetry repo

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.