This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: context.stp - read session ID - function sid()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]