diff options
author | Ingo Molnar <mingo@elte.hu> | 2010-05-10 02:20:19 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-05-10 02:20:19 -0400 |
commit | 1f0ac7183f4d270bd9ce511254ba5d931d4f29c9 (patch) | |
tree | 124b2682a249b0393f29e929537aa76ab299bb5f /tools/perf/util/session.h | |
parent | 232a5c948da5e23dff27e48180abf4a4238f7602 (diff) | |
parent | 76ba7e846fcc89d9d4b25b89e303c9058de96d60 (diff) |
Merge branch 'perf/test' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing into perf/core
Diffstat (limited to 'tools/perf/util/session.h')
-rw-r--r-- | tools/perf/util/session.h | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h index eb9f179376a5..242d528bfae2 100644 --- a/tools/perf/util/session.h +++ b/tools/perf/util/session.h | |||
@@ -14,7 +14,8 @@ struct thread; | |||
14 | 14 | ||
15 | struct ordered_samples { | 15 | struct ordered_samples { |
16 | u64 last_flush; | 16 | u64 last_flush; |
17 | u64 flush_limit; | 17 | u64 next_flush; |
18 | u64 max_timestamp; | ||
18 | struct list_head samples_head; | 19 | struct list_head samples_head; |
19 | struct sample_queue *last_inserted; | 20 | struct sample_queue *last_inserted; |
20 | }; | 21 | }; |
@@ -42,23 +43,28 @@ struct perf_session { | |||
42 | char filename[0]; | 43 | char filename[0]; |
43 | }; | 44 | }; |
44 | 45 | ||
46 | struct perf_event_ops; | ||
47 | |||
45 | typedef int (*event_op)(event_t *self, struct perf_session *session); | 48 | typedef int (*event_op)(event_t *self, struct perf_session *session); |
49 | typedef int (*event_op2)(event_t *self, struct perf_session *session, | ||
50 | struct perf_event_ops *ops); | ||
46 | 51 | ||
47 | struct perf_event_ops { | 52 | struct perf_event_ops { |
48 | event_op sample, | 53 | event_op sample, |
49 | mmap, | 54 | mmap, |
50 | comm, | 55 | comm, |
51 | fork, | 56 | fork, |
52 | exit, | 57 | exit, |
53 | lost, | 58 | lost, |
54 | read, | 59 | read, |
55 | throttle, | 60 | throttle, |
56 | unthrottle, | 61 | unthrottle, |
57 | attr, | 62 | attr, |
58 | event_type, | 63 | event_type, |
59 | tracing_data, | 64 | tracing_data, |
60 | build_id; | 65 | build_id; |
61 | bool ordered_samples; | 66 | event_op2 finished_round; |
67 | bool ordered_samples; | ||
62 | }; | 68 | }; |
63 | 69 | ||
64 | struct perf_session *perf_session__new(const char *filename, int mode, bool force, bool repipe); | 70 | struct perf_session *perf_session__new(const char *filename, int mode, bool force, bool repipe); |