Skip to content

Commit bb3bf70

Browse files
Paul E. McKenneypaulmck
authored andcommitted
rcu: Control rcutorture startup from kernel boot parameters
Currently, if rcutorture is built into the kernel, it must be manually started or started from an init script. This is inconvenient for automated KVM testing, where it is good to be able to fully control rcutorture execution from the kernel parameters. This patch therefore adds a module parameter named "rcutorture_runnable" that defaults to zero ("don't start automatically"), but which can be set to one to cause rcutorture to start up immediately during boot. Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
1 parent d5f546d commit bb3bf70

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎kernel/rcutorture.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ static int stutter_pause_test;
164164
#define RCUTORTURE_RUNNABLE_INIT 0
165165
#endif
166166
int rcutorture_runnable = RCUTORTURE_RUNNABLE_INIT;
167+
module_param(rcutorture_runnable, int, 0444);
168+
MODULE_PARM_DESC(rcutorture_runnable, "Start rcutorture at boot");
167169

168170
#if defined(CONFIG_RCU_BOOST) && !defined(CONFIG_HOTPLUG_CPU)
169171
#define rcu_can_boost() 1

0 commit comments

Comments
 (0)