From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753405Ab1AZPdH (ORCPT ); Wed, 26 Jan 2011 10:33:07 -0500 Received: from casper.infradead.org ([85.118.1.10]:43111 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751728Ab1AZPdG convert rfc822-to-8bit (ORCPT ); Wed, 26 Jan 2011 10:33:06 -0500 Subject: Re: [RFC] [PATCH 2.6.37-rc5-tip 4/20] 4: uprobes: Adding and remove a uprobe in a rb tree. From: Peter Zijlstra To: Srikar Dronamraju Cc: Ingo Molnar , Steven Rostedt , Arnaldo Carvalho de Melo , Linus Torvalds , Masami Hiramatsu , Christoph Hellwig , Andi Kleen , Oleg Nesterov , LKML , SystemTap , Jim Keniston , Frederic Weisbecker , Ananth N Mavinakayanahalli , Andrew Morton , "Paul E. McKenney" In-Reply-To: <20110126151842.GM19725@linux.vnet.ibm.com> References: <20101216095714.23751.52601.sendpatchset@localhost6.localdomain6> <20101216095803.23751.41491.sendpatchset@localhost6.localdomain6> <1295963773.28776.1054.camel@laptop> <20110126084522.GF19725@linux.vnet.ibm.com> <1296036847.28776.1142.camel@laptop> <20110126151842.GM19725@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Wed, 26 Jan 2011 16:33:14 +0100 Message-ID: <1296055994.28776.1229.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:48 +0530, Srikar Dronamraju wrote: > * Peter Zijlstra [2011-01-26 11:14:07]: > > > On Wed, 2011-01-26 at 14:15 +0530, Srikar Dronamraju wrote: > > > > > > > > > Okay, Will do, but Is there a reason for moving the fvalue out of the > > > uprobe_consumer? Except for reducing the size of the structure, I am > > > unable to see advantage. > > > > That's about it, and its the normal way to do such things in kernel > > space. > > But the disadvantage would be we wont be able to share the filter > functions. Currently i had one patch that implemented the common > filter functions that tracers could reuse. But you could still do that, just make then use something like: struct uprobe_simple_consumer { struct uprobe_consumer consumer; unsigned long value; };