summaryrefslogtreecommitdiffstats
path: root/tools/perf/ui
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2018-03-15 10:03:34 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2018-03-20 13:19:27 -0300
commit98bc80b0a199619d2987e61e42415a1ae7a1d7fb (patch)
treefb85dcd542e7ee385668901cb6f4426318663482 /tools/perf/ui
parent555fc3b1ef4c850c635be333024dcf67bc1e7cb8 (diff)
downloadop-kernel-dev-98bc80b0a199619d2987e61e42415a1ae7a1d7fb.zip
op-kernel-dev-98bc80b0a199619d2987e61e42415a1ae7a1d7fb.tar.gz
perf annotate: Move annotation_options out of the TUI browser
This will be useful when making parts of the TUI browser generic enough to be used for a new stdio mode, available even when the TUI is not built in, for explicit user decision or when the necessary library devel files, for the slang library currently, are not available in the build system. 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-45twzienhz7ypbad0sbvojku@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui')
-rw-r--r--tools/perf/ui/browsers/annotate.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/tools/perf/ui/browsers/annotate.c b/tools/perf/ui/browsers/annotate.c
index 618edf9..69ec968 100644
--- a/tools/perf/ui/browsers/annotate.c
+++ b/tools/perf/ui/browsers/annotate.c
@@ -31,15 +31,7 @@ struct browser_line {
int jump_sources;
};
-static struct annotate_browser_opt {
- bool hide_src_code,
- use_offset,
- jump_arrows,
- show_linenr,
- show_nr_jumps,
- show_nr_samples,
- show_total_period;
-} annotate_browser__opts = {
+static struct annotation_options annotate_browser__opts = {
.use_offset = true,
.jump_arrows = true,
};
OpenPOWER on IntegriCloud