diff options
author | Steven Rostedt <srostedt@redhat.com> | 2012-05-03 23:09:03 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-03-15 00:34:40 -0400 |
commit | ae63b31e4d0e2ec09c569306ea46f664508ef717 (patch) | |
tree | 0d40e8fddca53d1776254cd92fc73bc4413ee1f5 /include/trace | |
parent | 613f04a0f51e6e68ac6fe571ab79da3c0a5eb4da (diff) |
tracing: Separate out trace events from global variables
The trace events for ftrace are all defined via global variables.
The arrays of events and event systems are linked to a global list.
This prevents multiple users of the event system (what to enable and
what not to).
By adding descriptors to represent the event/file relation, as well
as to which trace_array descriptor they are associated with, allows
for more than one set of events to be defined. Once the trace events
files have a link between the trace event and the trace_array they
are associated with, we can create multiple trace_arrays that can
record separate events in separate buffers.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/ftrace.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h index 40dc5e8fe340..191d9661e277 100644 --- a/include/trace/ftrace.h +++ b/include/trace/ftrace.h | |||
@@ -518,7 +518,8 @@ static inline notrace int ftrace_get_offsets_##call( \ | |||
518 | static notrace void \ | 518 | static notrace void \ |
519 | ftrace_raw_event_##call(void *__data, proto) \ | 519 | ftrace_raw_event_##call(void *__data, proto) \ |
520 | { \ | 520 | { \ |
521 | struct ftrace_event_call *event_call = __data; \ | 521 | struct ftrace_event_file *ftrace_file = __data; \ |
522 | struct ftrace_event_call *event_call = ftrace_file->event_call; \ | ||
522 | struct ftrace_data_offsets_##call __maybe_unused __data_offsets;\ | 523 | struct ftrace_data_offsets_##call __maybe_unused __data_offsets;\ |
523 | struct ring_buffer_event *event; \ | 524 | struct ring_buffer_event *event; \ |
524 | struct ftrace_raw_##call *entry; \ | 525 | struct ftrace_raw_##call *entry; \ |