From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753231AbYKZALz (ORCPT ); Tue, 25 Nov 2008 19:11:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752360AbYKZALr (ORCPT ); Tue, 25 Nov 2008 19:11:47 -0500 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:38623 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752353AbYKZALq (ORCPT ); Tue, 25 Nov 2008 19:11:46 -0500 Date: Tue, 25 Nov 2008 19:11:44 -0500 (EST) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Andrew Morton cc: LKML , Ingo Molnar , fweisbec@gmail.com, srostedt@redhat.com, containers@lists.osdl.org Subject: Re: [PATCH 1/3] ftrace: add function tracing to single thread In-Reply-To: <20081125153104.ecdceed4.akpm@linux-foundation.org> Message-ID: References: <20081125223421.795046329@goodmis.org> <20081125223456.976670734@goodmis.org> <20081125144221.66eb99ad.akpm@linux-foundation.org> <20081125153104.ecdceed4.akpm@linux-foundation.org> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) 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 On Tue, 25 Nov 2008, Andrew Morton wrote: > On Tue, 25 Nov 2008 18:01:06 -0500 (EST) > Steven Rostedt wrote: > > > > > On Tue, 25 Nov 2008, Andrew Morton wrote: > > > > > On Tue, 25 Nov 2008 17:34:22 -0500 > > > Steven Rostedt wrote: > > > > > > > This patch adds the ability to function trace a single thread. > > > > The file: > > > > > > > > /debugfs/tracing/set_ftrace_pid > > > > > > > > contains the pid to trace. > > > > > > What happens if the same pid exists in two or more pid namespaces? > > > > I think we had this discussion before. > > Oh. What did we end up concluding? > > > It tests current->pid, would that > > be different among the name spaces? > > I think those are non-unique. containers@lists.osdl.org would have > better ideas.. Added list in CC. I think the end result was, if this file can only be changed by root, then we do not need to worry about namespaces. This file is a privileged file that can only be modified by root. If someday we decide to let non admin users touch this file, then we would need to care about this. This file may actually be modified in the future by users, so this may become an issue. -- Steve