Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2942
b: refs/heads/master
c: 89cb14c
h: refs/heads/master
v: v3
  • Loading branch information
Keshavamurthy Anil S authored and Linus Torvalds committed Jun 23, 2005
1 parent 63148bd commit 7cf5f68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: 708de8f11c2901cc49fd7725baf4a0fbd7264e73
refs/heads/master: 89cb14c0dd0e4a7d0315d19f449389c4d49237ee
10 changes: 7 additions & 3 deletions trunk/arch/ia64/kernel/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,11 @@ static void prepare_ss(struct kprobe *p, struct pt_regs *regs)
ia64_psr(regs)->ss = 1;
}

static int pre_kprobes_handler(struct pt_regs *regs)
static int pre_kprobes_handler(struct die_args *args)
{
struct kprobe *p;
int ret = 0;
struct pt_regs *regs = args->regs;
kprobe_opcode_t *addr = (kprobe_opcode_t *)instruction_pointer(regs);

preempt_disable();
Expand All @@ -437,14 +438,17 @@ static int pre_kprobes_handler(struct pt_regs *regs)
}
arch_disarm_kprobe(p);
ret = 1;
} else {
} else if (args->err == __IA64_BREAK_JPROBE) {
/*
* jprobe instrumented function just completed
*/
p = current_kprobe;
if (p->break_handler && p->break_handler(p, regs)) {
goto ss_probe;
}
} else {
/* Not our break */
goto no_kprobe;
}
}

Expand Down Expand Up @@ -515,7 +519,7 @@ int kprobe_exceptions_notify(struct notifier_block *self, unsigned long val,
struct die_args *args = (struct die_args *)data;
switch(val) {
case DIE_BREAK:
if (pre_kprobes_handler(args->regs))
if (pre_kprobes_handler(args))
return NOTIFY_STOP;
break;
case DIE_SS:
Expand Down

0 comments on commit 7cf5f68

Please sign in to comment.