rcutorture: Make grace-period kthread report match RCU flavor being tested
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 16 Sep 2020 00:08:03 +0000 (17:08 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 3 Nov 2020 01:12:43 +0000 (17:12 -0800)
commit27c0f1448389baf7f309b69e62d4b531c9395e88
tree5516786e034c162469fcf34a8c2efc69ce0fef98
parent77dc174103fdb121c47621e9856d73704b7eddd2
rcutorture: Make grace-period kthread report match RCU flavor being tested

At the end of the test and after rcu_torture_writer() stalls, rcutorture
invokes show_rcu_gp_kthreads() in order to dump out information on the
RCU grace-period kthread.  This makes a lot of sense when testing vanilla
RCU, but not so much for the other flavors.  This commit therefore allows
per-flavor kthread-dump functions to be specified.

[ paulmck: Apply feedback from kernel test robot <lkp@intel.com>. ]
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/rcu.h
kernel/rcu/rcutorture.c
kernel/rcu/tasks.h