diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-05-05 10:09:53 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-05-13 14:05:16 -0400 |
commit | 7f1d2f8210195c8c309d424a77dbf06a6d2186f4 (patch) | |
tree | bbe67b455947322f4f43d082c23a096a40d18824 /kernel/trace/trace.c | |
parent | 9023c930902fbbcf0cebf6110828700f792989a4 (diff) |
tracing: Rename ftrace_event_file to trace_event_file
The name "ftrace" really refers to the function hook infrastructure. It
is not about the trace_events. The structure ftrace_event_file is really
about trace events and not "ftrace". Rename it to trace_event_file.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 458031c31a37..dd29e9b6b30e 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -297,7 +297,7 @@ void trace_array_put(struct trace_array *this_tr) | |||
297 | mutex_unlock(&trace_types_lock); | 297 | mutex_unlock(&trace_types_lock); |
298 | } | 298 | } |
299 | 299 | ||
300 | int filter_check_discard(struct ftrace_event_file *file, void *rec, | 300 | int filter_check_discard(struct trace_event_file *file, void *rec, |
301 | struct ring_buffer *buffer, | 301 | struct ring_buffer *buffer, |
302 | struct ring_buffer_event *event) | 302 | struct ring_buffer_event *event) |
303 | { | 303 | { |
@@ -1694,13 +1694,13 @@ static struct ring_buffer *temp_buffer; | |||
1694 | 1694 | ||
1695 | struct ring_buffer_event * | 1695 | struct ring_buffer_event * |
1696 | trace_event_buffer_lock_reserve(struct ring_buffer **current_rb, | 1696 | trace_event_buffer_lock_reserve(struct ring_buffer **current_rb, |
1697 | struct ftrace_event_file *ftrace_file, | 1697 | struct trace_event_file *trace_file, |
1698 | int type, unsigned long len, | 1698 | int type, unsigned long len, |
1699 | unsigned long flags, int pc) | 1699 | unsigned long flags, int pc) |
1700 | { | 1700 | { |
1701 | struct ring_buffer_event *entry; | 1701 | struct ring_buffer_event *entry; |
1702 | 1702 | ||
1703 | *current_rb = ftrace_file->tr->trace_buffer.buffer; | 1703 | *current_rb = trace_file->tr->trace_buffer.buffer; |
1704 | entry = trace_buffer_lock_reserve(*current_rb, | 1704 | entry = trace_buffer_lock_reserve(*current_rb, |
1705 | type, len, flags, pc); | 1705 | type, len, flags, pc); |
1706 | /* | 1706 | /* |
@@ -1709,7 +1709,7 @@ trace_event_buffer_lock_reserve(struct ring_buffer **current_rb, | |||
1709 | * to store the trace event for the tigger to use. It's recusive | 1709 | * to store the trace event for the tigger to use. It's recusive |
1710 | * safe and will not be recorded anywhere. | 1710 | * safe and will not be recorded anywhere. |
1711 | */ | 1711 | */ |
1712 | if (!entry && ftrace_file->flags & FTRACE_EVENT_FL_TRIGGER_COND) { | 1712 | if (!entry && trace_file->flags & FTRACE_EVENT_FL_TRIGGER_COND) { |
1713 | *current_rb = temp_buffer; | 1713 | *current_rb = temp_buffer; |
1714 | entry = trace_buffer_lock_reserve(*current_rb, | 1714 | entry = trace_buffer_lock_reserve(*current_rb, |
1715 | type, len, flags, pc); | 1715 | type, len, flags, pc); |