diff options
Diffstat (limited to 'tools/perf/util/session.h')
-rw-r--r-- | tools/perf/util/session.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h index 242d528bfae2..46190f94b547 100644 --- a/tools/perf/util/session.h +++ b/tools/perf/util/session.h | |||
@@ -1,6 +1,7 @@ | |||
1 | #ifndef __PERF_SESSION_H | 1 | #ifndef __PERF_SESSION_H |
2 | #define __PERF_SESSION_H | 2 | #define __PERF_SESSION_H |
3 | 3 | ||
4 | #include "hist.h" | ||
4 | #include "event.h" | 5 | #include "event.h" |
5 | #include "header.h" | 6 | #include "header.h" |
6 | #include "symbol.h" | 7 | #include "symbol.h" |
@@ -28,11 +29,16 @@ struct perf_session { | |||
28 | struct thread *last_match; | 29 | struct thread *last_match; |
29 | struct machine host_machine; | 30 | struct machine host_machine; |
30 | struct rb_root machines; | 31 | struct rb_root machines; |
31 | struct events_stats events_stats; | 32 | struct rb_root hists_tree; |
32 | struct rb_root stats_by_id; | ||
33 | unsigned long event_total[PERF_RECORD_MAX]; | 33 | unsigned long event_total[PERF_RECORD_MAX]; |
34 | unsigned long unknown_events; | 34 | unsigned long unknown_events; |
35 | struct rb_root hists; | 35 | /* |
36 | * FIXME: should point to the first entry in hists_tree and | ||
37 | * be a hists instance. Right now its only 'report' | ||
38 | * that is using ->hists_tree while all the rest use | ||
39 | * ->hists. | ||
40 | */ | ||
41 | struct hists hists; | ||
36 | u64 sample_type; | 42 | u64 sample_type; |
37 | int fd; | 43 | int fd; |
38 | bool fd_pipe; | 44 | bool fd_pipe; |