Skip to content

Commit 0af3fe1

Browse files
committed
locktorture: Add a lock-torture kernel module
This commit adds the locking counterpart to rcutorture. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> [ paulmck: Make n_lock_torture_errors and torture_spinlock static as suggested by Fengguang Wu. ] Reviewed-by: Josh Triplett <josh@joshtriplett.org>
1 parent 2193e16 commit 0af3fe1

3 files changed

Lines changed: 437 additions & 0 deletions

File tree

‎kernel/locking/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o
2323
obj-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
2424
obj-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem-xadd.o
2525
obj-$(CONFIG_PERCPU_RWSEM) += percpu-rwsem.o
26+
obj-$(CONFIG_LOCK_TORTURE_TEST) += locktorture.o

0 commit comments

Comments
 (0)