OpenCloudOS-Kernel/tools/perf/ui
Arnaldo Carvalho de Melo 99cf666c5c perf hists: Fix formatting of long symbol names
We had a hardcoded buffer for formatting histogram entries, truncating
long symbol names (C++ anyone?).

Fix it by using hists__sort_list_width() before formatting the first
histogram entry to calculate the max lenght needed by traversing the
overheads and columns lists (sort order).

Reported-by: Stephane Eranian <eranian@google.com>
Tested-by: Stephane Eranian <eranian@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-vdfkkyfdp8rboh7j9344o3ss@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-09-05 16:18:28 -03:00
..
browsers perf annotate browser: Fix typo 2013-08-07 17:35:37 -03:00
gtk perf ui/gtk: Fix segmentation fault on perf_hpp__for_each_format loop 2013-08-07 17:35:39 -03:00
stdio perf hists: Fix formatting of long symbol names 2013-09-05 16:18:28 -03:00
tui perf tools: Remove dependency on libnewt 2013-04-01 12:23:21 -03:00
browser.c perf tools: Remove dependency on libnewt 2013-04-01 12:23:21 -03:00
browser.h perf tools: Remove dependency on libnewt 2013-04-01 12:23:21 -03:00
helpline.c perf ui/helpline: Introduce ui_helpline__vshow() 2012-12-09 08:46:04 -03:00
helpline.h perf ui/helpline: Introduce ui_helpline__vshow() 2012-12-09 08:46:04 -03:00
hist.c perf tools: Move hist_entry__period_snprintf into stdio code 2013-07-12 13:54:18 -03:00
keysyms.h perf hists browser: Add option for runtime switching perf data file 2013-02-06 18:09:24 -03:00
libslang.h perf tools: Move UI bits to tools/perf/ui directory 2012-04-11 17:16:40 -03:00
progress.c perf ui: Add ui_progress__finish() 2012-11-14 16:52:56 -03:00
progress.h perf ui: Add ui_progress__finish() 2012-11-14 16:52:56 -03:00
setup.c perf tools: Centralize default columns init in perf_hpp__init 2013-07-12 13:53:59 -03:00
ui.h perf tools: Remove dependency on libnewt 2013-04-01 12:23:21 -03:00
util.c perf evsel: Introduce perf_evsel__open_strerror method 2013-01-24 16:40:09 -03:00
util.h perf ui: Introduce struct perf_error_ops 2012-06-19 13:06:18 -03:00