From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx169.postini.com [74.125.245.169]) by kanga.kvack.org (Postfix) with SMTP id 4214D6B002C for ; Thu, 9 Feb 2012 03:40:01 -0500 (EST) Received: from /spool/local by e34.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 9 Feb 2012 01:40:00 -0700 Received: from d03relay01.boulder.ibm.com (d03relay01.boulder.ibm.com [9.17.195.226]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id 7281919D8026 for ; Thu, 9 Feb 2012 01:39:29 -0700 (MST) Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay01.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q198dWww157218 for ; Thu, 9 Feb 2012 01:39:32 -0700 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q198dUwt021714 for ; Thu, 9 Feb 2012 01:39:32 -0700 Date: Thu, 9 Feb 2012 13:57:22 +0530 From: Srikar Dronamraju 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> Sender: owner-linux-mm@kvack.org List-ID: 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 > >> > > > > 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org