diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig.debug | 20 | ||||
-rw-r--r-- | lib/string.c | 2 |
2 files changed, 21 insertions, 1 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index a48abeac753f..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 |
@@ -1141,9 +1156,14 @@ config SPARSE_RCU_POINTER | |||
1141 | 1156 | ||
1142 | Say N if you are unsure. | 1157 | Say N if you are unsure. |
1143 | 1158 | ||
1159 | config TORTURE_TEST | ||
1160 | tristate | ||
1161 | default n | ||
1162 | |||
1144 | config RCU_TORTURE_TEST | 1163 | config RCU_TORTURE_TEST |
1145 | tristate "torture tests for RCU" | 1164 | tristate "torture tests for RCU" |
1146 | depends on DEBUG_KERNEL | 1165 | depends on DEBUG_KERNEL |
1166 | select TORTURE_TEST | ||
1147 | default n | 1167 | default n |
1148 | help | 1168 | help |
1149 | This option provides a kernel module that runs torture tests | 1169 | This option provides a kernel module that runs torture tests |
diff --git a/lib/string.c b/lib/string.c index e5878de4f101..9b1f9062a202 100644 --- a/lib/string.c +++ b/lib/string.c | |||
@@ -648,7 +648,7 @@ EXPORT_SYMBOL(memmove); | |||
648 | * @count: The size of the area. | 648 | * @count: The size of the area. |
649 | */ | 649 | */ |
650 | #undef memcmp | 650 | #undef memcmp |
651 | int memcmp(const void *cs, const void *ct, size_t count) | 651 | __visible int memcmp(const void *cs, const void *ct, size_t count) |
652 | { | 652 | { |
653 | const unsigned char *su1, *su2; | 653 | const unsigned char *su1, *su2; |
654 | int res = 0; | 654 | int res = 0; |