aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r--kernel/trace/trace.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 9c5987aca74..c5e39cd7310 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -846,6 +846,20 @@ void trace_buffer_unlock_commit(struct trace_array *tr,
846 trace_wake_up(); 846 trace_wake_up();
847} 847}
848 848
849struct ring_buffer_event *
850trace_current_buffer_lock_reserve(unsigned char type, unsigned long len,
851 unsigned long flags, int pc)
852{
853 return trace_buffer_lock_reserve(&global_trace,
854 type, len, flags, pc);
855}
856
857void trace_current_buffer_unlock_commit(struct ring_buffer_event *event,
858 unsigned long flags, int pc)
859{
860 return trace_buffer_unlock_commit(&global_trace, event, flags, pc);
861}
862
849void 863void
850trace_function(struct trace_array *tr, 864trace_function(struct trace_array *tr,
851 unsigned long ip, unsigned long parent_ip, unsigned long flags, 865 unsigned long ip, unsigned long parent_ip, unsigned long flags,