diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-09-29 18:21:35 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-09-30 04:35:18 -0400 |
commit | b9f9108cad3998a4c8fd26051c37a451f1dff1f1 (patch) | |
tree | 7afa361be6f48e60d256acc0f9e57c7ea5aff479 /kernel/trace/trace.h | |
parent | b5e87c0581319481399b6d8e8d6972b5523c18e6 (diff) | |
download | blackbird-obmc-linux-b9f9108cad3998a4c8fd26051c37a451f1dff1f1.tar.gz blackbird-obmc-linux-b9f9108cad3998a4c8fd26051c37a451f1dff1f1.zip |
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>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 07155652254d..33d1e5384481 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -1318,6 +1318,7 @@ extern const char *__stop___trace_bprintk_fmt[]; extern const char *__start___tracepoint_str[]; extern const char *__stop___tracepoint_str[]; +void trace_printk_control(bool enabled); void trace_printk_init_buffers(void); void trace_printk_start_comm(void); int trace_keep_overwrite(struct tracer *tracer, u32 mask, int set); |