diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2006-12-08 05:39:43 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:29:02 -0500 |
commit | 6ff1cb355e628f8fc55fa2d01e269e5e1bbc2fe9 (patch) | |
tree | 393d94b6d7585e4c804d6415afaa11e1d6ec350d /lib/Kconfig.debug | |
parent | de1ba09b214056365d9082982905b255caafb7a2 (diff) |
[PATCH] fault-injection capabilities infrastructure
This patch provides base functions implement to fault-injection
capabilities.
- The function should_fail() is taken from failmalloc-1.0
(http://www.nongnu.org/failmalloc/)
[akpm@osdl.org: cleanups, comments, add __init]
Cc: <okuji@enbug.org>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Don Mullis <dwm@meer.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r-- | lib/Kconfig.debug | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 2c133c098607..35228b3e7e92 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -413,3 +413,15 @@ config LKDTM | |||
413 | 413 | ||
414 | Documentation on how to use the module can be found in | 414 | Documentation on how to use the module can be found in |
415 | drivers/misc/lkdtm.c | 415 | drivers/misc/lkdtm.c |
416 | |||
417 | config FAULT_INJECTION | ||
418 | bool | ||
419 | |||
420 | config FAULT_INJECTION_DEBUG_FS | ||
421 | bool "Debugfs entries for fault-injection capabilities" | ||
422 | depends on FAULT_INJECTION && SYSFS | ||
423 | select DEBUG_FS | ||
424 | help | ||
425 | This option enable configuration of fault-injection capabilities via | ||
426 | debugfs. | ||
427 | |||