Public bug reported:

On one of my PCs perf stat stopped working. On another the -d switch doesn't 
make much difference.
For Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz (cpuinfo) 'perf stat ls', 'perf 
stat -d ls', 'perf stat -d -d ls', 'perf stat -d -d -d ls' print the same error:
  Error:
  No supported events found.
  ??
However for 'perf stat -e cycles ls' the output is
  Performance couter stats for 'ls':
       6,557,256      cycles

    0.002429424 seconds time elapsed

    0.002426000 seconds user
    0.000000000 seconds sys

For perf -d -d -d -p it used to give (kernel 6.19, 6.17):
  Performance counter stats for process id '21020':

     89,013,725,950      task-clock                       #    1.019 CPUs 
utilized             
            164,370      context-switches                 #    1.847 K/sec      
               
                964      cpu-migrations                   #   10.830 /sec       
               
                132      page-faults                      #    1.483 /sec       
               
    702,190,440,392      instructions                     #    2.00  insn per 
cycle              (38.50%)
    351,059,449,841      cycles                           #    3.944 GHz        
                 (38.52%)
    127,592,277,452      branches                         #    1.433 G/sec      
                 (38.50%)
      1,276,835,496      branch-misses                    #    1.00% of all 
branches             (38.51%)
    196,325,279,137      L1-dcache-loads                  #    2.206 G/sec      
                 (38.48%)
     15,842,212,125      L1-dcache-load-misses            #    8.07% of all 
L1-dcache accesses   (30.76%)
      5,213,263,291      LLC-loads                        #   58.567 M/sec      
                 (30.77%)
         90,090,352      LLC-load-misses                  #    1.73% of all 
LL-cache accesses    (30.72%)
      1,677,044,351      L1-icache-load-misses                                  
                 (30.73%)
    196,328,420,757      dTLB-loads                       #    2.206 G/sec      
                 (30.73%)
        272,990,900      dTLB-load-misses                 #    0.14% of all 
dTLB cache accesses  (30.73%)
          4,901,254      iTLB-loads                       #   55.062 K/sec      
                 (30.76%)
         24,079,359      iTLB-load-misses                 #  491.29% of all 
iTLB cache accesses  (30.80%)

       87.358273505 seconds time elapsed

Running perf stat -v ls prints:
  Using CPUID GenuineIntel-6-A5-3
  Control descriptor not initialized
  Error:
  No supported events found.
  ??

On another PC (11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz = CPUID 
GenuineIntel-6-8C-1) no matter now many -d I use (0 to 3) I always get:
 Performance counter stats for 'ls':

                 1      context-switches                 #    271,3 cs/sec  
cs_per_second     
                 0      cpu-migrations                   #      0,0 
migrations/sec  migrations_per_second
               488      page-faults                      # 132406,5 faults/sec  
page_faults_per_second
              3,69 msec task-clock                       #      0,3 CPUs  
CPUs_utilized       
            25 455      branch-misses                    #      1,7 %  
branch_miss_rate         (72,81%)
         1 371 012      branches                         #    372,0 M/sec  
branch_frequency     (72,95%)
         5 309 952      cpu-cycles                       #      1,4 GHz  
cycles_frequency       (60,81%)
         6 947 321      instructions                     #      1,3 
instructions  insn_per_cycle
                        TopdownL1                        #     24,2 %  
tma_backend_bound      
                                                         #     10,4 %  
tma_bad_speculation    
                                                         #     35,6 %  
tma_frontend_bound       (93,43%)
                                                         #     29,8 %  
tma_retiring             (93,43%)

       0,005194625 seconds time elapsed

       0,000000000 seconds user
       0,005173000 seconds sys

> perf -v 
perf version 7.0.0-rc4

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "Version log"
   
https://bugs.launchpad.net/bugs/2145818/+attachment/5955311/+files/version.log

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

Title:
  perf stat does not work - regression

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to