Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
lkdtm.c File Reference
#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.

Data Structures

struct  crash_entry
 

Macros

#define DEFAULT_COUNT   10
 
#define REC_NUM_DEFAULT   10
 

Enumerations

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
}
 

Functions

 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")
 

Macro Definition Documentation

#define DEFAULT_COUNT   10

Definition at line 51 of file lkdtm.c.

#define REC_NUM_DEFAULT   10

Definition at line 52 of file lkdtm.c.

Enumeration Type Documentation

enum cname
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.

enum ctype
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.

Function Documentation

module_exit ( lkdtm_module_exit  )
module_init ( lkdtm_module_init  )
MODULE_LICENSE ( "GPL"  )
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 ( recur_count  ,
" Recursion level for the stack overflow  test,
""default is 10"   
)
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  
)
MODULE_PARM_DESC ( cpoint_count  ,
" Crash Point  Count,
number of times the""crash point is to be hit to trigger action  
)