[Bug tapsets/4901] New: tcp_sendmsg arguments changed in 2.6.23-rc2
wcohen at redhat dot com
sourceware-bugzilla@sourceware.org
Mon Aug 6 20:26:00 GMT 2007
In older versions of the kernel (2.6.23-rc1 and older) the
net/ipv4/tcp.c:tcp_sendmsg() has the following arguments.
int tcp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
size_t size)
In 2.6.23-rc2 have:
int tcp_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg,
size_t size)
{
struct sock *sk = sock->sk;
The tcp.stp tapset expects sk to be a parameter:
probe tcp.sendmsg = kernel.function("tcp_sendmsg") {
sock = $sk
size = $size
}
When compiling the tcptests.stp get the following:
$ ../../install/bin/stap ../../src/testsuite/systemtap.samples/tcptest.stp
semantic error: not accessible at this address: identifier '$sk' at
/home/wcohen/stap_snap_200708051415/install/share/systemtap/tapset/tcp.stp:124:12
Pass 2: analysis failed. Try again with more '-v' (verbose) options.
--
Summary: tcp_sendmsg arguments changed in 2.6.23-rc2
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: tapsets
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: wcohen at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=4901
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Systemtap
mailing list