diff options
author | Namhyung Kim <namhyung@kernel.org> | 2014-07-31 01:47:38 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-08-12 11:03:06 -0400 |
commit | 5b5916696051b88e63f3726cc3db44bf9561bad9 (patch) | |
tree | 432d11af8cf78cf56bbda7f8ffa33085fc1101e1 /tools/perf/ui/stdio | |
parent | e0d66c74b09f5103eef441a98b68056c4dae4cac (diff) |
perf report: Honor column width setting
Set column width and do not change it if user gives -w/--column-widths
option. It'll truncate longer symbols than the width if exists.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1406785662-5534-5-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/stdio')
-rw-r--r-- | tools/perf/ui/stdio/hist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/ui/stdio/hist.c b/tools/perf/ui/stdio/hist.c index 40af0acb4fe9..15b451acbde6 100644 --- a/tools/perf/ui/stdio/hist.c +++ b/tools/perf/ui/stdio/hist.c | |||
@@ -395,10 +395,12 @@ size_t hists__fprintf(struct hists *hists, bool show_header, int max_rows, | |||
395 | 395 | ||
396 | init_rem_hits(); | 396 | init_rem_hits(); |
397 | 397 | ||
398 | |||
399 | perf_hpp__for_each_format(fmt) | 398 | perf_hpp__for_each_format(fmt) |
400 | perf_hpp__reset_width(fmt, hists); | 399 | perf_hpp__reset_width(fmt, hists); |
401 | 400 | ||
401 | if (symbol_conf.col_width_list_str) | ||
402 | perf_hpp__set_user_width(symbol_conf.col_width_list_str); | ||
403 | |||
402 | if (!show_header) | 404 | if (!show_header) |
403 | goto print_entries; | 405 | goto print_entries; |
404 | 406 | ||