]> Pileus Git - ~andy/linux/commit
ftrace: Do not run selftest if command line parameter is set
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Fri, 28 Jun 2013 02:18:06 +0000 (22:18 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 2 Jul 2013 00:57:15 +0000 (20:57 -0400)
commitf1ed7c741fcd0c3d7d318e7c19813d89934b9296
tree58721d29f205342f2099c8548860bcbe6bee13e7
parentcf6735a4b103b801753748531e3658cdc8cafa5e
ftrace: Do not run selftest if command line parameter is set

If the kernel command line ftrace filter parameters are set
(ftrace_filter or ftrace_notrace), force the function self test to
pass, with a warning why it was forced.

If the user adds a filter to the kernel command line, it is assumed
that they know what they are doing, and the self test should just not
run instead of failing (which disables function tracing) or clearing
the filter, as that will probably annoy the user.

If the user wants the selftest to run, the message will tell them why
it did not.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c
kernel/trace/trace.h
kernel/trace/trace_selftest.c