perf hists: Factor out hists__reset_column_width()
authorNamhyung Kim <[email protected]>
Tue, 20 Sep 2016 05:30:24 +0000 (14:30 +0900)
committerArnaldo Carvalho de Melo <[email protected]>
Tue, 20 Sep 2016 19:13:37 +0000 (16:13 -0300)
commite3b60bc93d81e0542ac433df226b8de8b963533e
treecf0fb6858530dd6f9ca1b3ca2728cb3d369bc2a4
parent5ff3e7a224d40f9dd73625b91377787034a8b35e
perf hists: Factor out hists__reset_column_width()

The stdio and tui has same code to reset hpp format column width.
Factor it out as a new function.

Suggested-and-Acked-by: Jiri Olsa <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/ui/browsers/hists.c
tools/perf/ui/hist.c
tools/perf/ui/stdio/hist.c
tools/perf/util/hist.h