tracing: Move the tracing selftest code into its own function
authorSteven Rostedt (Red Hat) <srostedt@redhat.com>
Thu, 7 Mar 2013 16:10:56 +0000 (11:10 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 Mar 2013 04:35:53 +0000 (00:35 -0400)
commitf4e781c0a89d5810729772290441ac7d61f321ec
treebdfdb25b9ebc63ed0f552bc579f04d217f011370
parentf5eb5588262cab7232ed1d77cf612b327db50767
tracing: Move the tracing selftest code into its own function

Move the tracing startup selftest code into its own function and
when not enabled, always have that function succeed.

This makes the register_tracer() function much more readable.

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