diff options
author | 2016-09-20 14:30:24 +0900 | |
---|---|---|
committer | 2016-09-20 16:13:37 -0300 | |
commit | e3b60bc93d81e0542ac433df226b8de8b963533e (patch) | |
tree | cf0fb6858530dd6f9ca1b3ca2728cb3d369bc2a4 /tools/perf/util/hist.h | |
parent | perf ui/tui: Reset output width for hierarchy (diff) | |
download | linux-e3b60bc93d81e0542ac433df226b8de8b963533e.tar.gz linux-e3b60bc93d81e0542ac433df226b8de8b963533e.tar.bz2 linux-e3b60bc93d81e0542ac433df226b8de8b963533e.zip |
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 <jolsa@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20160920053025.13989-2-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/hist.h')
-rw-r--r-- | tools/perf/util/hist.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index a002c93fe422..defa957f27df 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h @@ -368,6 +368,7 @@ static inline bool perf_hpp__should_skip(struct perf_hpp_fmt *format, void perf_hpp__reset_width(struct perf_hpp_fmt *fmt, struct hists *hists); void perf_hpp__reset_sort_width(struct perf_hpp_fmt *fmt, struct hists *hists); void perf_hpp__set_user_width(const char *width_list_str); +void hists__reset_column_width(struct hists *hists); typedef u64 (*hpp_field_fn)(struct hist_entry *he); typedef int (*hpp_callback_fn)(struct perf_hpp *hpp, bool front); |