rcutorture: Add srcu_lockdep.sh
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 18 Jan 2023 04:09:56 +0000 (20:09 -0800)
committerBoqun Feng <boqun.feng@gmail.com>
Mon, 27 Mar 2023 18:16:14 +0000 (11:16 -0700)
commit5c5552d6297a2a91464180d2790dffdca9ffc7de
tree60d7a959df74d7824e42e16fce152942a7ba14b8
parent6e2044887b1d8f26a8cf0042b9a340411b227e5e
rcutorture: Add srcu_lockdep.sh

This commit adds an srcu_lockdep.sh script that checks whether lockdep
correctly classifies SRCU-based, SRCU/mutex-based, and SRCU/rwsem-based
deadlocks.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
[ boqun: Fix "RCUTORTURE" with "$RCUTORTURE" ]
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
tools/testing/selftests/rcutorture/bin/srcu_lockdep.sh [new file with mode: 0755]