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>
This commit is contained in:
Pranith Kumar
2014-09-19 11:32:29 -04:00
committed by Paul E. McKenney
parent 2f3fd499df
commit aa23c6fbc5
4 changed files with 91 additions and 1 deletions
+2
View File
@@ -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 */