From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail6.bemta7.messagelabs.com (mail6.bemta7.messagelabs.com [216.82.255.55]) by kanga.kvack.org (Postfix) with ESMTP id 0D9CE6B007E for ; Mon, 18 Jul 2011 10:31:55 -0400 (EDT) Subject: Re: [PATCH v4 3.0-rc2-tip 7/22] 7: uprobes: mmap and fork hooks. From: Peter Zijlstra In-Reply-To: <20110718092055.GA1210@linux.vnet.ibm.com> References: <20110617045000.GM4952@linux.vnet.ibm.com> <1308297836.13240.380.camel@twins> <20110617090504.GN4952@linux.vnet.ibm.com> <1308303665.2355.11.camel@twins> <1308662243.26237.144.camel@twins> <20110622143906.GF16471@linux.vnet.ibm.com> <20110624020659.GA24776@linux.vnet.ibm.com> <1308901324.27849.7.camel@twins> <20110627064502.GB24776@linux.vnet.ibm.com> <1309165071.6701.4.camel@twins> <20110718092055.GA1210@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 18 Jul 2011 16:31:16 +0200 Message-ID: <1310999476.13765.107.camel@twins> Mime-Version: 1.0 Sender: owner-linux-mm@kvack.org List-ID: To: Srikar Dronamraju Cc: Ingo Molnar , Steven Rostedt , Linux-mm , Arnaldo Carvalho de Melo , Linus Torvalds , Andi Kleen , Hugh Dickins , Christoph Hellwig , Jonathan Corbet , Thomas Gleixner , Masami Hiramatsu , Oleg Nesterov , LKML , Jim Keniston , Roland McGrath , Ananth N Mavinakayanahalli , Andrew Morton On Mon, 2011-07-18 at 14:50 +0530, Srikar Dronamraju wrote: > * - Introduce uprobes_list and uprobes_vaddr in vm_area_struct. > * uprobes_list is a node in the temp list of vmas while > * registering/unregistering uprobes. uprobes_vaddr caches the vaddr t= o > * insert/remove the breakpoint. > * > * - Introduce srcu to synchronize vma deletion with walking the list of > * vma in register/unregister_uprobe. I don't think you can sell this, that'll make munmap() horridly slow. > * - Introduce uprobes_mmap_mutex to synchronize uprobe deletion and > * mmap_uprobe().=20 Yes, that'll work I think. -- 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