瀏覽代碼

tracing: Move trace_buffer_unlock_commit{_regs}() to local header

The functions trace_buffer_unlock_commit() and the _regs() version are only
used within the kernel/trace directory. Move them to the local header and
remove the export as well.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Steven Rostedt (Red Hat) 9 年之前
父節點
當前提交
fa66ddb870
共有 3 個文件被更改,包括 10 次插入11 次删除
  1. 0 9
      include/linux/trace_events.h
  2. 0 2
      kernel/trace/trace.c
  3. 10 0
      kernel/trace/trace.h

+ 0 - 9
include/linux/trace_events.h

@@ -158,15 +158,6 @@ struct ring_buffer_event *
 trace_current_buffer_lock_reserve(struct ring_buffer **current_buffer,
 trace_current_buffer_lock_reserve(struct ring_buffer **current_buffer,
 				  int type, unsigned long len,
 				  int type, unsigned long len,
 				  unsigned long flags, int pc);
 				  unsigned long flags, int pc);
-void trace_buffer_unlock_commit(struct trace_array *tr,
-				struct ring_buffer *buffer,
-				struct ring_buffer_event *event,
-				unsigned long flags, int pc);
-void trace_buffer_unlock_commit_regs(struct trace_array *tr,
-				     struct ring_buffer *buffer,
-				     struct ring_buffer_event *event,
-				     unsigned long flags, int pc,
-				     struct pt_regs *regs);
 void trace_current_buffer_discard_commit(struct ring_buffer *buffer,
 void trace_current_buffer_discard_commit(struct ring_buffer *buffer,
 					 struct ring_buffer_event *event);
 					 struct ring_buffer_event *event);
 
 

+ 0 - 2
kernel/trace/trace.c

@@ -1696,7 +1696,6 @@ void trace_buffer_unlock_commit(struct trace_array *tr,
 	ftrace_trace_stack(tr, buffer, flags, 6, pc, NULL);
 	ftrace_trace_stack(tr, buffer, flags, 6, pc, NULL);
 	ftrace_trace_userstack(buffer, flags, pc);
 	ftrace_trace_userstack(buffer, flags, pc);
 }
 }
-EXPORT_SYMBOL_GPL(trace_buffer_unlock_commit);
 
 
 static struct ring_buffer *temp_buffer;
 static struct ring_buffer *temp_buffer;
 
 
@@ -1748,7 +1747,6 @@ void trace_buffer_unlock_commit_regs(struct trace_array *tr,
 	ftrace_trace_stack(tr, buffer, flags, 0, pc, regs);
 	ftrace_trace_stack(tr, buffer, flags, 0, pc, regs);
 	ftrace_trace_userstack(buffer, flags, pc);
 	ftrace_trace_userstack(buffer, flags, pc);
 }
 }
-EXPORT_SYMBOL_GPL(trace_buffer_unlock_commit_regs);
 
 
 void trace_current_buffer_discard_commit(struct ring_buffer *buffer,
 void trace_current_buffer_discard_commit(struct ring_buffer *buffer,
 					 struct ring_buffer_event *event)
 					 struct ring_buffer_event *event)

+ 10 - 0
kernel/trace/trace.h

@@ -1068,6 +1068,16 @@ struct trace_subsystem_dir {
 extern int call_filter_check_discard(struct trace_event_call *call, void *rec,
 extern int call_filter_check_discard(struct trace_event_call *call, void *rec,
 				     struct ring_buffer *buffer,
 				     struct ring_buffer *buffer,
 				     struct ring_buffer_event *event);
 				     struct ring_buffer_event *event);
+
+void trace_buffer_unlock_commit(struct trace_array *tr,
+				struct ring_buffer *buffer,
+				struct ring_buffer_event *event,
+				unsigned long flags, int pc);
+void trace_buffer_unlock_commit_regs(struct trace_array *tr,
+				     struct ring_buffer *buffer,
+				     struct ring_buffer_event *event,
+				     unsigned long flags, int pc,
+				     struct pt_regs *regs);
 /*
 /*
  * Helper function for event_trigger_unlock_commit{_regs}().
  * Helper function for event_trigger_unlock_commit{_regs}().
  * If there are event triggers attached to this event that requires
  * If there are event triggers attached to this event that requires