Public bug reported:

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

** Affects: linux-nvidia-6.5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2063461

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-nvidia-6.5/+bug/2063461/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to