diff options
author | Steven Rostedt (Red Hat) <[email protected]> | 2015-07-16 21:58:52 -0400 |
---|---|---|
committer | Steven Rostedt <[email protected]> | 2015-07-20 22:30:52 -0400 |
commit | 82c355e81afbf16bc1ab379899a79eb66e2b7504 (patch) | |
tree | dbee4e29dbf6eee3ee87f1e0feec4181158d1ede /tools/perf/scripts/python/stackcollapse.py | |
parent | 8e436ca042d904533a1e14fdc85f0facdfca752f (diff) |
ftrace: Fix function_graph duration spacing with 7-digits
Jungseok Lee noticed the following:
Currently, row's width of 7-digit duration numbers not aligned with
other cases like the following example.
3) $ 3999884 us | }
3) | finish_task_switch() {
3) 0.365 us | _raw_spin_unlock_irq();
3) 3.333 us | }
3) $ 3999976 us | }
3) $ 3999979 us | } /* schedule */
As adding a single white space in case of 7-digit numbers, the format
could be unified easily as follows.
3) $ 2237472 us | }
3) | finish_task_switch() {
3) 0.364 us | _raw_spin_unlock_irq();
3) 3.125 us | }
3) $ 2237556 us | }
3) $ 2237559 us | } /* schedule */
Instead of making a special case for 7-digit numbers, the logic
of the len and the space loop is slightly modified to make the
two cases have the same format.
Link: http://lkml.kernel.org/r/[email protected]
Reported-by: Jungseok Lee <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions