From owner-freebsd-hackers Thu Feb 2 02:59:14 1995 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id CAA00196 for hackers-outgoing; Thu, 2 Feb 1995 02:59:14 -0800 Received: from utrhcs.cs.utwente.nl (utrhcs.cs.utwente.nl [130.89.10.247]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id CAA00190 for ; Thu, 2 Feb 1995 02:59:09 -0800 Received: from utis156.cs.utwente.nl by utrhcs.cs.utwente.nl (5.0/csrelayMX-SVR4_1.0/RB) id AA21769; Thu, 2 Feb 1995 10:36:52 --100 Received: by utis156.cs.utwente.nl (4.1/RBCS-1.0.1) id AA00850; Thu, 2 Feb 95 10:36:44 +0100 To: hackers@FreeBSD.org Subject: Debugging networking code Date: Thu, 02 Feb 1995 10:36:43 +0100 Message-Id: <849.791717803@utis156.cs.utwente.nl> From: Andras Olah content-length: 0 Sender: hackers-owner@FreeBSD.org Precedence: bulk Currently, the only way to get debugging info from TCP is through the tcp_debug routine which generates volumnious output on the console. I've got two problems with this: (1) I can't select what I want to see (2) it slows down things considerably, so it's difficult to test dynamic behavior. I'd like to improve this situation and I'm asking for comments. I thought of the following scheme: - during debugging I can compile in some probes which save state information to an internal structure; these probes should generate the minimal possible overhead - there would an interface (probably a la bpf?) to get and save the info generated by the probes if someone is interested; and then this data could be post processed. I'd appreciate comments on how this can be done (if it makes sense at all). I'd like to have this facility and there's a student here who is willing to work on it. Andras