public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Mosberger-Tang <David.Mosberger@acm.org>
To: linux-kernel@vger.kernel.org
Subject: Re: lan based kgdb
Date: 15 Nov 2002 23:24:49 -0800	[thread overview]
Message-ID: <ugadkaase6.fsf@panda.mostang.com> (raw)
In-Reply-To: <ar4h11$g7n$1@penguin.transmeta.com>

>>>>> On Sat, 16 Nov 2002 05:30:05 +0100, torvalds@transmeta.com (Linus Torvalds) said:

  Linus> Yes, if you're comparing to a full TCP implementation, plain
  Linus> USB serial lines may be simpler (ignoring for the moment the
  Linus> fact that there isn't even a standard USB serial line
  Linus> protocol, and they may be going the same way as the hardware
  Linus> serial lines - the way of the dodo).

  Linus> But it should be possible to do a really simple
  Linus> UDP-packets-only thing for kgdb.  Sure, it may lose packets.
  Linus> Tough.  Don't debug over a WAN, and try to keep a clean
  Linus> direct network connection if you are worried about it.  But
  Linus> we want kernel printk's to be synchronous anyway, without
  Linus> timeouts etc.

  Linus> And I suspect you're better off losing packets (very rarely
  Linus> over any normal local network) if that means that your
  Linus> debugger needs only minimal support. You can always re-type.

I did this a couple of years ago for my research OS (Scout) and it
worked great.  It did UDP over Ethernet and was about 300 lines of
code.  Rather than using the normal UDP stack, the kernel gdb I/O ran
directly on top of the network driver to reduce the risk of getting
hit by a breakpoint that is in the way of the gdb I/O.  The code is
almost too trivial to mention, but for anyone interested, it can still
be found at:

	http://www.cs.arizona.edu/scout/software.html

The relevant files are scout/sys/ai/kgdb_net.c and
scout/router/tulip/tulip.c (the latter contains the Ethernet driver
portion).

	--david

PS: IIRC, the kgdb protocol has a simple checksumming protocol so it
    can deal with packet losses (perhaps not very gracefully, but on a
    LAN it's not going to be a problem anyhow).

  reply	other threads:[~2002-11-16  7:17 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-15 20:29 lan based kgdb Kallol Biswas
2002-11-15 20:38 ` William Lee Irwin III
2002-11-15 22:06 ` Martin J. Bligh
2002-11-15 21:26   ` Linus Torvalds
2002-11-15 21:46     ` Andrew Morton
2002-11-15 22:05     ` Kallol Biswas
2002-11-15 22:24     ` Stelian Pop
2002-11-15 22:47       ` Dmitri
2002-11-15 22:53         ` Stelian Pop
2002-11-17  5:45         ` M. R. Brown
2002-11-15 22:51       ` Andrew Morton
2002-11-15 22:59         ` Stelian Pop
2002-11-16 16:23           ` yodaiken
2002-11-16 17:21             ` Stelian Pop
2002-11-16 21:32               ` Nicholas Miell
2002-11-16  2:35         ` Alan Cox
2002-11-16 18:18           ` Oliver Xymoron
2002-11-16  4:19       ` Linus Torvalds
2002-11-16  7:24         ` David Mosberger-Tang [this message]
2002-11-16 17:58           ` Daniel Jacobowitz
2002-11-16 23:56           ` Alan Cox
2002-11-16 18:24         ` Oliver Xymoron
2002-11-16 18:33           ` Linus Torvalds
2002-11-16 19:04             ` Oliver Xymoron
2002-11-17  9:56             ` Jan-Benedict Glaw
2002-11-17 14:50               ` Alan Cox
2002-11-18  7:27                 ` Jan-Benedict Glaw
2002-11-19  8:49                 ` Amit S. Kale
2002-11-16 20:42         ` Werner Almesberger
2002-11-16 23:54         ` Alan Cox
2002-11-17  3:19           ` Linus Torvalds
2002-11-17  3:30             ` Larry McVoy
2002-11-17 19:42               ` Eric W. Biederman
2002-11-17 20:10                 ` Jamie Lokier
2002-11-17 20:31                   ` Eric W. Biederman
2002-11-17 20:25                 ` Brad Hards
2002-11-17 21:30                   ` Eric W. Biederman
2002-11-17 21:32                     ` David Lang
2002-11-17 21:48                       ` Brad Hards
2002-11-17 22:00                         ` David Lang
2002-11-17 23:48                           ` Eric W. Biederman
2002-11-17 21:42                     ` Brad Hards
2002-11-18  1:10                 ` Werner Almesberger
2002-11-18  7:20       ` Miles Bader
  -- strict thread matches above, loose matches on Subject: below --
2002-11-15 21:44 Edwin Bland
     [not found] <1037490849.24843.11.camel@irongate.swansea.linux.org.uk.suse.lists.linux.kernel>
     [not found] ` <20021116193008.C25741@work.bitmover.com.suse.lists.linux.kernel>
     [not found]   ` <m11y5k3ruw.fsf@frodo.biederman.org.suse.lists.linux.kernel>
     [not found]     ` <200211180725.27450.bhards@bigpond.net.au.suse.lists.linux.kernel>
     [not found]       ` <m1smxz3mw7.fsf@frodo.biederman.org.suse.lists.linux.kernel>
2002-11-17 23:52         ` Andi Kleen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ugadkaase6.fsf@panda.mostang.com \
    --to=david.mosberger@acm.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox