Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753763Ab1DULem (ORCPT ); Thu, 21 Apr 2011 07:34:42 -0400 Received: from casper.infradead.org ([85.118.1.10]:58945 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750891Ab1DULel (ORCPT ); Thu, 21 Apr 2011 07:34:41 -0400 Subject: Re: [PATCH v3 2.6.39-rc1-tip 18/26] 18: uprobes: commonly used filters. From: Peter Zijlstra To: Srikar Dronamraju 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 In-Reply-To: <20110421110911.GE10698@linux.vnet.ibm.com> References: <20110401143223.15455.19844.sendpatchset@localhost6.localdomain6> <20110401143602.15455.82211.sendpatchset@localhost6.localdomain6> <1303221477.8345.6.camel@twins> <20110421110911.GE10698@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" Date: Thu, 21 Apr 2011 13:37:15 +0200 Message-ID: <1303385835.2035.75.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 778 Lines: 19 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.. -- 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/