diff options
| author | Michal Marek <mmarek@suse.cz> | 2011-03-09 10:15:44 -0500 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2011-03-09 10:15:44 -0500 |
| commit | 2d8ad8719591fa803b0d589ed057fa46f49b7155 (patch) | |
| tree | 4ae051577dad1161c91dafbf4207bb10a9dc91bb /include/linux/ring_buffer.h | |
| parent | 9b4ce7bce5f30712fd926ab4599a803314a07719 (diff) | |
| parent | c56eb8fb6dccb83d9fe62fd4dc00c834de9bc470 (diff) | |
Merge commit 'v2.6.38-rc1' into kbuild/packaging
Diffstat (limited to 'include/linux/ring_buffer.h')
| -rw-r--r-- | include/linux/ring_buffer.h | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h index 5fcc31ed5771..8d3a2486544d 100644 --- a/include/linux/ring_buffer.h +++ b/include/linux/ring_buffer.h | |||
| @@ -62,18 +62,6 @@ enum ring_buffer_type { | |||
| 62 | unsigned ring_buffer_event_length(struct ring_buffer_event *event); | 62 | unsigned ring_buffer_event_length(struct ring_buffer_event *event); |
| 63 | void *ring_buffer_event_data(struct ring_buffer_event *event); | 63 | void *ring_buffer_event_data(struct ring_buffer_event *event); |
| 64 | 64 | ||
| 65 | /** | ||
| 66 | * ring_buffer_event_time_delta - return the delta timestamp of the event | ||
| 67 | * @event: the event to get the delta timestamp of | ||
| 68 | * | ||
| 69 | * The delta timestamp is the 27 bit timestamp since the last event. | ||
| 70 | */ | ||
| 71 | static inline unsigned | ||
| 72 | ring_buffer_event_time_delta(struct ring_buffer_event *event) | ||
| 73 | { | ||
| 74 | return event->time_delta; | ||
| 75 | } | ||
| 76 | |||
| 77 | /* | 65 | /* |
| 78 | * ring_buffer_discard_commit will remove an event that has not | 66 | * ring_buffer_discard_commit will remove an event that has not |
| 79 | * ben committed yet. If this is used, then ring_buffer_unlock_commit | 67 | * ben committed yet. If this is used, then ring_buffer_unlock_commit |
| @@ -120,12 +108,16 @@ int ring_buffer_write(struct ring_buffer *buffer, | |||
| 120 | unsigned long length, void *data); | 108 | unsigned long length, void *data); |
| 121 | 109 | ||
| 122 | struct ring_buffer_event * | 110 | struct ring_buffer_event * |
| 123 | ring_buffer_peek(struct ring_buffer *buffer, int cpu, u64 *ts); | 111 | ring_buffer_peek(struct ring_buffer *buffer, int cpu, u64 *ts, |
| 112 | unsigned long *lost_events); | ||
| 124 | struct ring_buffer_event * | 113 | struct ring_buffer_event * |
| 125 | ring_buffer_consume(struct ring_buffer *buffer, int cpu, u64 *ts); | 114 | ring_buffer_consume(struct ring_buffer *buffer, int cpu, u64 *ts, |
| 115 | unsigned long *lost_events); | ||
| 126 | 116 | ||
| 127 | struct ring_buffer_iter * | 117 | struct ring_buffer_iter * |
| 128 | ring_buffer_read_start(struct ring_buffer *buffer, int cpu); | 118 | ring_buffer_read_prepare(struct ring_buffer *buffer, int cpu); |
| 119 | void ring_buffer_read_prepare_sync(void); | ||
| 120 | void ring_buffer_read_start(struct ring_buffer_iter *iter); | ||
| 129 | void ring_buffer_read_finish(struct ring_buffer_iter *iter); | 121 | void ring_buffer_read_finish(struct ring_buffer_iter *iter); |
| 130 | 122 | ||
| 131 | struct ring_buffer_event * | 123 | struct ring_buffer_event * |
