mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
powerpc: pSeries reconfig notifier error injection module
This provides the ability to inject artifical errors to pSeries reconfig notifier chain callbacks. It is controlled through debugfs interface under /sys/kernel/debug/notifier-error-inject/pSeries-reconfig If the notifier call chain should be failed with some events notified, write the error code to "actions/<notifier event>/error". Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: Pavel Machek <pavel@ucw.cz> Cc: "Rafael J. Wysocki" <rjw@sisk.pl> Cc: Greg KH <greg@kroah.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Michael Ellerman <michael@ellerman.id.au> Cc: Dave Jones <davej@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
9579f5bd31
commit
08dfb4ddee
3 changed files with 70 additions and 0 deletions
|
@ -1166,6 +1166,23 @@ config MEMORY_NOTIFIER_ERROR_INJECT
|
|||
|
||||
If unsure, say N.
|
||||
|
||||
config PSERIES_RECONFIG_NOTIFIER_ERROR_INJECT
|
||||
tristate "pSeries reconfig notifier error injection module"
|
||||
depends on PPC_PSERIES && NOTIFIER_ERROR_INJECTION
|
||||
help
|
||||
This option provides the ability to inject artifical errors to
|
||||
pSeries reconfig notifier chain callbacks. It is controlled
|
||||
through debugfs interface under
|
||||
/sys/kernel/debug/notifier-error-inject/pSeries-reconfig/
|
||||
|
||||
If the notifier call chain should be failed with some events
|
||||
notified, write the error code to "actions/<notifier event>/error".
|
||||
|
||||
To compile this code as a module, choose M here: the module will
|
||||
be called memory-notifier-error-inject.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config FAULT_INJECTION
|
||||
bool "Fault-injection framework"
|
||||
depends on DEBUG_KERNEL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue