diff options
author | Simon Kagstrom <simon.kagstrom@netinsight.net> | 2010-03-05 16:42:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-06 14:26:32 -0500 |
commit | 0347af4ee3922220f6bfe74b87b526aa709a0365 (patch) | |
tree | 6b1f860991e3dae3fc110e02a1a838eb291b94ee /lib | |
parent | 33fd797b3e2c6a7663b9331150da0acdb31990a2 (diff) |
lkdtm: add debugfs access and loosen KPROBE ties
Add adds a debugfs interface and additional failure modes to LKDTM to
provide similar functionality to the provoke-crash driver submitted here:
http://lwn.net/Articles/371208/
Crashes can now be induced either through module parameters (as before)
or through the debugfs interface as in provoke-crash.
The patch also provides a new "direct" interface, where KPROBES are not
used, i.e., the crash is invoked directly upon write to the debugfs
file. When built without KPROBES configured, only this mode is available.
Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Cc: M. Mohan Kumar <mohan@in.ibm.com>
Cc: Americo Wang <xiyou.wangcong@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>,
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig.debug | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 5e3407d997b2..b520ec1f33c5 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -864,8 +864,7 @@ config DEBUG_FORCE_WEAK_PER_CPU | |||
864 | 864 | ||
865 | config LKDTM | 865 | config LKDTM |
866 | tristate "Linux Kernel Dump Test Tool Module" | 866 | tristate "Linux Kernel Dump Test Tool Module" |
867 | depends on DEBUG_KERNEL | 867 | depends on DEBUG_FS |
868 | depends on KPROBES | ||
869 | depends on BLOCK | 868 | depends on BLOCK |
870 | default n | 869 | default n |
871 | help | 870 | help |
@@ -876,7 +875,7 @@ config LKDTM | |||
876 | called lkdtm. | 875 | called lkdtm. |
877 | 876 | ||
878 | Documentation on how to use the module can be found in | 877 | Documentation on how to use the module can be found in |
879 | drivers/misc/lkdtm.c | 878 | Documentation/fault-injection/provoke-crashes.txt |
880 | 879 | ||
881 | config FAULT_INJECTION | 880 | config FAULT_INJECTION |
882 | bool "Fault-injection framework" | 881 | bool "Fault-injection framework" |