summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorAnanth N Mavinakayanahalli <ananth@in.ibm.com>2013-03-22 19:19:46 +0400
committerOleg Nesterov <oleg@redhat.com>2013-04-04 15:57:04 +0400
commit3c9eb54f71fed86b761a6da4ad3eedc9566ceb8d (patch)
tree40420dbdcecb456050560ae83367a6281909a90a /arch/powerpc
parentab07e807be533d6317ea0971900bdf547962effd (diff)
downloadlinux-3c9eb54f71fed86b761a6da4ad3eedc9566ceb8d.tar.xz
uprobes/powerpc: Remove additional trap instruction check
prepare_uprobe() already checks if the underlying unstruction (on file) is a trap variant. We don't need to check this again. Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kernel/uprobes.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/powerpc/kernel/uprobes.c b/arch/powerpc/kernel/uprobes.c
index cb7f63da140c..2ecdbe304f46 100644
--- a/arch/powerpc/kernel/uprobes.c
+++ b/arch/powerpc/kernel/uprobes.c
@@ -53,12 +53,6 @@ int arch_uprobe_analyze_insn(struct arch_uprobe *auprobe,
if (addr & 0x03)
return -EINVAL;
- /*
- * We currently don't support a uprobe on an already
- * existing breakpoint instruction underneath
- */
- if (is_trap(auprobe->ainsn))
- return -ENOTSUPP;
return 0;
}