Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339047
b: refs/heads/master
c: 19f5ee2
h: refs/heads/master
i:
  339045: d7db15e
  339043: 2bb8fa7
  339039: 67e3dc6
v: v3
  • Loading branch information
Oleg Nesterov committed Nov 3, 2012
1 parent 54f05a1 commit 553d09a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 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: 4dc316c64594d1a5ef2d61fba5ae0fe7fe18cdca
refs/heads/master: 19f5ee2716373519fda2129e9333f4c3847aa742
2 changes: 0 additions & 2 deletions trunk/include/linux/uprobes.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ extern void uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm);
extern void uprobe_free_utask(struct task_struct *t);
extern void uprobe_copy_process(struct task_struct *t);
extern unsigned long __weak uprobe_get_swbp_addr(struct pt_regs *regs);
extern void __weak arch_uprobe_enable_step(struct arch_uprobe *arch);
extern void __weak arch_uprobe_disable_step(struct arch_uprobe *arch);
extern int uprobe_post_sstep_notifier(struct pt_regs *regs);
extern int uprobe_pre_sstep_notifier(struct pt_regs *regs);
extern void uprobe_notify_resume(struct pt_regs *regs);
Expand Down
10 changes: 0 additions & 10 deletions trunk/kernel/events/uprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1430,14 +1430,6 @@ static struct uprobe *find_active_uprobe(unsigned long bp_vaddr, int *is_swbp)
return uprobe;
}

void __weak arch_uprobe_enable_step(struct arch_uprobe *arch)
{
}

void __weak arch_uprobe_disable_step(struct arch_uprobe *arch)
{
}

/*
* Run handler and ask thread to singlestep.
* Ensure all non-fatal signals cannot interrupt thread while it singlesteps.
Expand Down Expand Up @@ -1491,7 +1483,6 @@ static void handle_swbp(struct pt_regs *regs)
goto out;

if (!pre_ssout(uprobe, regs, bp_vaddr)) {
arch_uprobe_enable_step(&uprobe->arch);
utask->active_uprobe = uprobe;
utask->state = UTASK_SSTEP;
return;
Expand Down Expand Up @@ -1523,7 +1514,6 @@ static void handle_singlestep(struct uprobe_task *utask, struct pt_regs *regs)
else
WARN_ON_ONCE(1);

arch_uprobe_disable_step(&uprobe->arch);
put_uprobe(uprobe);
utask->active_uprobe = NULL;
utask->state = UTASK_RUNNING;
Expand Down

0 comments on commit 553d09a

Please sign in to comment.