This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [HELP] could't get the global static var using @var
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: =?UTF-8?B?5Yav5Yqb?= <lifeng1519 at gmail dot com>
- Cc: systemtap at sourceware dot org
- Date: Mon, 08 Jul 2013 12:30:56 -0400
- Subject: Re: [HELP] could't get the global static var using @var
- References: <CAEK8JBC6QJRD9tD3vS+brpCesVEPM=G5SaE9NKDqqeue1RA6GA at mail dot gmail dot com>
=?UTF-8?B?5Yav5Yqb?= <lifeng1519@gmail.com> writes:
> [...]
> probe begin{
> p = @var("shrinker_list@mm/vmscan.c")
> print(travel_shrinker(p));
> }
Improvements in this facility were made very recently [1], though I
can't resolve this with git systemtap either for some reason. OTOH
this works:
probe begin {
println(@var("shrinker_list")$)
exit()
}
[1] http://sourceware.org/bugzilla/show_bug.cgi?id=11096
- FChE