From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Molnar Subject: Re: [PATCH 1/5] ftrace: add function tracing to single thread Date: Wed, 26 Nov 2008 07:54:25 +0100 Message-ID: <20081126065425.GA26036@elte.hu> References: <20081126051622.134970943@goodmis.org> <20081126051709.571204072@goodmis.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: "Eric W. Biederman" Cc: Steven Rostedt , linux-kernel@vger.kernel.org, Andrew Morton , Frederic Weisbecker , containers@lists.osdl.org, Sukadev Bhattiprolu , "Serge E. Hallyn" , Steven Rostedt List-Id: containers.vger.kernel.org * Eric W. Biederman wrote: > > +/* ftrace_pid_trace >= 0 will only trace threads with this pid */ > > +static int ftrace_pid_trace = -1; > > Why not? > static struct pid *ftrace_pid_trace = NULL; ok, looks reasonably simple at first sight. Steve, mind sending the conversion of this facility to struct pid as a delta patch? (that would have education purposes as well, for similar situations) Ingo