• N
    perf stat: Fix indentation of stalled backend cycle · b0404be8
    Namhyung Kim 提交于
    The commit 140aeadc ("perf stat: Abstract stat metrics printing")
    changed how shadow metrics are printed, but it missed to update the
    width of the stalled backend cycles event to 7.2% like others.  This
    resulted in misaligned output like below:
    
      Performance counter stats for 'pwd':
    
              0.638313      task-clock (msec)         #    0.567 CPUs utilized
                     0      context-switches          #    0.000 K/sec
                     0      cpu-migrations            #    0.000 K/sec
                    54      page-faults               #    0.085 M/sec
               885,600      cycles                    #    1.387 GHz
               558,438      stalled-cycles-frontend   #   63.06% frontend cycles idle
               431,355      stalled-cycles-backend    #  48.71% backend cycles idle
               674,956      instructions              #    0.76  insn per cycle
                                                      #    0.83  stalled cycles per insn
               130,380      branches                  #  204.257 M/sec
         <not counted>      branch-misses
    
           0.001125426 seconds time elapsed
    Signed-off-by: NNamhyung Kim <namhyung@kernel.org>
    Cc: Andi Kleen <andi@firstfloor.org>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Fixes: 140aeadc ("perf stat: Abstract stat metrics printing")
    Link: http://lkml.kernel.org/r/1463119263-5569-1-git-send-email-namhyung@kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
    b0404be8
stat-shadow.c 15.0 KB