• Namhyung Kim's avatar
    perf report: Fix --stdio output alignment when --showcpuutilization used · 0ed35abc
    Namhyung Kim authored
    Current perf report output is broken if --showcpuutilization is used.
    Combination with -n and/or --show-total-period make things worse.
    This patch fixes it as follows:
    
    before:
        48.25%    48.25%     0.00%    sleep  [kernel.kallsyms]  [k] trace_hardirqs_off
        34.99%    34.99%     0.00%    sleep  [kernel.kallsyms]  [k] __find_get_block_slow
        15.99%    15.99%     0.00%    sleep  [kernel.kallsyms]  [k] lock_release_holdtime
         0.77%     0.77%     0.00%    sleep  [kernel.kallsyms]  [k] native_write_msr_safe
    
    after:
        48.25%    48.25%     0.00%    sleep  [kernel.kallsyms]  [k] trace_hardirqs_off
        34.99%    34.99%     0.00%    sleep  [kernel.kallsyms]  [k] __find_get_block_slow
        15.99%    15.99%     0.00%    sleep  [kernel.kallsyms]  [k] lock_release_holdtime
         0.77%     0.77%     0.00%    sleep  [kernel.kallsyms]  [k] native_write_msr_safe
    
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Link: http://lkml.kernel.org/r/1325957132-10600-8-git-send-email-namhyung@gmail.comSigned-off-by: default avatarNamhyung Kim <namhyung@gmail.com>
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    0ed35abc
hist.c 28.1 KB