Skip to content

Commit 945fa9c

Browse files
committed
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>
1 parent 499c632 commit 945fa9c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎kernel/rcu/rcutorture.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,7 @@ rcu_torture_printk(char *page)
10341034
"??? Writer stall state %d g%lu c%lu f%#x\n",
10351035
rcu_torture_writer_state,
10361036
gpnum, completed, flags);
1037+
rcutorture_trace_dump();
10371038
}
10381039
rtcv_snap = rcu_torture_current_version;
10391040
}

0 commit comments

Comments
 (0)