From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933153Ab2AFK6Y (ORCPT ); Fri, 6 Jan 2012 05:58:24 -0500 Received: from casper.infradead.org ([85.118.1.10]:39627 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758144Ab2AFK6X convert rfc822-to-8bit (ORCPT ); Fri, 6 Jan 2012 05:58:23 -0500 Message-ID: <1325847461.2442.4.camel@twins> Subject: Re: [PATCH v8 3.2.0-rc5 1/9] uprobes: Install and remove breakpoints. From: Peter Zijlstra To: Srikar Dronamraju Cc: Linus Torvalds , Oleg Nesterov , Ingo Molnar , Andrew Morton , LKML , Linux-mm , Andi Kleen , Christoph Hellwig , Steven Rostedt , Roland McGrath , Thomas Gleixner , Masami Hiramatsu , Arnaldo Carvalho de Melo , Anton Arapov , Ananth N Mavinakayanahalli , Jim Keniston , Stephen Rothwell Date: Fri, 06 Jan 2012 11:57:41 +0100 In-Reply-To: <20120106061407.GC14946@linux.vnet.ibm.com> References: <20111216122756.2085.95791.sendpatchset@srdronam.in.ibm.com> <20111216122808.2085.76986.sendpatchset@srdronam.in.ibm.com> <1325695788.2697.3.camel@twins> <20120106061407.GC14946@linux.vnet.ibm.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.1- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2012-01-06 at 11:44 +0530, Srikar Dronamraju wrote: > - consumers for the uprobe is NULL, so mmap_uprobe will not > insert new breakpoints which correspond to this uprobe until > or unless another consumer gets added for the same probe. > > - If a new consumer gets added for this probe, we reuse the > uprobe struct. Ok, and when we install a new 'first' consumer we'll again try and install all breakpoints ignoring those that were already there?