projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
357398e
)
tracing/selftest: Add a WARN_ON() if a tracer test fails
author
Steven Rostedt
<srostedt@redhat.com>
Mon, 18 Jun 2012 13:28:16 +0000
(09:28 -0400)
committer
Steven Rostedt
<rostedt@goodmis.org>
Thu, 28 Jun 2012 17:52:14 +0000
(13:52 -0400)
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
patch
|
blob
|
history
diff --git
a/kernel/trace/trace.c
b/kernel/trace/trace.c
index 49249c28690dbb21b6914e2907b16af56e1094c9..748f6401edf657bb9d09e5d610dbd5ab7f508939 100644
(file)
--- a/
kernel/trace/trace.c
+++ b/
kernel/trace/trace.c
@@
-830,6
+830,8
@@
int register_tracer(struct tracer *type)
current_trace = saved_tracer;
if (ret) {
printk(KERN_CONT "FAILED!\n");
+ /* Add the warning after printing 'FAILED' */
+ WARN_ON(1);
goto out;
}
/* Only reset on passing, to avoid touching corrupted buffers */