diff options
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 91fe40905828..29bff72f97ef 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -1294,6 +1294,18 @@ void trace_buffer_unlock_commit(struct ring_buffer *buffer, | |||
1294 | EXPORT_SYMBOL_GPL(trace_buffer_unlock_commit); | 1294 | EXPORT_SYMBOL_GPL(trace_buffer_unlock_commit); |
1295 | 1295 | ||
1296 | struct ring_buffer_event * | 1296 | struct ring_buffer_event * |
1297 | trace_event_buffer_lock_reserve(struct ring_buffer **current_rb, | ||
1298 | struct ftrace_event_file *ftrace_file, | ||
1299 | int type, unsigned long len, | ||
1300 | unsigned long flags, int pc) | ||
1301 | { | ||
1302 | *current_rb = ftrace_file->tr->buffer; | ||
1303 | return trace_buffer_lock_reserve(*current_rb, | ||
1304 | type, len, flags, pc); | ||
1305 | } | ||
1306 | EXPORT_SYMBOL_GPL(trace_event_buffer_lock_reserve); | ||
1307 | |||
1308 | struct ring_buffer_event * | ||
1297 | trace_current_buffer_lock_reserve(struct ring_buffer **current_rb, | 1309 | trace_current_buffer_lock_reserve(struct ring_buffer **current_rb, |
1298 | int type, unsigned long len, | 1310 | int type, unsigned long len, |
1299 | unsigned long flags, int pc) | 1311 | unsigned long flags, int pc) |