[RFC] [PATCH 2/2] Futex fault injection: Config option

From: Sripathi Kodi
Date: Tue Dec 01 2009 - 03:51:28 EST


Hi,

This patch adds config option to control futex fault injection.

Thanks,
Sripathi.

Signed-off-by: Sripathi Kodi <sripathik@xxxxxxxxxx>

---

Index: linux-2.6.32-rc8/lib/Kconfig.debug
===================================================================
--- linux-2.6.32-rc8.orig/lib/Kconfig.debug 2009-11-30 12:21:44.000000000 +0530
+++ linux-2.6.32-rc8/lib/Kconfig.debug 2009-11-30 15:24:42.000000000 +0530
@@ -882,6 +882,14 @@
Only works with drivers that use the generic timeout handling,
for others it wont do anything.

+config FAIL_FUTEX_EFAULT
+ bool "Fault injection capability for futex subsystem"
+ depends on FAULT_INJECTION
+ help
+ Provide fault injection capability for user-space read-write
+ in futex subsystem. Injects EFAULT errors while read/writing
+ values from user space
+
config FAULT_INJECTION_DEBUG_FS
bool "Debugfs entries for fault-injection capabilities"
depends on FAULT_INJECTION && SYSFS && DEBUG_FS
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/