Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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
+1
kernel/rcu/rcutorture.c
··· 1034 1034 "??? Writer stall state %d g%lu c%lu f%#x\n", 1035 1035 rcu_torture_writer_state, 1036 1036 gpnum, completed, flags); 1037 + rcutorture_trace_dump(); 1037 1038 } 1038 1039 rtcv_snap = rcu_torture_current_version; 1039 1040 }