diff options
author | Paul E. McKenney <paul.mckenney@linaro.org> | 2011-10-02 10:44:32 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2011-12-11 13:31:26 -0500 |
commit | 91afaf300269aa99a4d646969b3258b74294ac4d (patch) | |
tree | b4d7dd5f5c9933be7873b206624f7b55eb25d906 /kernel/rcupdate.c | |
parent | a8eecf2248a45bf69f0625b23c003ad2ccd765ee (diff) |
rcu: Add failure tracing to rcutorture
Trace the rcutorture RCU accesses and dump the trace buffer when the
first failure is detected.
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/rcupdate.c')
-rw-r--r-- | kernel/rcupdate.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/rcupdate.c b/kernel/rcupdate.c index c5b98e565aee..92e771d7b44b 100644 --- a/kernel/rcupdate.c +++ b/kernel/rcupdate.c | |||
@@ -316,3 +316,13 @@ struct debug_obj_descr rcuhead_debug_descr = { | |||
316 | }; | 316 | }; |
317 | EXPORT_SYMBOL_GPL(rcuhead_debug_descr); | 317 | EXPORT_SYMBOL_GPL(rcuhead_debug_descr); |
318 | #endif /* #ifdef CONFIG_DEBUG_OBJECTS_RCU_HEAD */ | 318 | #endif /* #ifdef CONFIG_DEBUG_OBJECTS_RCU_HEAD */ |
319 | |||
320 | #if defined(CONFIG_TREE_RCU) || defined(CONFIG_TREE_PREEMPT_RCU) || defined(CONFIG_RCU_TRACE) | ||
321 | void do_trace_rcu_torture_read(char *rcutorturename, struct rcu_head *rhp) | ||
322 | { | ||
323 | trace_rcu_torture_read(rcutorturename, rhp); | ||
324 | } | ||
325 | EXPORT_SYMBOL_GPL(do_trace_rcu_torture_read); | ||
326 | #else | ||
327 | #define do_trace_rcu_torture_read(rcutorturename, rhp) do { } while (0) | ||
328 | #endif | ||