rcutorture: Add test_nmis module parameter
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 19 Dec 2022 19:21:09 +0000 (11:21 -0800)
committerBoqun Feng <boqun.feng@gmail.com>
Sun, 12 Mar 2023 02:03:41 +0000 (18:03 -0800)
commit808a9d675969382c855acc304c288dfa713d3f9e
treeb4fc7b7cbf078380fbf3f4e42327281a6cab0458
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6
rcutorture: Add test_nmis module parameter

This commit adds a test_nmis module parameter to generate the
specified number of NMI stack backtraces 15 seconds apart.  This module
parameter can be used to test NMI delivery and accompanying diagnostics.
Note that this parameter is ignored when rcutorture is a module rather
than built into the kernel.  This could be changed with the addition of
an EXPORT_SYMBOL_GPL().

[ paulmck: Apply kernel test robot feedback. ]

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
kernel/rcu/rcutorture.c