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>
Showing
- include/linux/ftrace_event.h 40 additions, 11 deletionsinclude/linux/ftrace_event.h
- include/trace/ftrace.h 2 additions, 1 deletioninclude/trace/ftrace.h
- kernel/trace/trace.c 8 additions, 0 deletionskernel/trace/trace.c
- kernel/trace/trace.h 36 additions, 3 deletionskernel/trace/trace.h
- kernel/trace/trace_events.c 533 additions, 243 deletionskernel/trace/trace_events.c
- kernel/trace/trace_events_filter.c 3 additions, 2 deletionskernel/trace/trace_events_filter.c
Please register or sign in to comment