tracing: Remove access to trace_flags in trace_printk.c
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Tue, 29 Sep 2015 22:21:35 +0000 (18:21 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 30 Sep 2015 08:35:18 +0000 (04:35 -0400)
commitb9f9108cad3998a4c8fd26051c37a451f1dff1f1
tree7afa361be6f48e60d256acc0f9e57c7ea5aff479
parentb5e87c0581319481399b6d8e8d6972b5523c18e6
tracing: Remove access to trace_flags in trace_printk.c

In the effort to move the global trace_flags to the tracing instances, the
direct access to trace_flags must be removed from trace_printk.c

Instead, add a new trace_printk_enabled boolean that is set by a new access
function trace_printk_control(), that will enable or disable trace_printk.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace.h
kernel/trace/trace_printk.c