summaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2011-02-08 13:54:06 -0500
committerSteven Rostedt <rostedt@goodmis.org>2011-02-08 17:14:58 -0500
commit6752ab4a9c30d5411b2dfdb251a3f1cb18aae487 (patch)
tree2f6e2bb5b562c43b3b3d7efe095e196a19995395 /kernel/trace
parent87d80de2800d087ea833cb79bc13f85ff34ed49f (diff)
downloadop-kernel-dev-6752ab4a9c30d5411b2dfdb251a3f1cb18aae487.zip
op-kernel-dev-6752ab4a9c30d5411b2dfdb251a3f1cb18aae487.tar.gz
tracing: Deprecate tracing_enabled for tracing_on
tracing_enabled should not be used, it is heavy weight and does not do much in helping lower the overhead. tracing_on should be used instead. Warn users to use tracing_on when tracing_enabled is used as it will soon be removed from the tracing directory. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
-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 dc53ecb..8dc8da6 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,
mutex_lock(&trace_types_lock);
if (tracer_enabled ^ val) {
+
+ /* Only need to warn if this is used to change the state */
+ WARN_ONCE(1, "tracing_enabled is deprecated. Use tracing_on");
+
if (val) {
tracer_enabled = 1;
if (current_trace->start)
OpenPOWER on IntegriCloud