This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: _stp_pid no longer there?
On Wed, 28 Mar 2007 10:48:36 -0400 Martin Hunt <hunt@redhat.com> wrote:
> On Wed, 2007-03-28 at 12:08 +0200, Sébastien Dugué wrote:
> > Hi all,
> >
> > I just discovered that the _stp_pid module parameter has just vanished
> > from runtime/transport/transport.c.
>
> Sorry, my fault. I removed the old code and did not check in a
> replacement yet. I'll get it in later today once I've tested on a few
> older kernels. Probably should get something in the testsuite too.
No problem.
>
> > What is supposed to replace it or how one is supposed to retreive staprun's
> > pid from within a script as it is used by tapsets?
>
> The stp_pid() function in context.stp should work like it used to.
>
How could it? it just references __stp_pid.
just try a:
stap -vv -p4 -e 'probe begin {printf("staprun pid %d\n", stp_pid())}'
Thanks,
Sébastien.