summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2015-09-30 00:21:35 +0200
committerSteven Rostedt <rostedt@goodmis.org>2015-09-30 10:35:18 +0200
commitb9f9108cad3998a4c8fd26051c37a451f1dff1f1 (patch)
tree7afa361be6f48e60d256acc0f9e57c7ea5aff479 /kernel/trace/trace.h
parenttracing: Add build bug if we have more trace_flags than bits (diff)
downloadlinux-b9f9108cad3998a4c8fd26051c37a451f1dff1f1.tar.xz
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.h1
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);