summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-top.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo2018-03-16 18:33:38 +0100
committerArnaldo Carvalho de Melo2018-03-21 16:53:40 +0100
commit7f0b6fde3111aec82487662ccef5a4ebecb93381 (patch)
tree9e5f7fa74e15a4cd42eb68c91d90b678b7c45c0c /tools/perf/builtin-top.c
parentperf annotate: Introduce the --stdio2 output mode (diff)
downloadkernel-qcow2-linux-7f0b6fde3111aec82487662ccef5a4ebecb93381.tar.gz
kernel-qcow2-linux-7f0b6fde3111aec82487662ccef5a4ebecb93381.tar.xz
kernel-qcow2-linux-7f0b6fde3111aec82487662ccef5a4ebecb93381.zip
perf annotate: Move the default annotate options to the library
One more thing that goes from the TUI code to be used more widely, for instance it'll affect the default options used by: perf annotate --stdio2 Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jin Yao <yao.jin@linux.intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: https://lkml.kernel.org/n/tip-0nsz0dm0akdbo30vgja2a10e@git.kernel.org 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 113c298ed38b..f39bd60d2708 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -1493,6 +1493,8 @@ int cmd_top(int argc, const char **argv)
if (status < 0)
goto out_delete_evlist;
+ annotation_config__init();
+
symbol_conf.try_vmlinux_path = (symbol_conf.vmlinux_name == NULL);
if (symbol__init(NULL) < 0)
return -1;