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: Accessing user-space global variables in timer.profile?


Hello!

On Mon, Apr 22, 2013 at 6:23 PM, Josh Stone wrote:
>
> So we'll need a @var which at least hints which module holds it, as
> described in http://sourceware.org/bugzilla/show_bug.cgi?id=11096#c5
>
> That's talking about functions, but timer.profile is similarly context-free.
>

Yes! This is exactly what I'm looking for :)

> Once we have @var-module support internally, then we can also play games
> with defaulting the module, using the target object for most process.*
> probes (as @var does now), but perhaps using the -c CMD executable for
> @var used in functions and context-free probes.
>

I'm fine with explicitly specifying the module name in @var() since
I'm generating the stap script on-the-fly with Perl. But this is
feature is a good plus anyway :)

> Hope that makes sense.  So it's something feasible, I think, but we
> can't do it just yet.
>

Good to know it is doable :)

Thanks!
-agentzh


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