rcutorture: Make srcu_lockdep.sh check kernel Kconfig
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 22 Jan 2025 21:42:23 +0000 (13:42 -0800)
committerJoel Fernandes <joelagnelf@nvidia.com>
Tue, 8 Apr 2025 18:55:38 +0000 (14:55 -0400)
commit31b7ce3d98a57de80e255f5124f8dbdfb4be8777
tree182def688d1d5775a591ea2eb49259ea3e9a906f
parent0af2f6be1b4281385b618cb86ad946eded089ac8
rcutorture: Make srcu_lockdep.sh check kernel Kconfig

The srcu_lockdep.sh currently blindly trusts the rcutorture SRCU-P
scenario to build its kernel with lockdep enabled.  Of course, this
dependency might not be obvious to someone rebalancing SRCU scenarios.
This commit therefore adds code to srcu_lockdep.sh that verifies that
the .config file has lockdep enabled.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
tools/testing/selftests/rcutorture/bin/srcu_lockdep.sh