From: Ananth N Mavinakayanahalli Date: Fri, 22 Mar 2013 15:19:46 +0000 (+0530) Subject: uprobes/powerpc: Remove additional trap instruction check X-Git-Tag: v3.10-rc1~174^2~9^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c9eb54f71fed86b761a6da4ad3eedc9566ceb8d;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Acked-by: Srikar Dronamraju Signed-off-by: Oleg Nesterov --- diff --git a/arch/powerpc/kernel/uprobes.c b/arch/powerpc/kernel/uprobes.c index cb7f63d..2ecdbe3 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; }