tracing/kprobes: Avoid self tests if tracing is disabled on boot up
authorYoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
Thu, 5 Jun 2014 22:35:20 +0000 (07:35 +0900)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 6 Jun 2014 08:53:39 +0000 (04:53 -0400)
commit748ec3a20eb44fce19af3cef04f8db8a8e7aead3
tree42c864429c252b68d5ffd2e9af7be05a63e1521c
parentdc81e5e3abb9f98a3cb6f269c0bee595b2c1235d
tracing/kprobes: Avoid self tests if tracing is disabled on boot up

If tracing is disabled on boot up, the kernel should not execute tracing
self tests. The kernel should check whether tracing is disabled or not
before executing any of the tracing self tests.

Link: http://lkml.kernel.org/p/20140605223520.32311.56097.stgit@yunodevel
Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Yoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_kprobe.c