Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752424Ab1DUMDx (ORCPT ); Thu, 21 Apr 2011 08:03:53 -0400 Received: from e1.ny.us.ibm.com ([32.97.182.141]:53552 "EHLO e1.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751321Ab1DUMDw (ORCPT ); Thu, 21 Apr 2011 08:03:52 -0400 Date: Thu, 21 Apr 2011 17:19:36 +0530 From: Srikar Dronamraju To: Peter Zijlstra Cc: Ingo Molnar , Steven Rostedt , Linux-mm , Arnaldo Carvalho de Melo , Linus Torvalds , Jonathan Corbet , Christoph Hellwig , Masami Hiramatsu , Thomas Gleixner , Ananth N Mavinakayanahalli , Oleg Nesterov , Andrew Morton , SystemTap , Jim Keniston , Roland McGrath , Andi Kleen , LKML Subject: Re: [PATCH v3 2.6.39-rc1-tip 18/26] 18: uprobes: commonly used filters. Message-ID: <20110421114936.GF10698@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <20110401143223.15455.19844.sendpatchset@localhost6.localdomain6> <20110401143602.15455.82211.sendpatchset@localhost6.localdomain6> <1303221477.8345.6.camel@twins> <20110421110911.GE10698@linux.vnet.ibm.com> <1303385835.2035.75.camel@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1303385835.2035.75.camel@laptop> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 939 Lines: 27 * Peter Zijlstra [2011-04-21 13:37:15]: > On Thu, 2011-04-21 at 16:39 +0530, Srikar Dronamraju wrote: > > > What you want is to save the pid-namespace of the task creating the > > > filter in your uprobe_simple_consumer and use that to obtain the task's > > > pid for matching with the provided number. > > > > > > > Okay, will do by adding the pid-namespace of the task creating the > > filter in the uprobe_simple_consumer. > > Maybe you could convert to the global pid namespace on construction and > always use that for comparison. > > That would avoid the namespace muck on comparison.. > Yeah, this idea also seems feasible. -- Thanks and Regards Srikar -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/