Bug 10115 - Regression with inet_sock @cast from 0.9 to 0.9.7 on 2.6.9 kernel
Summary: Regression with inet_sock @cast from 0.9 to 0.9.7 on 2.6.9 kernel
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: tapsets (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-29 16:38 UTC by Malte Nuhn
Modified: 2010-04-17 15:28 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Malte Nuhn 2009-04-29 16:38:15 UTC
I have some problems with the 0.9.7 Version of Systemtap.
Scripts than run with 0.9 don't run anymore on 0.9.7.

I think it affects the "@cast" stuff, in my example this affects "inet_sock.stp"

Changing:
daddr = @cast(sock, "inet_sock", "kernel")->inet->daddr;

To:
daddr = @cast(sock, "inet_sock", "kernel<linux/ip.h>")->inet->daddr;

Fixes the problem.

I have a 2.6.9 Kernel.
Comment 1 David Smith 2009-11-18 19:21:38 UTC
It is possible that the fix for bug #9932 modified the behavior of '@cast' a
bit, causing this problem.

Your patch looks reasonable.  Is this the only example of this problem or are
there others?
Comment 2 Frank Ch. Eigler 2010-04-17 15:28:19 UTC
Believed fixed.  Other @casts() in the tapsets may benefit
from explicit kernel<FOO.h> decorations to decouple more
from debug data.