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: [HELP] could't get the global static var using @var


=?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


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