Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761783AbYGODFe (ORCPT ); Mon, 14 Jul 2008 23:05:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755620AbYGODFL (ORCPT ); Mon, 14 Jul 2008 23:05:11 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.123]:41283 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753991AbYGODFJ (ORCPT ); Mon, 14 Jul 2008 23:05:09 -0400 Date: Mon, 14 Jul 2008 23:05:08 -0400 (EDT) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: "Eric W. Biederman" cc: Andrew Morton , Randy Dunlap , Elias Oltmanns , LKML , Ingo Molnar , Thomas Gleixner , Peter Zijlstra , Clark Williams , Linus Torvalds , Jon Masters Subject: Re: [PATCH -v2] ftrace: Documentation In-Reply-To: Message-ID: References: <87zlop7bp6.fsf@denkblock.local> <20080710132832.38cc5048.randy.dunlap@oracle.com> <20080711121655.05810822.akpm@linux-foundation.org> <20080711153740.b86acadd.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1298 Lines: 33 On Mon, 14 Jul 2008, Eric W. Biederman wrote: > > All of the interesting functions are inline so it shouldn't be a big deal. > Mostly they exist to keep the semantics clear as we refactor the code. > task_pid_nr(tsk) yields the global pid number, and is currently implemented as just tsk->pid. > task_pid(tsk) yields the struct pid. > > task_pid_nr_ns(tsk) yields the pid number from the perspective of a specific > task. > > struct pid is interesting because it is immune from pid roll over conflicts. > I don't know if that is any use to you or not. > > stuct pid contains an embedded array of the pid_nrs one for each namespace the > struct pid is in. Is there documentation around to let me know the proper way to use the pid namespace API? I think ftrace should be updated before 2.6.27 is released, to use the pid namespaces. There's some other clean ups I need to do. Note: I'll be traveling from Weds through to the 28th. I need to write up my tutorial for OLS on ftrace and will not be doing many patches for the next two weeks. -- Steve -- 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/