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: David Smith <dsmith at redhat dot com>
- To: Steve Dickson <SteveD at redhat dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: Thu, 22 Apr 2010 08:41:21 -0500
- Subject: Re: [Bug tapsets/9871] use @cast() instead of embedded-c whereever possible
- References: <20090219182252.9871.fche@redhat.com> <20100407144412.26177.qmail@sourceware.org> <4BC31649.4040600@RedHat.com>
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)