perf hists: Fix width computation for srcline sort entry
authorJiri Olsa <[email protected]>
Mon, 19 Sep 2016 13:10:10 +0000 (15:10 +0200)
committerArnaldo Carvalho de Melo <[email protected]>
Tue, 20 Sep 2016 15:28:28 +0000 (12:28 -0300)
commitf666ac0dab5afaf6ebed2c361251581bfccc4003
treeeffa76e766bbf60b8ee3128ffe75f2de63bf1853
parentf82b77462b8680b84e8cce955b05a6629cb44b36
perf hists: Fix width computation for srcline sort entry

Adding header size to width computation for srcline sort entry,
because it's possible to get empty data with ':0' which set width
of 2 which is lower than width needed to display column header.

Signed-off-by: Jiri Olsa <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Don Zickus <[email protected]>
Cc: Joe Mario <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
[ Added declaration to sort.h ]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/hist.c
tools/perf/util/sort.h