diff options
author | 2023-12-26 09:01:13 +0800 | |
---|---|---|
committer | 2024-01-06 23:47:07 +0100 | |
commit | 2fe48aaab2669b3fbb11bf1b822a1b07424eef56 (patch) | |
tree | fac386e9af93845c1febb58c46a7f2bb7edae775 /tools/perf/scripts/python/task-analyzer.py | |
parent | ubi: Reserve sufficient buffer length for the input mask (diff) | |
download | wireguard-linux-2fe48aaab2669b3fbb11bf1b822a1b07424eef56.tar.xz wireguard-linux-2fe48aaab2669b3fbb11bf1b822a1b07424eef56.zip |
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/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions