aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorStephane Eranian <eranian@google.com>2010-06-03 09:50:01 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-06-05 08:34:59 -0400
commit45d8e8025a2b2a6996be92d769fb6763bfb3cbae (patch)
tree9321b616bf731af92fe06b7dcde37175d4e780cd /tools
parent45de34bbe3e1b8f4c8bc8ecaf6c915b4b4c545f8 (diff)
perf annotate: Ask objdump to demangle symbols
Perf report is demangling symbols but not annotate. The former uses internal demangling via libbdf or libiberty. The latter executes objdump which by default does not demangle symbols. This patch adds the -C option to the objdump cmdline to enable symbol demangling. Cc: David S. Miller <davem@davemloft.net> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <4c07b323.2126e30a.6245.0e1e@mx.google.com> Signed-off-by: Stephane Eranian <eranian@google.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/hist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c
index 07f89b66b318..9e6baad92c4a 100644
--- a/tools/perf/util/hist.c
+++ b/tools/perf/util/hist.c
@@ -1037,7 +1037,7 @@ fallback:
1037 dso, dso->long_name, sym, sym->name); 1037 dso, dso->long_name, sym, sym->name);
1038 1038
1039 snprintf(command, sizeof(command), 1039 snprintf(command, sizeof(command),
1040 "objdump --start-address=0x%016Lx --stop-address=0x%016Lx -dS %s|grep -v %s|expand", 1040 "objdump --start-address=0x%016Lx --stop-address=0x%016Lx -dS -C %s|grep -v %s|expand",
1041 map__rip_2objdump(map, sym->start), 1041 map__rip_2objdump(map, sym->start),
1042 map__rip_2objdump(map, sym->end), 1042 map__rip_2objdump(map, sym->end),
1043 filename, filename); 1043 filename, filename);