• Zhengjun Xing's avatar
    perf stat: Capitalize topdown metrics' names · 48648548
    Zhengjun Xing authored
    Capitalize topdown metrics' names to follow the intel SDM.
    
    Before:
    
     # ./perf stat -a  sleep 1
    
     Performance counter stats for 'system wide':
    
            228,094.05 msec cpu-clock                        #  225.026 CPUs utilized
                   842      context-switches                 #    3.691 /sec
                   224      cpu-migrations                   #    0.982 /sec
                    70      page-faults                      #    0.307 /sec
            23,164,105      cycles                           #    0.000 GHz
            29,403,446      instructions                     #    1.27  insn per cycle
             5,268,185      branches                         #   23.097 K/sec
                33,239      branch-misses                    #    0.63% of all branches
           136,248,990      slots                            #  597.337 K/sec
            32,976,450      topdown-retiring                 #     24.2% retiring
             4,651,918      topdown-bad-spec                 #      3.4% bad speculation
            26,148,695      topdown-fe-bound                 #     19.2% frontend bound
            72,515,776      topdown-be-bound                 #     53.2% backend bound
             6,008,540      topdown-heavy-ops                #      4.4% heavy operations       #     19.8% light operations
             3,934,049      topdown-br-mispredict            #      2.9% branch mispredict      #      0.5% machine clears
            16,655,439      topdown-fetch-lat                #     12.2% fetch latency          #      7.0% fetch bandwidth
            41,635,972      topdown-mem-bound                #     30.5% memory bound           #     22.7% Core bound
    
           1.013634593 seconds time elapsed
    
    After:
    
     # ./perf stat -a  sleep 1
    
     Performance counter stats for 'system wide':
    
            228,081.94 msec cpu-clock                        #  225.003 CPUs utilized
                   824      context-switches                 #    3.613 /sec
                   224      cpu-migrations                   #    0.982 /sec
                    67      page-faults                      #    0.294 /sec
            22,647,423      cycles                           #    0.000 GHz
            28,870,551      instructions                     #    1.27  insn per cycle
             5,167,099      branches                         #   22.655 K/sec
                32,383      branch-misses                    #    0.63% of all branches
           133,411,074      slots                            #  584.926 K/sec
            32,352,607      topdown-retiring                 #     24.3% Retiring
             4,456,977      topdown-bad-spec                 #      3.3% Bad Speculation
            25,626,487      topdown-fe-bound                 #     19.2% Frontend Bound
            70,955,316      topdown-be-bound                 #     53.2% Backend Bound
             5,834,844      topdown-heavy-ops                #      4.4% Heavy Operations       #     19.9% Light Operations
             3,738,781      topdown-br-mispredict            #      2.8% Branch Mispredict      #      0.5% Machine Clears
            16,286,803      topdown-fetch-lat                #     12.2% Fetch Latency          #      7.0% Fetch Bandwidth
            40,802,069      topdown-mem-bound                #     30.6% Memory Bound           #     22.6% Core Bound
    
           1.013683125 seconds time elapsed
    Reviewed-by: default avatarKan Liang <kan.liang@linux.intel.com>
    Signed-off-by: default avatarXing Zhengjun <zhengjun.xing@linux.intel.com>
    Acked-by: default avatarIan Rogers <irogers@google.com>
    Cc: Alexander Shishkin <alexander.shishkin@intel.com>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Link: https://lore.kernel.org/r/20220825015458.3252239-1-zhengjun.xing@linux.intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    48648548
stat-shadow.c 39.2 KB