diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-03-17 17:22:06 -0400 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-03-17 23:06:31 -0400 |
commit | 37886f6a9f62d22530ffee8d3f9215c8345b6969 (patch) | |
tree | 046c9086682145fd2808af7197af669f08be6d0a /include/linux/ring_buffer.h | |
parent | 6adaad14d7d4d3ef31b4e2dc992b18b5da7c4eb3 (diff) |
ring-buffer: add api to allow a tracer to change clock source
This patch adds a new function called ring_buffer_set_clock that
allows a tracer to assign its own clock source to the buffer.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'include/linux/ring_buffer.h')
-rw-r--r-- | include/linux/ring_buffer.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h index b1a0068a5557..9e6052bd1a1c 100644 --- a/include/linux/ring_buffer.h +++ b/include/linux/ring_buffer.h | |||
@@ -118,8 +118,11 @@ unsigned long ring_buffer_overruns(struct ring_buffer *buffer); | |||
118 | unsigned long ring_buffer_entries_cpu(struct ring_buffer *buffer, int cpu); | 118 | unsigned long ring_buffer_entries_cpu(struct ring_buffer *buffer, int cpu); |
119 | unsigned long ring_buffer_overrun_cpu(struct ring_buffer *buffer, int cpu); | 119 | unsigned long ring_buffer_overrun_cpu(struct ring_buffer *buffer, int cpu); |
120 | 120 | ||
121 | u64 ring_buffer_time_stamp(int cpu); | 121 | u64 ring_buffer_time_stamp(struct ring_buffer *buffer, int cpu); |
122 | void ring_buffer_normalize_time_stamp(int cpu, u64 *ts); | 122 | void ring_buffer_normalize_time_stamp(struct ring_buffer *buffer, |
123 | int cpu, u64 *ts); | ||
124 | void ring_buffer_set_clock(struct ring_buffer *buffer, | ||
125 | u64 (*clock)(void)); | ||
123 | 126 | ||
124 | size_t ring_buffer_page_len(void *page); | 127 | size_t ring_buffer_page_len(void *page); |
125 | 128 | ||