This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Accessing user-space global variables in timer.profile?
- From: agentzh <agentzh at gmail dot com>
- To: Josh Stone <jistone at redhat dot com>
- Cc: David Smith <dsmith at redhat dot com>, systemtap at sourceware dot org
- Date: Fri, 7 Jun 2013 18:23:15 -0500
- Subject: Re: Accessing user-space global variables in timer.profile?
- References: <CAB4Tn6OYi=Vx19H4BLojphuuvjSp2drjvJFd3HxzAGj7=yD5cA at mail dot gmail dot com> <51755D3D dot 6020004 at redhat dot com> <CAB4Tn6OubWF71F9b3hNqXo85h96sr1Rp77-NmZAjmLPt=vAzyA at mail dot gmail dot com> <5175E28B dot 9050500 at redhat dot com> <CAB4Tn6ORHjkv+CuAN90Ju+gKEohSyNvpdvoq-fEsEEdUgAzjgg at mail dot gmail dot com> <CAB4Tn6OrHSPKiuvbuPLQ-TiROzJ2fYWJ8WK5yTrGktypPeBqGQ at mail dot gmail dot com> <51AD246B dot 3060402 at redhat dot com>
Hello Josh!
On Mon, Jun 3, 2013 at 6:19 PM, Josh Stone wrote:
> Very cool!
Glad you like it :)
> In fact, if we can tease the script portions of this away
> from perl-generation, it would be great to make an example script out of
> this. Hey, I'm sure if you're probing perl, then you're perfectly
> comfortable writing perl to drive stap, but we need to be kinder in the
> examples we present. :)
>
Fair enough :)
> If I read it correctly, the dynamic pieces of this script are mostly
> just to avoid repeating yourself - is that right? I think with a
> parameter for $perl_path, you can do the rest with macros. Maybe a
> second parameter for the $minor_version variations.
>
Yes, that's correct.
> I certainly won't force you to change, but it would make a nice in-tree
> showcase for @var-module support. :)
I'm glad to maintain a perl-free in-tree version of this tool. I can
make it into a separate patch if you'd accept it :)
Thanks!
-agentzh