aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/session.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/session.h')
-rw-r--r--tools/perf/util/session.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h
index 1dbef7cdd489..20b2c9cc834b 100644
--- a/tools/perf/util/session.h
+++ b/tools/perf/util/session.h
@@ -3,19 +3,23 @@
3 3
4#include "event.h" 4#include "event.h"
5#include "header.h" 5#include "header.h"
6#include "thread.h"
6#include <linux/rbtree.h> 7#include <linux/rbtree.h>
7 8
8struct thread; 9struct thread;
10struct symbol_conf;
9 11
10struct perf_session { 12struct perf_session {
11 struct perf_header header; 13 struct perf_header header;
12 unsigned long size; 14 unsigned long size;
13 unsigned long mmap_window; 15 unsigned long mmap_window;
16 struct map_groups kmaps;
14 struct rb_root threads; 17 struct rb_root threads;
15 struct thread *last_match; 18 struct thread *last_match;
16 int fd; 19 int fd;
17 int cwdlen; 20 int cwdlen;
18 char *cwd; 21 char *cwd;
22 bool use_modules;
19 char filename[0]; 23 char filename[0];
20}; 24};
21 25
@@ -37,7 +41,7 @@ struct perf_event_ops {
37}; 41};
38 42
39struct perf_session *perf_session__new(const char *filename, int mode, 43struct perf_session *perf_session__new(const char *filename, int mode,
40 bool force); 44 bool force, struct symbol_conf *conf);
41void perf_session__delete(struct perf_session *self); 45void perf_session__delete(struct perf_session *self);
42 46
43int perf_session__process_events(struct perf_session *self, 47int perf_session__process_events(struct perf_session *self,