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: [Bug tapsets/9871] use @cast() instead of embedded-c whereever possible


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.


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