From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753117Ab1AZPUa (ORCPT ); Wed, 26 Jan 2011 10:20:30 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:57620 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750816Ab1AZPU3 convert rfc822-to-8bit (ORCPT ); Wed, 26 Jan 2011 10:20:29 -0500 Subject: Re: [RFC] [PATCH 2.6.37-rc5-tip 8/20] 8: uprobes: mmap and fork hooks. From: Peter Zijlstra To: Srikar Dronamraju Cc: Ingo Molnar , Steven Rostedt , Linux-mm , Arnaldo Carvalho de Melo , Linus Torvalds , Ananth N Mavinakayanahalli , Christoph Hellwig , Masami Hiramatsu , Oleg Nesterov , LKML , SystemTap , Jim Keniston , Frederic Weisbecker , Andi Kleen , Andrew Morton , "Paul E. McKenney" In-Reply-To: <20110126150946.GK19725@linux.vnet.ibm.com> References: <20101216095714.23751.52601.sendpatchset@localhost6.localdomain6> <20101216095848.23751.73144.sendpatchset@localhost6.localdomain6> <1295957741.28776.719.camel@laptop> <20110126150946.GK19725@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Wed, 26 Jan 2011 16:20:43 +0100 Message-ID: <1296055243.28776.1209.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2011-01-26 at 20:39 +0530, Srikar Dronamraju wrote: > > B. use the current match_inode but change the search_within_subtree > logic. search_within_subtree() would first find the leftmode node > within the subtree that still has the same inode. Thereafter it will use > rb_next(). > > Do you have any other ideas? Look for the right inode but with offset 0, that should get you the leftmost matching inode, or the entry left of that (depending on how you build the tree), after that you should be able to iterate all probes of that inode by using rb_next.