This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Why does $$parms show value as "?"
- From: Josh Stone <jistone at redhat dot com>
- To: Grant Edwards <grant dot b dot edwards at gmail dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: Thu, 25 Aug 2011 10:30:35 -0700
- Subject: Re: Why does $$parms show value as "?"
- References: <j35vvd$h7r$1@dough.gmane.org>
On 08/25/2011 10:15 AM, Grant Edwards wrote:
>[...]
> skb=?
> skb=?
> ^Csystemtap end
> #
>
> Why isn't systemtap printing the value of the parameter "skb"?
This means that the debuginfo has defined this parameter, but we're
unable to access it for some reason, most likely because gcc didn't
output location information in the debuginfo. The variable may not even
exist at that point anymore due to optimization. That function is so
short that it quite likely has been inlined into its callers.
> The module in question is built "out of tree" and then installed in
> /lib/modules/VERSION/misc, and according to "file" it's not stripped.
Since this is out of tree, you could try building the module without
optimization, and that should keep all variables around for your
perusal. Or it may be enough just to mark that function noinline.
Josh