This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [Bug tapsets/9871] use @cast() instead of embedded-c whereever possible
- From: Steve Dickson <SteveD at redhat dot com>
- To: systemtap at sources dot redhat dot com
- Date: Mon, 12 Apr 2010 08:47:05 -0400
- Subject: Re: [Bug tapsets/9871] use @cast() instead of embedded-c whereever possible
- References: <20090219182252.9871.fche@redhat.com> <20100407144412.26177.qmail@sourceware.org>
Hello,
On 04/07/2010 10:44 AM, dsmith at redhat dot com wrote:
> ------- Additional Comments From dsmith at redhat dot com 2010-04-07 14:44 -------
> Commit 7dfee5e removes all embedded-C in rpc.stp.
>
About this commit... It seems to have broken the rpc.stp probe
on a 2.6.32 kernel... I'm currently in the process of fixing things,
but I've run across an compilation error that has me stumped.
The compile error is:
stap_22691.c:5944: error: 'union <anonymous>' has no member named 'function_vers_from_prog'
The C code line in questions is:
c->locals[c->nesting+1].function_vers_from_prog.program = l->__tmp12;
The function looks like:
function vers_from_prog:long(program:long, vers:long)
{
if (program
&& vers < @cast(program, "rpc_program", "kernel:sunrpc")->nrvers)
return 0
return @cast(program, "rpc_program", "kernel:sunrpc")->version[vers]->number
}
The systemtap version is 1.2-1
any ideas?
steved.