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]

[Bug tapsets/4901] New: tcp_sendmsg arguments changed in 2.6.23-rc2


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.


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