#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/module.h>
#include <linux/buffer_head.h>
#include <linux/kprobes.h>
#include <linux/list.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/hrtimer.h>
#include <linux/slab.h>
#include <scsi/scsi_cmnd.h>
#include <linux/debugfs.h>
Go to the source code of this file.
|
enum | cname {
CN_INVALID,
CN_INT_HARDWARE_ENTRY,
CN_INT_HW_IRQ_EN,
CN_INT_TASKLET_ENTRY,
CN_FS_DEVRW,
CN_MEM_SWAPOUT,
CN_TIMERADD,
CN_SCSI_DISPATCH_CMD,
CN_IDE_CORE_CP,
CN_DIRECT
} |
|
enum | ctype {
CT_NONE,
CT_PANIC,
CT_BUG,
CT_EXCEPTION,
CT_LOOP,
CT_OVERFLOW,
CT_CORRUPT_STACK,
CT_UNALIGNED_LOAD_STORE_WRITE,
CT_OVERWRITE_ALLOCATION,
CT_WRITE_AFTER_FREE,
CT_SOFTLOCKUP,
CT_HARDLOCKUP,
CT_HUNG_TASK
} |
|
|
| module_param (recur_count, int, 0644) |
|
| MODULE_PARM_DESC (recur_count," Recursion level for the stack overflow test, ""default is 10") |
|
| module_param (cpoint_name, charp, 0444) |
|
| MODULE_PARM_DESC (cpoint_name," Crash Point, where kernel is to be crashed") |
|
| module_param (cpoint_type, charp, 0444) |
|
| MODULE_PARM_DESC (cpoint_type," Crash Point Type, action to be taken on ""hitting the crash point") |
|
| module_param (cpoint_count, int, 0644) |
|
| MODULE_PARM_DESC (cpoint_count," Crash Point Count, number of times the ""crash point is to be hit to trigger action") |
|
| module_init (lkdtm_module_init) |
|
| module_exit (lkdtm_module_exit) |
|
| MODULE_LICENSE ("GPL") |
|
#define REC_NUM_DEFAULT 10 |
- Enumerator:
CN_INVALID |
|
CN_INT_HARDWARE_ENTRY |
|
CN_INT_HW_IRQ_EN |
|
CN_INT_TASKLET_ENTRY |
|
CN_FS_DEVRW |
|
CN_MEM_SWAPOUT |
|
CN_TIMERADD |
|
CN_SCSI_DISPATCH_CMD |
|
CN_IDE_CORE_CP |
|
CN_DIRECT |
|
Definition at line 54 of file lkdtm.c.
- Enumerator:
CT_NONE |
|
CT_PANIC |
|
CT_BUG |
|
CT_EXCEPTION |
|
CT_LOOP |
|
CT_OVERFLOW |
|
CT_CORRUPT_STACK |
|
CT_UNALIGNED_LOAD_STORE_WRITE |
|
CT_OVERWRITE_ALLOCATION |
|
CT_WRITE_AFTER_FREE |
|
CT_SOFTLOCKUP |
|
CT_HARDLOCKUP |
|
CT_HUNG_TASK |
|
Definition at line 67 of file lkdtm.c.
module_exit |
( |
lkdtm_module_exit |
| ) |
|
module_init |
( |
lkdtm_module_init |
| ) |
|
module_param |
( |
recur_count |
, |
|
|
int |
, |
|
|
0644 |
|
|
) |
| |
module_param |
( |
cpoint_name |
, |
|
|
charp |
, |
|
|
0444 |
|
|
) |
| |
module_param |
( |
cpoint_type |
, |
|
|
charp |
, |
|
|
0444 |
|
|
) |
| |
module_param |
( |
cpoint_count |
, |
|
|
int |
, |
|
|
0644 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
cpoint_name |
, |
|
|
" Crash |
Point, |
|
|
where kernel is to be crashed" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
cpoint_type |
, |
|
|
" Crash Point |
Type, |
|
|
action to be taken on""hitting the crash point" |
|
|
) |
| |