diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2012-07-30 23:43:20 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-31 02:25:22 +0200 |
commit | c24aa64d169b7224f1a5bc6a4b1365da37ce861b (patch) | |
tree | e9974ad7a6edd7303c0b75d20fedcb7a7d5dd389 /lib/scatterlist.c | |
parent | fault-injection: add selftests for cpu and memory hotplug (diff) | |
download | linux-c24aa64d169b7224f1a5bc6a4b1365da37ce861b.tar.xz linux-c24aa64d169b7224f1a5bc6a4b1365da37ce861b.zip |
fault-injection: add tool to run command with failslab or fail_page_alloc
This adds tools/testing/fault-injection/failcmd.sh to run a command while
injecting slab/page allocation failures via fault injection.
Example:
Run a command "make -C tools/testing/selftests/ run_tests" with
injecting slab allocation failure.
# ./tools/testing/fault-injection/failcmd.sh \
-- make -C tools/testing/selftests/ run_tests
Same as above except to specify 100 times failures at most instead of
one time at most by default.
# ./tools/testing/fault-injection/failcmd.sh --times=100 \
-- make -C tools/testing/selftests/ run_tests
Same as above except to inject page allocation failure instead of slab
allocation failure.
# env FAILCMD_TYPE=fail_page_alloc \
./tools/testing/fault-injection/failcmd.sh --times=100 \
-- make -C tools/testing/selftests/ run_tests
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/scatterlist.c')
0 files changed, 0 insertions, 0 deletions