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]

Accessing user-space global variables in timer.profile?


Hello!

I'm wondering if it is possible to get @var() working the in
timer.profile context, just like @cast().

I've tried using @var("var@file") in a timer.profile handler directly,
but getting the error

    Bad $context variable being substituted with literal 0

Maybe we can specify the path to the executable file as a second
argument to @var(), just as in @cast()?

IMHO, it is very useful if we can get access to user-space global
variables of a particular running process in timer.profile when pid()
returns the expected pid.

Could anyone help me here? Thanks in advance!

Best regards,
-agentzh


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