summaryrefslogtreecommitdiffstats
path: root/kernel/rcu/rcu.h
diff options
context:
space:
mode:
authorPranith Kumar2014-09-19 17:32:29 +0200
committerPaul E. McKenney2014-11-04 04:26:37 +0100
commitaa23c6fbc50c4f9d8b43682f37fc4580a7851413 (patch)
tree5834d1e44228b409d03df222c5d8b92ac22d9468 /kernel/rcu/rcu.h
parenttorture: Run Linux-kernel binary out of results directory (diff)
downloadkernel-qcow2-linux-aa23c6fbc50c4f9d8b43682f37fc4580a7851413.tar.gz
kernel-qcow2-linux-aa23c6fbc50c4f9d8b43682f37fc4580a7851413.tar.xz
kernel-qcow2-linux-aa23c6fbc50c4f9d8b43682f37fc4580a7851413.zip
rcutorture: Add early boot self tests
Add early boot self tests for RCU under CONFIG_PROVE_RCU. Currently the only test is adding a dummy callback which increments a counter which we then later verify after calling rcu_barrier*(). Signed-off-by: Pranith Kumar <bobby.prani@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu/rcu.h')
-rw-r--r--kernel/rcu/rcu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rcu/rcu.h b/kernel/rcu/rcu.h
index ff1a6de62f17..07bb02eda844 100644
--- a/kernel/rcu/rcu.h
+++ b/kernel/rcu/rcu.h
@@ -135,4 +135,6 @@ int rcu_jiffies_till_stall_check(void);
*/
#define TPS(x) tracepoint_string(x)
+void rcu_early_boot_tests(void);
+
#endif /* __LINUX_RCU_H */