]> git.baikalelectronics.ru Git - kernel.git/commit
rcutorture: Add interrupt-disable capability to stall-warning tests
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 18 Aug 2017 23:11:37 +0000 (16:11 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 9 Oct 2017 21:26:08 +0000 (14:26 -0700)
commitbf1c74ba47008af1188de948def3d95f1fee38eb
tree68d5e48d865b53a5551f721dbac11d55913d6879
parentfb8141d6423a2379f3dbd29ab43279906f1659cd
rcutorture: Add interrupt-disable capability to stall-warning tests

When rcutorture sees the rcutorture.stall_cpu kernel boot parameter,
it loops with preemption disabled, which does in fact normally
generate an RCU CPU stall warning message.  However, there are test
scenarios that need the stalling CPU to have interrupts disabled.
This commit therefore adds an rcutorture.stall_cpu_irqsoff kernel
boot parameter that causes the stalling CPU to disable interrupts.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Documentation/admin-guide/kernel-parameters.txt
kernel/rcu/rcutorture.c