Fault-injection capability for functions
modulename: fail_function.ko
configname: CONFIG_FAIL_FUNCTION
Linux Kernel Configuration
└─>Kernel hacking
└─>Kernel Testing and Coverage
└─>Fault-injection capability for functions
In linux kernel since version 3.10 (release Date: 2013-06-30)
Provide function-based fault-injection capability.
This will allow you to override a specific function with a return
with given return value. As a result, function caller will see
an error value and have to handle it. This is useful to test the
error handling in various subsystems.
This will allow you to override a specific function with a return
with given return value. As a result, function caller will see
an error value and have to handle it. This is useful to test the
error handling in various subsystems.