Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83311
b: refs/heads/master
c: 97075c4
h: refs/heads/master
i:
  83309: 46207c5
  83307: cab8e0a
  83303: 73ef9c3
  83295: fcacba5
v: v3
  • Loading branch information
Masami Hiramatsu authored and Tony Luck committed Feb 4, 2008
1 parent 0b52cef commit 4c7ddd6
Show file tree
Hide file tree
Showing 2 changed files with 5 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: a23fe55e132cd85108ab55b3fafb4b5060d847c7
refs/heads/master: 97075c4b3b7fdd6a083eea075c3a4a601f0d64d8
7 changes: 4 additions & 3 deletions trunk/arch/ia64/kernel/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,10 @@ static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb)
static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb)
{
unsigned int i;
i = atomic_sub_return(1, &kcb->prev_kprobe_index);
__get_cpu_var(current_kprobe) = kcb->prev_kprobe[i].kp;
kcb->kprobe_status = kcb->prev_kprobe[i].status;
i = atomic_read(&kcb->prev_kprobe_index);
__get_cpu_var(current_kprobe) = kcb->prev_kprobe[i-1].kp;
kcb->kprobe_status = kcb->prev_kprobe[i-1].status;
atomic_sub(1, &kcb->prev_kprobe_index);
}

static void __kprobes set_current_kprobe(struct kprobe *p,
Expand Down

0 comments on commit 4c7ddd6

Please sign in to comment.