aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r--kernel/trace/trace.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index dc53ecb80589..8dc8da6733f9 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -2710,6 +2710,10 @@ tracing_ctrl_write(struct file *filp, const char __user *ubuf,
2710 2710
2711 mutex_lock(&trace_types_lock); 2711 mutex_lock(&trace_types_lock);
2712 if (tracer_enabled ^ val) { 2712 if (tracer_enabled ^ val) {
2713
2714 /* Only need to warn if this is used to change the state */
2715 WARN_ONCE(1, "tracing_enabled is deprecated. Use tracing_on");
2716
2713 if (val) { 2717 if (val) {
2714 tracer_enabled = 1; 2718 tracer_enabled = 1;
2715 if (current_trace->start) 2719 if (current_trace->start)