diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-02-04 18:51:41 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-02-23 12:04:29 -0500 |
commit | 0af3fe1efa534a43385fe2694c42ffec7a310e46 (patch) | |
tree | 32a167b7b5cae8a461569ca5b58433b1400ac5b8 /lib/Kconfig.debug | |
parent | 2193e1604eac422df05f77b53667237fcf130bf5 (diff) |
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>
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r-- | lib/Kconfig.debug | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 2bfb4e5cdf8c..dd7f8858188a 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -980,6 +980,21 @@ config DEBUG_LOCKING_API_SELFTESTS | |||
980 | The following locking APIs are covered: spinlocks, rwlocks, | 980 | The following locking APIs are covered: spinlocks, rwlocks, |
981 | mutexes and rwsems. | 981 | mutexes and rwsems. |
982 | 982 | ||
983 | config LOCK_TORTURE_TEST | ||
984 | tristate "torture tests for locking" | ||
985 | depends on DEBUG_KERNEL | ||
986 | select TORTURE_TEST | ||
987 | default n | ||
988 | help | ||
989 | This option provides a kernel module that runs torture tests | ||
990 | on kernel locking primitives. The kernel module may be built | ||
991 | after the fact on the running kernel to be tested, if desired. | ||
992 | |||
993 | Say Y here if you want kernel locking-primitive torture tests | ||
994 | to be built into the kernel. | ||
995 | Say M if you want these torture tests to build as a module. | ||
996 | Say N if you are unsure. | ||
997 | |||
983 | endmenu # lock debugging | 998 | endmenu # lock debugging |
984 | 999 | ||
985 | config TRACE_IRQFLAGS | 1000 | config TRACE_IRQFLAGS |