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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h
index 20b2c9cc834b..759d96022a39 100644
--- a/tools/perf/util/session.h
+++ b/tools/perf/util/session.h
@@ -16,10 +16,12 @@ struct perf_session {
16 struct map_groups kmaps; 16 struct map_groups kmaps;
17 struct rb_root threads; 17 struct rb_root threads;
18 struct thread *last_match; 18 struct thread *last_match;
19 struct rb_root hists;
19 int fd; 20 int fd;
20 int cwdlen; 21 int cwdlen;
21 char *cwd; 22 char *cwd;
22 bool use_modules; 23 bool use_modules;
24 bool use_callchain;
23 char filename[0]; 25 char filename[0];
24}; 26};
25 27
@@ -35,7 +37,8 @@ struct perf_event_ops {
35 event_op process_read_event; 37 event_op process_read_event;
36 event_op process_throttle_event; 38 event_op process_throttle_event;
37 event_op process_unthrottle_event; 39 event_op process_unthrottle_event;
38 int (*sample_type_check)(u64 sample_type); 40 int (*sample_type_check)(u64 sample_type,
41 struct perf_session *session);
39 unsigned long total_unknown; 42 unsigned long total_unknown;
40 bool full_paths; 43 bool full_paths;
41}; 44};