diff options
Diffstat (limited to 'tools/perf/util/session.h')
-rw-r--r-- | tools/perf/util/session.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h index f3b235ec7bf4..04bf7373a7e5 100644 --- a/tools/perf/util/session.h +++ b/tools/perf/util/session.h | |||
@@ -37,11 +37,16 @@ struct perf_session { | |||
37 | int fd; | 37 | int fd; |
38 | bool fd_pipe; | 38 | bool fd_pipe; |
39 | bool repipe; | 39 | bool repipe; |
40 | char *cwd; | ||
41 | struct ordered_samples ordered_samples; | 40 | struct ordered_samples ordered_samples; |
42 | char filename[1]; | 41 | char filename[1]; |
43 | }; | 42 | }; |
44 | 43 | ||
44 | #define PRINT_IP_OPT_IP (1<<0) | ||
45 | #define PRINT_IP_OPT_SYM (1<<1) | ||
46 | #define PRINT_IP_OPT_DSO (1<<2) | ||
47 | #define PRINT_IP_OPT_SYMOFFSET (1<<3) | ||
48 | #define PRINT_IP_OPT_ONELINE (1<<4) | ||
49 | |||
45 | struct perf_tool; | 50 | struct perf_tool; |
46 | 51 | ||
47 | struct perf_session *perf_session__new(const char *filename, int mode, | 52 | struct perf_session *perf_session__new(const char *filename, int mode, |
@@ -57,6 +62,11 @@ int __perf_session__process_events(struct perf_session *self, | |||
57 | int perf_session__process_events(struct perf_session *self, | 62 | int perf_session__process_events(struct perf_session *self, |
58 | struct perf_tool *tool); | 63 | struct perf_tool *tool); |
59 | 64 | ||
65 | int perf_session_queue_event(struct perf_session *s, union perf_event *event, | ||
66 | struct perf_sample *sample, u64 file_offset); | ||
67 | |||
68 | void perf_tool__fill_defaults(struct perf_tool *tool); | ||
69 | |||
60 | int perf_session__resolve_callchain(struct perf_session *self, struct perf_evsel *evsel, | 70 | int perf_session__resolve_callchain(struct perf_session *self, struct perf_evsel *evsel, |
61 | struct thread *thread, | 71 | struct thread *thread, |
62 | struct ip_callchain *chain, | 72 | struct ip_callchain *chain, |
@@ -99,7 +109,7 @@ struct perf_evsel *perf_session__find_first_evtype(struct perf_session *session, | |||
99 | 109 | ||
100 | void perf_evsel__print_ip(struct perf_evsel *evsel, union perf_event *event, | 110 | void perf_evsel__print_ip(struct perf_evsel *evsel, union perf_event *event, |
101 | struct perf_sample *sample, struct machine *machine, | 111 | struct perf_sample *sample, struct machine *machine, |
102 | int print_sym, int print_dso, int print_symoffset); | 112 | unsigned int print_opts, unsigned int stack_depth); |
103 | 113 | ||
104 | int perf_session__cpu_bitmap(struct perf_session *session, | 114 | int perf_session__cpu_bitmap(struct perf_session *session, |
105 | const char *cpu_list, unsigned long *cpu_bitmap); | 115 | const char *cpu_list, unsigned long *cpu_bitmap); |
@@ -114,4 +124,8 @@ int __perf_session__set_tracepoints_handlers(struct perf_session *session, | |||
114 | 124 | ||
115 | #define perf_session__set_tracepoints_handlers(session, array) \ | 125 | #define perf_session__set_tracepoints_handlers(session, array) \ |
116 | __perf_session__set_tracepoints_handlers(session, array, ARRAY_SIZE(array)) | 126 | __perf_session__set_tracepoints_handlers(session, array, ARRAY_SIZE(array)) |
127 | |||
128 | extern volatile int session_done; | ||
129 | |||
130 | #define session_done() (*(volatile int *)(&session_done)) | ||
117 | #endif /* __PERF_SESSION_H */ | 131 | #endif /* __PERF_SESSION_H */ |