aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ring_buffer.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-02-09 04:35:12 -0500
committerIngo Molnar <mingo@elte.hu>2009-02-09 04:35:12 -0500
commit44b0635481437140b0e29d6023f05e805d5e7620 (patch)
treeff31986115075410d0479df307a6b9841976026c /include/linux/ring_buffer.h
parent4ad476e11f94fd3724c6e272d8220e99cd222b27 (diff)
parent57794a9d48b63e34acbe63282628c9f029603308 (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.h9
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);
121u64 ring_buffer_time_stamp(int cpu); 121u64 ring_buffer_time_stamp(int cpu);
122void ring_buffer_normalize_time_stamp(int cpu, u64 *ts); 122void 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
124void tracing_on(void); 128void tracing_on(void);
125void tracing_off(void); 129void tracing_off(void);
126void tracing_off_permanent(void); 130void tracing_off_permanent(void);
131#else
132static inline void tracing_on(void) { }
133static inline void tracing_off(void) { }
134static inline void tracing_off_permanent(void) { }
135#endif
127 136
128void *ring_buffer_alloc_read_page(struct ring_buffer *buffer); 137void *ring_buffer_alloc_read_page(struct ring_buffer *buffer);
129void ring_buffer_free_read_page(struct ring_buffer *buffer, void *data); 138void ring_buffer_free_read_page(struct ring_buffer *buffer, void *data);