tracing: Move trace_flags from global to a trace_array field
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 30 Sep 2015 13:42:05 +0000 (09:42 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 30 Sep 2015 19:22:55 +0000 (15:22 -0400)
commit983f938ae69585213bbb779d841b90e75f93f545
treeb7d592e16b741e612031e91f032ed97b440fc107
parent55577204154c7a95c6bce4cb185366d638b238b5
tracing: Move trace_flags from global to a trace_array field

In preparation to make trace options per instance, the global trace_flags
needs to be moved from being a global variable to a field within the trace
instance trace_array structure.

There's still more work to do, as there's some functions that use
trace_flags without passing in a way to get to the current_trace array. For
those, the global_trace is used directly (from trace.c). This includes
setting and clearing the trace_flags. This means that when a new instance is
created, it just gets the trace_flags of the global_trace and will not be
able to modify them. Depending on the functions that have access to the
trace_array, the flags of an instance may not affect parts of its trace,
where the global_trace is used. These will be fixed in future changes.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/blktrace.c
kernel/trace/trace.c
kernel/trace/trace.h
kernel/trace/trace_events.c
kernel/trace/trace_functions_graph.c
kernel/trace/trace_irqsoff.c
kernel/trace/trace_kdb.c
kernel/trace/trace_output.c
kernel/trace/trace_sched_wakeup.c
kernel/trace/trace_syscalls.c