diff options
-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 b3b359660082..ac94c066f6e9 100644 --- a/include/linux/ring_buffer.h +++ b/include/linux/ring_buffer.h | |||
@@ -124,9 +124,18 @@ unsigned long ring_buffer_overrun_cpu(struct ring_buffer *buffer, int cpu); | |||
124 | u64 ring_buffer_time_stamp(int cpu); | 124 | u64 ring_buffer_time_stamp(int cpu); |
125 | void ring_buffer_normalize_time_stamp(int cpu, u64 *ts); | 125 | void ring_buffer_normalize_time_stamp(int cpu, u64 *ts); |
126 | 126 | ||
127 | /* | ||
128 | * The below functions are fine to use outside the tracing facility. | ||
129 | */ | ||
130 | #ifdef CONFIG_RING_BUFFER | ||
127 | void tracing_on(void); | 131 | void tracing_on(void); |
128 | void tracing_off(void); | 132 | void tracing_off(void); |
129 | void tracing_off_permanent(void); | 133 | void tracing_off_permanent(void); |
134 | #else | ||
135 | static inline void tracing_on(void) { } | ||
136 | static inline void tracing_off(void) { } | ||
137 | static inline void tracing_off_permanent(void) { } | ||
138 | #endif | ||
130 | 139 | ||
131 | void *ring_buffer_alloc_read_page(struct ring_buffer *buffer); | 140 | void *ring_buffer_alloc_read_page(struct ring_buffer *buffer); |
132 | void ring_buffer_free_read_page(struct ring_buffer *buffer, void *data); | 141 | void ring_buffer_free_read_page(struct ring_buffer *buffer, void *data); |