This is the mail archive of the
mailing list for the systemtap project.
Re: Tcp tapping
- From: Ivan Novick <inovick at greenplum dot com>
- To: William Cohen <wcohen at redhat dot com>
- Cc: "systemtap at sourceware dot org" <systemtap at sourceware dot org>, Tim Heath <theath at greenplum dot com>
- Date: Wed, 19 May 2010 12:26:51 -0700
- Subject: Re: Tcp tapping
On 5/14/10 12:44 PM, "William Cohen" <firstname.lastname@example.org> wrote:
> These are very useful locating things in the kernel.You can look to see what
> sk_stream_wait_memory() and the conditions that trigger those calls.
> In linux 2.6.33 you can see that the call to sk_stream_wait_memory() occurs in
> net/ipv4/tcp.c in a couple places:
> Then you should be able to find which elements of the struct sock hold the
> information triggering the sk_stream_wait_memory().
Cool, I got this working to print out the size of the send and the size of
the kernel socket buffer and how much is queued.
Does anyone have any idea where in the code to try and print out TCP
receives (the size of the buffer and how much data is in the buffer)? The
idea is to visualize the receive buffer as it gets full and is emptied out.