This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Accessing user-space global variables in timer.profile?
- From: agentzh <agentzh at gmail dot com>
- To: systemtap at sourceware dot org
- Date: Wed, 17 Apr 2013 17:55:29 -0700
- Subject: 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