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


Here's an update on this for the list.  From talking to Steve on irc,
after cleaning out his cache, this stopped happening.

On 04/12/2010 07:47 AM, Steve Dickson wrote:
> 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.


-- 
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)


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