netdev
[Top] [All Lists]

Re: SO_DEBUG & trpt

To: Lee Boon Peng <leebp@xxxxxxxxxxxxxxx>
Subject: Re: SO_DEBUG & trpt
From: Andi Kleen <ak@xxxxxx>
Date: Thu, 9 Dec 1999 17:44:14 +0100
Cc: netdev@xxxxxxxxxxx
In-reply-to: <199912091619.AAA00764@xxxxxxxxxxxxxxxxxxxx>; from Lee Boon Peng on Thu, Dec 09, 1999 at 05:19:48PM +0100
References: <199912091619.AAA00764@xxxxxxxxxxxxxxxxxxxx>
Sender: owner-netdev@xxxxxxxxxxx
On Thu, Dec 09, 1999 at 05:19:48PM +0100, Lee Boon Peng wrote:
> Hi there,
> 
>       How would I make use of the socket SO_DEBUG option? There seems
> to be no trpt command equivalent to get add the debugging information.
> 
>       I would be grateful for any pointers. I couldn't get any help
> from the Usenet groups, so I'm turning here for some guru info.

SO_DEBUG enables various unsystematic debugging printks that are output
into the kernel log (readable via dmesg).  They may or may not be helpful
in diagnosing anything.

It is only active when the kernel was compiled with SOCK_DEBUGGING. 
This is generally true for 2.3 kernels, but not for stable 2.2/2.0 kernels. 
You can enable it by enabling the SOCK_DEBUGGING macro in include/net/sock.h 
and recompiling.  If you want TCP state traces you also need to enable 
STATE_TRACE in include/net/tcp.h.


-Andi

-- 
This is like TV. I don't like TV.

<Prev in Thread] Current Thread [Next in Thread>