Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339045
b: refs/heads/master
c: 65b2c8f
h: refs/heads/master
i:
  339043: 2bb8fa7
v: v3
  • Loading branch information
Oleg Nesterov committed Nov 3, 2012
1 parent b5ceed3 commit d7db15e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 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: f57d56dd29003435d1bfc0e675896c368180f8ec
refs/heads/master: 65b2c8f0e53347583168423de0f32227d8baf01b
6 changes: 6 additions & 0 deletions trunk/arch/powerpc/kernel/uprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ int arch_uprobe_pre_xol(struct arch_uprobe *auprobe, struct pt_regs *regs)
autask->saved_trap_nr = current->thread.trap_nr;
current->thread.trap_nr = UPROBE_TRAP_NR;
regs->nip = current->utask->xol_vaddr;

user_enable_single_step(current);
return 0;
}

Expand Down Expand Up @@ -119,6 +121,8 @@ int arch_uprobe_post_xol(struct arch_uprobe *auprobe, struct pt_regs *regs)
* to be executed.
*/
regs->nip = utask->vaddr + MAX_UINSN_BYTES;

user_disable_single_step(current);
return 0;
}

Expand Down Expand Up @@ -162,6 +166,8 @@ void arch_uprobe_abort_xol(struct arch_uprobe *auprobe, struct pt_regs *regs)

current->thread.trap_nr = utask->autask.saved_trap_nr;
instruction_pointer_set(regs, utask->vaddr);

user_disable_single_step(current);
}

/*
Expand Down
2 changes: 0 additions & 2 deletions trunk/kernel/events/uprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1432,12 +1432,10 @@ static struct uprobe *find_active_uprobe(unsigned long bp_vaddr, int *is_swbp)

void __weak arch_uprobe_enable_step(struct arch_uprobe *arch)
{
user_enable_single_step(current);
}

void __weak arch_uprobe_disable_step(struct arch_uprobe *arch)
{
user_disable_single_step(current);
}

/*
Expand Down

0 comments on commit d7db15e

Please sign in to comment.