diff options
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); |