From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e9.ny.us.ibm.com (e9.ny.us.ibm.com [32.97.182.139]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e9.ny.us.ibm.com", Issuer "GeoTrust SSL CA" (not verified)) by ozlabs.org (Postfix) with ESMTPS id AD3512C04B9 for ; Tue, 26 Mar 2013 23:12:41 +1100 (EST) Received: from /spool/local by e9.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 26 Mar 2013 08:12:36 -0400 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id C051E38C8051 for ; Tue, 26 Mar 2013 08:12:33 -0400 (EDT) Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r2QCCXaZ299912 for ; Tue, 26 Mar 2013 08:12:33 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r2QCCXUV017270 for ; Tue, 26 Mar 2013 09:12:33 -0300 Date: Tue, 26 Mar 2013 17:37:39 +0530 From: Srikar Dronamraju To: Ananth N Mavinakayanahalli Subject: Re: [PATCH v2 4/4] uprobes/powerpc: remove additional trap instruction check Message-ID: <20130326120739.GD20399@linux.vnet.ibm.com> References: <20130322151627.GB20010@in.ibm.com> <20130322151946.GE20010@in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: <20130322151946.GE20010@in.ibm.com> Cc: ppcdev , lkml , oleg@redhat.com Reply-To: Srikar Dronamraju List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , * Ananth N Mavinakayanahalli [2013-03-22 20:49:46]: > From: Ananth N Mavinakayanahalli > > 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 > --- > arch/powerpc/kernel/uprobes.c | 6 ------ > 1 file changed, 6 deletions(-) > > Index: linux-3.9-rc3/arch/powerpc/kernel/uprobes.c > =================================================================== > --- linux-3.9-rc3.orig/arch/powerpc/kernel/uprobes.c > +++ linux-3.9-rc3/arch/powerpc/kernel/uprobes.c > @@ -53,12 +53,6 @@ int arch_uprobe_analyze_insn(struct arch > 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; > } > -- Thanks and Regards Srikar Dronamraju