diff options
author | ZhaoLong Wang <wangzhaolong1@huawei.com> | 2023-12-26 09:01:13 +0800 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2024-01-06 23:47:07 +0100 |
commit | 2fe48aaab2669b3fbb11bf1b822a1b07424eef56 (patch) | |
tree | fac386e9af93845c1febb58c46a7f2bb7edae775 /tools/testing/selftests/bpf/prog_tests/recursion.c | |
parent | 4d0deb380a5b53471cde1d8c0e0fbd1b53bfbc64 (diff) |
mtd: Add several functions to the fail_function list
add mtd_read(), mtd_write(), mtd_erase(), mtd_block_markbad() to
fail_function list for testing purpose
- Specify the function to inject the fault
echo mtd_read > /sys/kernel/debug/fail_function/inject
- Specifies the return value of the function to inject the fault
printf %#x -12 > /sys/kernel/debug/fail_function/mtd_read/retval
- Specify other fault injection configuration parameters.
echo -1 > /sys/kernel/debug/fail_function/times
echo 100 > /sys/kernel/debug/fail_function/probability
echo 15 > /sys/kernel/debug/fail_function/space
Signed-off-by: ZhaoLong Wang <wangzhaolong1@huawei.com>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/recursion.c')
0 files changed, 0 insertions, 0 deletions