Documentation/fault-injection/provoke-crashes.txt

来源:互联网 发布:java计算时间间隔小时 编辑:程序博客网 时间:2024/05/22 04:32

如果想评论或更新本文的内容,请直接联系原文档的维护者。


如果你使用英文交流有困难的话,也可以向中文版维护者求助。


如果本翻译更新不及时或者翻译存在问题,请联系中文版维护者。


中文版维护者: 陶莹莉  tyl18768122426@163.com


中文版翻译者:  陶莹莉  tyl18768122426@163.com


中文版校译者:  陶莹莉  tyl18768122426@163.com

The lkdtm module provides an interface to crash or injure the kernel at
predefined crashpoints to evaluate the reliability of crash dumps obtained
using different dumping solutions. The module uses KPROBEs to instrument
crashing points, but can also crash the kernel directly without KRPOBE
support.


lkdtm模块为内核毁坏或伤害在预定的毁坏点提供了一个接口来评估崩溃转储使用不同的
转储方案的可靠性。该模块使用Kprobes来衡量崩溃点,但也可能直接导致内核崩溃在没有KRPOBE的
支持下。


You can provide the way either through module arguments when inserting
the module, or through a debugfs interface.


您也可以提供通过使用模块参数的方式,当插入模块时,或者通过内核调试的接口。


Usage: insmod lkdtm.ko [recur_count={>0}] cpoint_name=<> cpoint_type=<>
[cpoint_count={>0}]


  recur_count : Recursion level for the stack overflow test. Default is 10.
  用法: 载入模块 lkdtm.ko [recur_count={>0}] cpoint_name=<> cpoint_type=<>
[cpoint_count={>0}]
  循环计数:递归堆栈测试溢出水平。默认值是10。


  cpoint_name : Crash point where the kernel is to be crashed. It can be
one of INT_HARDWARE_ENTRY, INT_HW_IRQ_EN, INT_TASKLET_ENTRY,
FS_DEVRW, MEM_SWAPOUT, TIMERADD, SCSI_DISPATCH_CMD,
IDE_CORE_CP, DIRECT


点类的名字:毁坏点可以是内核要崩溃的地方。它可以是
INT_HARDWARE_ENTRY,INT_HW_IRQ_EN INT_TASKLET_ENTRY,
FS_DEVRW MEM_SWAPOUT,TIMERADD SCSI_DISPATCH_CMD
IDE_CORE_CP,DIRECT之一


  cpoint_type : Indicates the action to be taken on hitting the crash point.
     It can be one of PANIC, BUG, EXCEPTION, LOOP, OVERFLOW,
     CORRUPT_STACK, UNALIGNED_LOAD_STORE_WRITE, OVERWRITE_ALLOCATION,
     WRITE_AFTER_FREE,


点类的类型:表示将发生的行动会击中的毁坏点。
     它可以是PANIC, BUG, EXCEPTION, LOOP, OVERFLOW,
     CORRUPT_STACK, UNALIGNED_LOAD_STORE_WRITE, OVERWRITE_ALLOCATION,
     WRITE_AFTER_FREE,


  cpoint_count : Indicates the number of times the crash point is to be hit
    to trigger an action. The default is 10.


点类的数量:表示崩溃点被击中来触发一个动作的次数。默认值是10。

You can also induce failures by mounting debugfs and writing the type to
<mountpoint>/provoke-crash/<crashpoint>. E.g.,
您也将内核调试的安装和写入的类型引起的故障概括为
<mountpoint>/provoke-crash/<crashpoint>. E.g.,
mount -t debugfs debugfs /mnt
echo EXCEPTION > /mnt/provoke-crash/INT_HARDWARE_ENTRY




A special file is `DIRECT' which will induce the crash directly without
KPROBE instrumentation. This mode is the only one available when the module
is built on a kernel without KPROBEs support.
一个特殊的文件是'DIRECT',这将直接导致崩溃在缺乏KPROBE设备的情况下。
这种模式是唯一一个模块是建立在一个没有kprobes的支持内核上。