Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Linux故障注入框架_Linux_Debugging_Linux Kernel_Code Injection_Fault - Fatal编程技术网

使用Linux故障注入框架

使用Linux故障注入框架,linux,debugging,linux-kernel,code-injection,fault,Linux,Debugging,Linux Kernel,Code Injection,Fault,我尝试使用Linux错误注入框架来注入页面分配错误。我试图在tools/testing/fault injection/中使用Linux内核提供的failcmd.sh脚本 将变量FAILCMD\u TYPE设置为fail\u page\u alloc后,我运行以下命令: ./failcmd.sh --times=-1 --interval=1 --verbose=2 <program_to_be_run_with_fi>. /failcmd.sh--times=-1--interv

我尝试使用Linux错误注入框架来注入页面分配错误。我试图在
tools/testing/fault injection/
中使用Linux内核提供的
failcmd.sh
脚本

将变量
FAILCMD\u TYPE
设置为
fail\u page\u alloc
后,我运行以下命令:

./failcmd.sh --times=-1 --interval=1 --verbose=2 <program_to_be_run_with_fi>.
/failcmd.sh--times=-1--interval=1--verbose=2。
我用过的所有程序都运行良好,虽然我将verbose设置为2,但没有得到任何调试信息。我在Ubuntu 12.04.1上使用内核3.2.0-32


有人在Linux中有过错误注入的经验吗?

您是否在配置内核时启用了
错误注入
?如果没有内核支持,它将无法工作。你不能使用Linux内核。你试过问你的问题吗?