diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index dd7044aa1a12..b3d0d047369c 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1525,8 +1525,14 @@ config NETDEV_NOTIFIER_ERROR_INJECT If unsure, say N. config FUNCTION_ERROR_INJECTION - def_bool y + bool "Fault-injections of functions" depends on HAVE_FUNCTION_ERROR_INJECTION && KPROBES + help + Add fault injections into various functions that are annotated with + ALLOW_ERROR_INJECTION() in the kernel. BPF may also modify the return + value of theses functions. This is useful to test error paths of code. + + If unsure, say N config FAULT_INJECTION bool "Fault-injection framework"