diff options
author | Jiri Olsa <jolsa@kernel.org> | 2016-06-20 17:58:13 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-06-22 08:56:34 -0400 |
commit | f758990f25d159c067f31ded52b298a4f15cb08e (patch) | |
tree | 7005171114f1b572e0b10dec079b1db51f9f2f93 /tools/perf/ui | |
parent | dd4629d46c3121b82e6a552c94cda6dcccfc38c6 (diff) |
perf hists browser: Move hist_browser into header file
This way we can use it outside of ui/browsers/hists.c and extend it in
following patches.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1466459899-1166-3-git-send-email-jolsa@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/hists.c | 19 | ||||
-rw-r--r-- | tools/perf/ui/browsers/hists.h | 23 |
2 files changed, 24 insertions, 18 deletions
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c index b1b60544a545..cc8dece609ad 100644 --- a/tools/perf/ui/browsers/hists.c +++ b/tools/perf/ui/browsers/hists.c | |||
@@ -12,30 +12,13 @@ | |||
12 | #include "../../util/top.h" | 12 | #include "../../util/top.h" |
13 | #include "../../arch/common.h" | 13 | #include "../../arch/common.h" |
14 | 14 | ||
15 | #include "../browser.h" | 15 | #include "../browsers/hists.h" |
16 | #include "../helpline.h" | 16 | #include "../helpline.h" |
17 | #include "../util.h" | 17 | #include "../util.h" |
18 | #include "../ui.h" | 18 | #include "../ui.h" |
19 | #include "map.h" | 19 | #include "map.h" |
20 | #include "annotate.h" | 20 | #include "annotate.h" |
21 | 21 | ||
22 | struct hist_browser { | ||
23 | struct ui_browser b; | ||
24 | struct hists *hists; | ||
25 | struct hist_entry *he_selection; | ||
26 | struct map_symbol *selection; | ||
27 | struct hist_browser_timer *hbt; | ||
28 | struct pstack *pstack; | ||
29 | struct perf_env *env; | ||
30 | int print_seq; | ||
31 | bool show_dso; | ||
32 | bool show_headers; | ||
33 | float min_pcnt; | ||
34 | u64 nr_non_filtered_entries; | ||
35 | u64 nr_hierarchy_entries; | ||
36 | u64 nr_callchain_rows; | ||
37 | }; | ||
38 | |||
39 | extern void hist_browser__init_hpp(void); | 22 | extern void hist_browser__init_hpp(void); |
40 | 23 | ||
41 | static int hists__browser_title(struct hists *hists, | 24 | static int hists__browser_title(struct hists *hists, |
diff --git a/tools/perf/ui/browsers/hists.h b/tools/perf/ui/browsers/hists.h new file mode 100644 index 000000000000..9b6785ce79b4 --- /dev/null +++ b/tools/perf/ui/browsers/hists.h | |||
@@ -0,0 +1,23 @@ | |||
1 | #ifndef _PERF_UI_BROWSER_HISTS_H_ | ||
2 | #define _PERF_UI_BROWSER_HISTS_H_ 1 | ||
3 | |||
4 | #include "ui/browser.h" | ||
5 | |||
6 | struct hist_browser { | ||
7 | struct ui_browser b; | ||
8 | struct hists *hists; | ||
9 | struct hist_entry *he_selection; | ||
10 | struct map_symbol *selection; | ||
11 | struct hist_browser_timer *hbt; | ||
12 | struct pstack *pstack; | ||
13 | struct perf_env *env; | ||
14 | int print_seq; | ||
15 | bool show_dso; | ||
16 | bool show_headers; | ||
17 | float min_pcnt; | ||
18 | u64 nr_non_filtered_entries; | ||
19 | u64 nr_hierarchy_entries; | ||
20 | u64 nr_callchain_rows; | ||
21 | }; | ||
22 | |||
23 | #endif /* _PERF_UI_BROWSER_HISTS_H_ */ | ||