[Bug tapsets/9871] use @cast() instead of embedded-c whereever possible
Steve Dickson
SteveD@redhat.com
Mon Apr 12 12:47:00 GMT 2010
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.
More information about the Systemtap
mailing list