Browse Source

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>
Ananth N Mavinakayanahalli 12 years ago
parent
commit
3c9eb54f71
1 changed files with 0 additions and 6 deletions
  1. 0 6
      arch/powerpc/kernel/uprobes.c

+ 0 - 6
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;
 }