Skip to contentSkip to conversation

perf: make annotate demangle symbols

PATCH Applied Stephane Eranian 2 participants 2 messages Jun 3, 2010 – Jun 4, 2010 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf: make annotate 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.

tools/perf/util/hist.c +1 -1
index 07f89b6..9e6baad 100644
@@ -1037,7 +1037,7 @@ fallback:
 		 dso, dso->long_name, sym, sym->name);
 
 	snprintf(command, sizeof(command),
-		 "objdump --start-address=0x%016Lx --stop-address=0x%016Lx -dS %s|grep -v %s|expand",
+		 "objdump --start-address=0x%016Lx --stop-address=0x%016Lx -dS -C %s|grep -v %s|expand",
 		 map__rip_2objdump(map, sym->start),
 		 map__rip_2objdump(map, sym->end),
 		 filename, filename);
#1 lore raw

Em Thu, Jun 03, 2010 at 03:50:01PM +0200, Stephane Eranian escreveu:

Quoted 9 lines

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.

Thanks, Applied.

- Arnaldo