uprobes/powerpc: Remove additional trap instruction check
authorAnanth N Mavinakayanahalli <ananth@in.ibm.com>
Fri, 22 Mar 2013 15:19:46 +0000 (20:49 +0530)
committerOleg Nesterov <oleg@redhat.com>
Thu, 4 Apr 2013 11:57:04 +0000 (13:57 +0200)
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>
arch/powerpc/kernel/uprobes.c

index cb7f63da140ce405bbd66aad3556c53878455a74..2ecdbe304f4631de5d57ccda96c6dfb5aae72997 100644 (file)
@@ -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;
 }