projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
766d027
)
rcutorture: WARN_ON_ONCE(1) when detecting an error
author
Ingo Molnar
<mingo@elte.hu>
Wed, 18 Jun 2008 08:09:48 +0000
(10:09 +0200)
committer
Ingo Molnar
<mingo@elte.hu>
Wed, 18 Jun 2008 08:09:48 +0000
(10:09 +0200)
this makes it easier for automated tests to pick up such failures.
kernel/rcutorture.c
patch
|
blob
|
history
diff --git
a/kernel/rcutorture.c
b/kernel/rcutorture.c
index 0334b6a8baca35e007c0d509844dc68f64749007..0ca7e9b290b06d55fabdc82ff8c44e18e9bd1ccd 100644
(file)
--- a/
kernel/rcutorture.c
+++ b/
kernel/rcutorture.c
@@
-687,6
+687,7
@@
rcu_torture_printk(char *page)
if (i > 1) {
cnt += sprintf(&page[cnt], "!!! ");
atomic_inc(&n_rcu_torture_error);
+ WARN_ON_ONCE(1);
}
cnt += sprintf(&page[cnt], "Reader Pipe: ");
for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++)