OSDN Git Service

tracing/selftest: Add a WARN_ON() if a tracer test fails
authorSteven Rostedt <srostedt@redhat.com>
Mon, 18 Jun 2012 13:28:16 +0000 (09:28 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 28 Jun 2012 17:52:14 +0000 (13:52 -0400)
commit0be61ebc18b919dddbdbcd1c4f42513c310ecf59
tree60a26df229aa1187f1c75871431ef9a92c255a75
parent357398e96d8c883b010379a7669df43ed0e2e32b
tracing/selftest: Add a WARN_ON() if a tracer test fails

Add a WARN_ON() output on test failures so that they are easier to detect
in automated tests. Although, the WARN_ON() will not print if the test
causes the system to crash, obviously.

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