Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757249Ab2BIIkE (ORCPT ); Thu, 9 Feb 2012 03:40:04 -0500 Received: from e37.co.us.ibm.com ([32.97.110.158]:54939 "EHLO e37.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751268Ab2BIIkC (ORCPT ); Thu, 9 Feb 2012 03:40:02 -0500 Date: Thu, 9 Feb 2012 13:57:22 +0530 From: Srikar Dronamraju To: Masami Hiramatsu Cc: Denys Vlasenko , Peter Zijlstra , Linus Torvalds , Oleg Nesterov , Ingo Molnar , Andrew Morton , LKML , Linux-mm , Andi Kleen , Christoph Hellwig , Steven Rostedt , Roland McGrath , Thomas Gleixner , Arnaldo Carvalho de Melo , Anton Arapov , Ananth N Mavinakayanahalli , Jim Keniston , Stephen Rothwell , yrl.pp-manager.tt@hitachi.com Subject: Re: [PATCH v10 3.3-rc2 1/9] uprobes: Install and remove breakpoints. Message-ID: <20120209082722.GD16600@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <20120202141840.5967.39687.sendpatchset@srdronam.in.ibm.com> <20120202141851.5967.68000.sendpatchset@srdronam.in.ibm.com> <20120207171707.GA24443@linux.vnet.ibm.com> <4F3320E5.1050707@hitachi.com> <20120209063745.GB16600@linux.vnet.ibm.com> <4F338135.5090407@hitachi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <4F338135.5090407@hitachi.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12020908-7408-0000-0000-00000284234F Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 878 Lines: 40 > >> > > > > I am confused by why we need to call insn_get_length(insn) before > > checking insn->rex_prefix.nbytes? Is it needed. > > Ah, certainly, no, if the insn is already decoded. Okay, > > > > uprobe->arch_info.rip_rela_target_address = 0x0; > > if (!insn_rip_relative(insn)) > > return; > > Here, I think it is better to add a comment that > insn_rip_relative() decodes until modrm. :) Will do. > > > return; > > } > > Confirmed, this looks good to me ;) > > Thanks! Okay, Thanks for confirming, Do you have a handy instruction whose REX.B is set that I could use to test. -- Thanks and Regards Srikar -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/