aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-top.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@cloudius-systems.com>2014-09-13 00:15:05 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2014-09-17 16:08:09 -0400
commit763122ade725592402190f5ff3b8d2edf42b87e8 (patch)
tree1ce5493cc830c0cd23c221665e7c143e668e43ac /tools/perf/builtin-top.c
parent29a3ce31c38c8f73f4e076b7ffc0876b4f5dd6c3 (diff)
perf tools: Disable kernel symbol demangling by default
Some Linux symbols (for example __vt_event_wait) are interpreted by the demangler as C++ mangled names, which of course they aren't. Disable kernel symbol demangling by default to avoid this, and allow enabling it with a new option --demangle-kernel for those who wish it. Reported-by: Jiri Olsa <jolsa@redhat.com> Signed-off-by: Avi Kivity <avi@cloudius-systems.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/r/1410581705-26968-1-git-send-email-avi@cloudius-systems.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r--tools/perf/builtin-top.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index 9848e270b92c..7da2c46ea38f 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -1142,6 +1142,8 @@ int cmd_top(int argc, const char **argv, const char *prefix __maybe_unused)
1142 "Interleave source code with assembly code (default)"), 1142 "Interleave source code with assembly code (default)"),
1143 OPT_BOOLEAN(0, "asm-raw", &symbol_conf.annotate_asm_raw, 1143 OPT_BOOLEAN(0, "asm-raw", &symbol_conf.annotate_asm_raw,
1144 "Display raw encoding of assembly instructions (default)"), 1144 "Display raw encoding of assembly instructions (default)"),
1145 OPT_BOOLEAN(0, "demangle-kernel", &symbol_conf.demangle_kernel,
1146 "Enable kernel symbol demangling"),
1145 OPT_STRING(0, "objdump", &objdump_path, "path", 1147 OPT_STRING(0, "objdump", &objdump_path, "path",
1146 "objdump binary to use for disassembly and annotations"), 1148 "objdump binary to use for disassembly and annotations"),
1147 OPT_STRING('M', "disassembler-style", &disassembler_style, "disassembler style", 1149 OPT_STRING('M', "disassembler-style", &disassembler_style, "disassembler style",