diff options
author | Paul E. McKenney <paul.mckenney@linaro.org> | 2012-01-10 15:51:14 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2012-02-21 12:03:35 -0500 |
commit | 091541bbdb9906349481a504e7d8e7fa89f6b6bb (patch) | |
tree | 3f5b1ed2f617583d090dbceb903c99f7eeaa989f /kernel/rcutorture.c | |
parent | e5601400081651060a59bd1f45f2821bb8e97f95 (diff) |
rcu: Make rcutorture flag online/offline failures
Make rcutorture check for CPU-hotplug failures and complain if there
were any.
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutorture.c')
-rw-r--r-- | kernel/rcutorture.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c index a58ac285fc69..a52b3217c160 100644 --- a/kernel/rcutorture.c +++ b/kernel/rcutorture.c | |||
@@ -1602,6 +1602,10 @@ rcu_torture_cleanup(void) | |||
1602 | cur_ops->cleanup(); | 1602 | cur_ops->cleanup(); |
1603 | if (atomic_read(&n_rcu_torture_error)) | 1603 | if (atomic_read(&n_rcu_torture_error)) |
1604 | rcu_torture_print_module_parms(cur_ops, "End of test: FAILURE"); | 1604 | rcu_torture_print_module_parms(cur_ops, "End of test: FAILURE"); |
1605 | else if (n_online_successes != n_online_attempts || | ||
1606 | n_offline_successes != n_offline_attempts) | ||
1607 | rcu_torture_print_module_parms(cur_ops, | ||
1608 | "End of test: RCU_HOTPLUG"); | ||
1605 | else | 1609 | else |
1606 | rcu_torture_print_module_parms(cur_ops, "End of test: SUCCESS"); | 1610 | rcu_torture_print_module_parms(cur_ops, "End of test: SUCCESS"); |
1607 | } | 1611 | } |