diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-02-09 04:35:12 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-09 04:35:12 -0500 |
commit | 44b0635481437140b0e29d6023f05e805d5e7620 (patch) | |
tree | ff31986115075410d0479df307a6b9841976026c /include/linux/ring_buffer.h | |
parent | 4ad476e11f94fd3724c6e272d8220e99cd222b27 (diff) | |
parent | 57794a9d48b63e34acbe63282628c9f029603308 (diff) |
Merge branch 'tip/tracing/core/devel' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into tracing/ftrace
Conflicts:
kernel/trace/trace_hw_branches.c
Diffstat (limited to 'include/linux/ring_buffer.h')
-rw-r--r-- | include/linux/ring_buffer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h index 3110d92e7d81..3c103d636da3 100644 --- a/include/linux/ring_buffer.h +++ b/include/linux/ring_buffer.h | |||
@@ -121,9 +121,18 @@ unsigned long ring_buffer_overrun_cpu(struct ring_buffer *buffer, int cpu); | |||
121 | u64 ring_buffer_time_stamp(int cpu); | 121 | u64 ring_buffer_time_stamp(int cpu); |
122 | void ring_buffer_normalize_time_stamp(int cpu, u64 *ts); | 122 | void ring_buffer_normalize_time_stamp(int cpu, u64 *ts); |
123 | 123 | ||
124 | /* | ||
125 | * The below functions are fine to use outside the tracing facility. | ||
126 | */ | ||
127 | #ifdef CONFIG_RING_BUFFER | ||
124 | void tracing_on(void); | 128 | void tracing_on(void); |
125 | void tracing_off(void); | 129 | void tracing_off(void); |
126 | void tracing_off_permanent(void); | 130 | void tracing_off_permanent(void); |
131 | #else | ||
132 | static inline void tracing_on(void) { } | ||
133 | static inline void tracing_off(void) { } | ||
134 | static inline void tracing_off_permanent(void) { } | ||
135 | #endif | ||
127 | 136 | ||
128 | void *ring_buffer_alloc_read_page(struct ring_buffer *buffer); | 137 | void *ring_buffer_alloc_read_page(struct ring_buffer *buffer); |
129 | void ring_buffer_free_read_page(struct ring_buffer *buffer, void *data); | 138 | void ring_buffer_free_read_page(struct ring_buffer *buffer, void *data); |