diff options
-rw-r--r-- | include/linux/trace_events.h | 4 | ||||
-rw-r--r-- | kernel/trace/trace.c | 10 |
2 files changed, 0 insertions, 14 deletions
diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h index 356c39b3abbb..3111a1efdad6 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h | |||
@@ -154,10 +154,6 @@ trace_event_buffer_lock_reserve(struct ring_buffer **current_buffer, | |||
154 | struct trace_event_file *trace_file, | 154 | struct trace_event_file *trace_file, |
155 | int type, unsigned long len, | 155 | int type, unsigned long len, |
156 | unsigned long flags, int pc); | 156 | unsigned long flags, int pc); |
157 | struct ring_buffer_event * | ||
158 | trace_current_buffer_lock_reserve(struct ring_buffer **current_buffer, | ||
159 | int type, unsigned long len, | ||
160 | unsigned long flags, int pc); | ||
161 | 157 | ||
162 | void tracing_record_cmdline(struct task_struct *tsk); | 158 | void tracing_record_cmdline(struct task_struct *tsk); |
163 | 159 | ||
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 41bf14412666..c09e8ffadc73 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -1714,16 +1714,6 @@ trace_event_buffer_lock_reserve(struct ring_buffer **current_rb, | |||
1714 | } | 1714 | } |
1715 | EXPORT_SYMBOL_GPL(trace_event_buffer_lock_reserve); | 1715 | EXPORT_SYMBOL_GPL(trace_event_buffer_lock_reserve); |
1716 | 1716 | ||
1717 | struct ring_buffer_event * | ||
1718 | trace_current_buffer_lock_reserve(struct ring_buffer **current_rb, | ||
1719 | int type, unsigned long len, | ||
1720 | unsigned long flags, int pc) | ||
1721 | { | ||
1722 | *current_rb = global_trace.trace_buffer.buffer; | ||
1723 | return trace_buffer_lock_reserve(*current_rb, | ||
1724 | type, len, flags, pc); | ||
1725 | } | ||
1726 | |||
1727 | void trace_buffer_unlock_commit_regs(struct trace_array *tr, | 1717 | void trace_buffer_unlock_commit_regs(struct trace_array *tr, |
1728 | struct ring_buffer *buffer, | 1718 | struct ring_buffer *buffer, |
1729 | struct ring_buffer_event *event, | 1719 | struct ring_buffer_event *event, |