aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol-elf.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2014-07-31 01:47:42 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2014-08-13 16:39:25 -0400
commite71e79457b79a52827039d9d7f253321bfd342bd (patch)
treeec38fca3099f63b9e4a0798f31cafa9c788421e1 /tools/perf/util/symbol-elf.c
parent42337a222c93cd22864f20ef9b157765ab1086a0 (diff)
perf symbols: Don't demangle parameters and such by default
Some C++ symbols have very long name and they make column length longer. Most of them are about parameters including templates and we can ignore such info most of time IMHO. This patch passes DMGL_NO_OPTS by default when calling bfd_demangle(). One can still see full symbols with -v/--verbose option. before: JS_CallFunctionValue(JSContext*, JSObject*, JS::Value, unsigned int, JS::Value*, JS::Value*) after: JS_CallFunctionValue 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-9-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/symbol-elf.c')
-rw-r--r--tools/perf/util/symbol-elf.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/perf/util/symbol-elf.c b/tools/perf/util/symbol-elf.c
index d75349979e65..ec5ec1c9d9b5 100644
--- a/tools/perf/util/symbol-elf.c
+++ b/tools/perf/util/symbol-elf.c
@@ -939,8 +939,11 @@ new_symbol:
939 * to it... 939 * to it...
940 */ 940 */
941 if (symbol_conf.demangle) { 941 if (symbol_conf.demangle) {
942 demangled = bfd_demangle(NULL, elf_name, 942 int demangle_flags = DMGL_NO_OPTS;
943 DMGL_PARAMS | DMGL_ANSI); 943 if (verbose)
944 demangle_flags = DMGL_PARAMS | DMGL_ANSI;
945
946 demangled = bfd_demangle(NULL, elf_name, demangle_flags);
944 if (demangled != NULL) 947 if (demangled != NULL)
945 elf_name = demangled; 948 elf_name = demangled;
946 } 949 }