diff options
author | Steven Rostedt <srostedt@redhat.com> | 2012-08-02 10:32:10 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-03-15 00:34:42 -0400 |
commit | ccb469a198cffac94a7eea0b69f715f06e2ddf15 (patch) | |
tree | a4de18987f64f115373a22379eef17d6d30ce9b8 /include/linux/ftrace_event.h | |
parent | 2b6080f28c7cc3efc8625ab71495aae89aeb63a0 (diff) |
tracing: Pass the ftrace_file to the buffer lock reserve code
Pass the struct ftrace_event_file *ftrace_file to the
trace_event_buffer_lock_reserve() (new function that replaces the
trace_current_buffer_lock_reserver()).
The ftrace_file holds a pointer to the trace_array that is in use.
In the case of multiple buffers with different trace_arrays, this
allows different events to be recorded into different buffers.
Also fixed some of the stale comments in include/trace/ftrace.h
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/ftrace_event.h')
-rw-r--r-- | include/linux/ftrace_event.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h index c7191d482f98..fd28c170c597 100644 --- a/include/linux/ftrace_event.h +++ b/include/linux/ftrace_event.h | |||
@@ -128,6 +128,13 @@ enum print_line_t { | |||
128 | void tracing_generic_entry_update(struct trace_entry *entry, | 128 | void tracing_generic_entry_update(struct trace_entry *entry, |
129 | unsigned long flags, | 129 | unsigned long flags, |
130 | int pc); | 130 | int pc); |
131 | struct ftrace_event_file; | ||
132 | |||
133 | struct ring_buffer_event * | ||
134 | trace_event_buffer_lock_reserve(struct ring_buffer **current_buffer, | ||
135 | struct ftrace_event_file *ftrace_file, | ||
136 | int type, unsigned long len, | ||
137 | unsigned long flags, int pc); | ||
131 | struct ring_buffer_event * | 138 | struct ring_buffer_event * |
132 | trace_current_buffer_lock_reserve(struct ring_buffer **current_buffer, | 139 | trace_current_buffer_lock_reserve(struct ring_buffer **current_buffer, |
133 | int type, unsigned long len, | 140 | int type, unsigned long len, |