aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcu/rcutorture.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-03-07 17:15:28 -0500
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-05-14 12:46:07 -0400
commit945fa9c631b04febe295a3a2a00c7e4a3cfb97db (patch)
tree3817be3d2913840ee8ef9b1143ca72c6dd67430b /kernel/rcu/rcutorture.c
parent499c632dce47e95280f8b99540c5db294053c94c (diff)
torture: Dump ftrace buffer when the RCU grace period stalls
This commit adds a call to rcutorture_trace_dump() to dump the ftrace buffer when the RCU grace period stalls in order to help debug the stall. Note that this is different than the RCU CPU stall warning, as it is rcutorture detecting the stall rather than the underlying RCU implementation. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/rcu/rcutorture.c')
-rw-r--r--kernel/rcu/rcutorture.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c
index 80d2d2440210..9decce0f110c 100644
--- a/kernel/rcu/rcutorture.c
+++ b/kernel/rcu/rcutorture.c
@@ -1034,6 +1034,7 @@ rcu_torture_printk(char *page)
1034 "??? Writer stall state %d g%lu c%lu f%#x\n", 1034 "??? Writer stall state %d g%lu c%lu f%#x\n",
1035 rcu_torture_writer_state, 1035 rcu_torture_writer_state,
1036 gpnum, completed, flags); 1036 gpnum, completed, flags);
1037 rcutorture_trace_dump();
1037 } 1038 }
1038 rtcv_snap = rcu_torture_current_version; 1039 rtcv_snap = rcu_torture_current_version;
1039} 1040}