diff options
Diffstat (limited to 'tools/perf/util/session.h')
| -rw-r--r-- | tools/perf/util/session.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h index 5e47c87b9266..796e2291ebd7 100644 --- a/tools/perf/util/session.h +++ b/tools/perf/util/session.h | |||
| @@ -8,9 +8,17 @@ | |||
| 8 | #include <linux/rbtree.h> | 8 | #include <linux/rbtree.h> |
| 9 | #include "../../../include/linux/perf_event.h" | 9 | #include "../../../include/linux/perf_event.h" |
| 10 | 10 | ||
| 11 | struct sample_queue; | ||
| 11 | struct ip_callchain; | 12 | struct ip_callchain; |
| 12 | struct thread; | 13 | struct thread; |
| 13 | 14 | ||
| 15 | struct ordered_samples { | ||
| 16 | u64 last_flush; | ||
| 17 | u64 flush_limit; | ||
| 18 | struct list_head samples_head; | ||
| 19 | struct sample_queue *last_inserted; | ||
| 20 | }; | ||
| 21 | |||
| 14 | struct perf_session { | 22 | struct perf_session { |
| 15 | struct perf_header header; | 23 | struct perf_header header; |
| 16 | unsigned long size; | 24 | unsigned long size; |
| @@ -28,6 +36,7 @@ struct perf_session { | |||
| 28 | bool fd_pipe; | 36 | bool fd_pipe; |
| 29 | int cwdlen; | 37 | int cwdlen; |
| 30 | char *cwd; | 38 | char *cwd; |
| 39 | struct ordered_samples ordered_samples; | ||
| 31 | char filename[0]; | 40 | char filename[0]; |
| 32 | }; | 41 | }; |
| 33 | 42 | ||
| @@ -47,6 +56,7 @@ struct perf_event_ops { | |||
| 47 | event_type, | 56 | event_type, |
| 48 | tracing_data, | 57 | tracing_data, |
| 49 | build_id; | 58 | build_id; |
| 59 | bool ordered_samples; | ||
| 50 | }; | 60 | }; |
| 51 | 61 | ||
| 52 | struct perf_session *perf_session__new(const char *filename, int mode, bool force); | 62 | struct perf_session *perf_session__new(const char *filename, int mode, bool force); |
