From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25042 invoked by alias); 11 May 2009 18:22:44 -0000 Received: (qmail 25035 invoked by uid 22791); 11 May 2009 18:22:43 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_73,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 May 2009 18:22:39 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n4BIMaBk020336 for ; Mon, 11 May 2009 14:22:37 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n4BIMaAC006534 for ; Mon, 11 May 2009 14:22:36 -0400 Received: from [10.14.51.66] (vpn-51-66.sfbay.redhat.com [10.14.51.66]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n4BIMZPn017229; Mon, 11 May 2009 14:22:35 -0400 Message-ID: <4A086CE1.8050107@redhat.com> Date: Mon, 11 May 2009 18:22:00 -0000 From: Josh Stone User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090324 Fedora/3.0-2.1.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2 MIME-Version: 1.0 To: Malte Nuhn CC: systemtap@sources.redhat.com Subject: Re: context.stp - read session ID - function sid() References: <4A044A00.8000600@physik.rwth-aachen.de> <4A0490C2.6060004@redhat.com> <4A081834.8080004@physik.rwth-aachen.de> In-Reply-To: <4A081834.8080004@physik.rwth-aachen.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2009-q2/txt/msg00551.txt.bz2 On 05/11/2009 05:21 AM, Malte Nuhn wrote: > I read about process namespaces @ http://lwn.net/Articles/259217/ > and I'm not quite sure, what one should do (even in general) with these. > Being exact, a call like "pid()" or "sid()" > is not "valid" anymore, since you need to specify the pid namespace. The > easiest thing to do is to always pull out the > virtual pid implicitly. But but then, the user should at least know that > systemtap chose the virtual one. > > What do you think about that? I think the best approach for SystemTap is to provide ids from the init namespace (with the *_nr variants), so they will still be globally unique. We can provide the virtual ids in separate calls, perhaps vpid(), vsid(), etc. Josh