Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83409
b: refs/heads/master
c: 2118116
h: refs/heads/master
i:
  83407: d330ddc
v: v3
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Feb 6, 2008
1 parent 9013593 commit 891bf5d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 26464378c4af9f7461b9d9e359f98dbd34ab3544
refs/heads/master: 2118116e5ed2432a054d52f9925dbf92d2cb7279
24 changes: 13 additions & 11 deletions trunk/drivers/misc/lkdtm.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,51 +129,53 @@ 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");

unsigned int jp_do_irq(unsigned int irq)
static unsigned int jp_do_irq(unsigned int irq)
{
lkdtm_handler();
jprobe_return();
return 0;
}

irqreturn_t jp_handle_irq_event(unsigned int irq, struct irqaction *action)
static irqreturn_t jp_handle_irq_event(unsigned int irq,
struct irqaction *action)
{
lkdtm_handler();
jprobe_return();
return 0;
}

void jp_tasklet_action(struct softirq_action *a)
static void jp_tasklet_action(struct softirq_action *a)
{
lkdtm_handler();
jprobe_return();
}

void jp_ll_rw_block(int rw, int nr, struct buffer_head *bhs[])
static void jp_ll_rw_block(int rw, int nr, struct buffer_head *bhs[])
{
lkdtm_handler();
jprobe_return();
}

struct scan_control;

unsigned long jp_shrink_inactive_list(unsigned long max_scan,
struct zone *zone, struct scan_control *sc)
static unsigned long jp_shrink_inactive_list(unsigned long max_scan,
struct zone *zone,
struct scan_control *sc)
{
lkdtm_handler();
jprobe_return();
return 0;
}

int jp_hrtimer_start(struct hrtimer *timer, ktime_t tim,
const enum hrtimer_mode mode)
static int jp_hrtimer_start(struct hrtimer *timer, ktime_t tim,
const enum hrtimer_mode mode)
{
lkdtm_handler();
jprobe_return();
return 0;
}

int jp_scsi_dispatch_cmd(struct scsi_cmnd *cmd)
static int jp_scsi_dispatch_cmd(struct scsi_cmnd *cmd)
{
lkdtm_handler();
jprobe_return();
Expand Down Expand Up @@ -270,7 +272,7 @@ void lkdtm_handler(void)
}
}

int lkdtm_module_init(void)
static int __init lkdtm_module_init(void)
{
int ret;

Expand Down Expand Up @@ -331,7 +333,7 @@ int lkdtm_module_init(void)
return 0;
}

void lkdtm_module_exit(void)
static void __exit lkdtm_module_exit(void)
{
unregister_jprobe(&lkdtm);
printk(KERN_INFO "lkdtm : Crash point unregistered\n");
Expand Down

0 comments on commit 891bf5d

Please sign in to comment.