tracing: Remove unused function trace_current_buffer_lock_reserve()
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Fri, 29 Apr 2016 22:11:54 +0000 (18:11 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 29 Apr 2016 22:11:54 +0000 (18:11 -0400)
trace_current_buffer_lock_reserve() has no more users. Remove it.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/trace_events.h
kernel/trace/trace.c

index 356c39b3abbb0e2f513c63f77e3c1edcad792f94..3111a1efdad605345be8ebe4dcbd163cbeb365e5 100644 (file)
@@ -154,10 +154,6 @@ trace_event_buffer_lock_reserve(struct ring_buffer **current_buffer,
                                struct trace_event_file *trace_file,
                                int type, unsigned long len,
                                unsigned long flags, int pc);
-struct ring_buffer_event *
-trace_current_buffer_lock_reserve(struct ring_buffer **current_buffer,
-                                 int type, unsigned long len,
-                                 unsigned long flags, int pc);
 
 void tracing_record_cmdline(struct task_struct *tsk);
 
index 41bf14412666050b1a77efa449747afdb7d66945..c09e8ffadc73c412b78365a1dd489ec1fe63c4a4 100644 (file)
@@ -1714,16 +1714,6 @@ trace_event_buffer_lock_reserve(struct ring_buffer **current_rb,
 }
 EXPORT_SYMBOL_GPL(trace_event_buffer_lock_reserve);
 
-struct ring_buffer_event *
-trace_current_buffer_lock_reserve(struct ring_buffer **current_rb,
-                                 int type, unsigned long len,
-                                 unsigned long flags, int pc)
-{
-       *current_rb = global_trace.trace_buffer.buffer;
-       return trace_buffer_lock_reserve(*current_rb,
-                                        type, len, flags, pc);
-}
-
 void trace_buffer_unlock_commit_regs(struct trace_array *tr,
                                     struct ring_buffer *buffer,
                                     struct ring_buffer_event *event,