From: Maxim Levitsky <maximlevitsky@gmail.com>
To: Jason Wessel <jason.wessel@windriver.com>
Cc: Jun Koi <junkoi2004@gmail.com>,
linux-kernel@vger.kernel.org, Bernhard Kaindl <bk@suse.de>,
KGDB Mailing List <kgdb-bugreport@lists.sourceforge.net>
Subject: Re: Firewire debugging tools - firedump & fireproxy?
Date: Fri, 31 Jul 2009 07:55:17 +0300 [thread overview]
Message-ID: <1249016117.19210.2.camel@maxim-laptop> (raw)
In-Reply-To: <4A720C5D.5090701@windriver.com>
On Thu, 2009-07-30 at 16:10 -0500, Jason Wessel wrote:
> Maxim Levitsky wrote:
> > On Thu, 2009-07-30 at 03:31 -0500, Jason Wessel wrote:
> >>
> >> 3) Develop a low level dedicated ethernet debug interface. If you have
> >> more than one ethernet, or an ethernet device that has multiple hardware
> >> queues, it is plausible to have a dedicated way to talk to a device
> >> which has no restrictions on getting preempted, or used by another part
> >> of the kernel. This lends itself to an ideal medium for kgdb
> >> communications.
>
> > Or, even better, to make in possible to switch between a normal, and
> > exclusive mode? Maybe this cab be done without (or with slight)
> > modifications to network drivers. Why not to make kgdb own the
> > network device (use it exclusively), but use same interfaces as
> > regular kernel does?
>
> The key problem is how such a switch is governed between normal and
> exclusive mode works. If it involves locks kgdboe is not going to
> work reliably from the exception context.
I mean the switch should happen just once, when kgdboe is loaded, and
back when unloaded.
>
> Having kgdboe directly own an interface and use the same kernel API as
> the network stack won't work out of the box because there is probing,
> interrupt control and lots of other tidbits. This is a case where the
> polling API needs some work or a dedicated API is needed, because this
> is a case where you really don't want the whole network stack
> involved. IE it would be nice to be able to debug the networking
> stack with kgdboe.
Sure, but I feel that doing any significant changes to _all_ ethernet
drivers is a huge job.
>
> Patches which implement new functionality, ideas and discussion about
> any aspect of kernel debugging are always welcome on the kgdb mailing
> list. :-)
Best regards,
Maxim Levitsky
>
> Cheers,
> Jason.
>
next prev parent reply other threads:[~2009-07-31 5:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-05 5:42 Firewire debugging tools - firedump & fireproxy? Jun Koi
2009-07-30 5:36 ` Maxim Levitsky
2009-07-30 7:01 ` Jun Koi
2009-07-30 8:31 ` Jason Wessel
2009-07-30 20:57 ` Maxim Levitsky
2009-07-30 21:10 ` Jason Wessel
2009-07-31 4:55 ` Maxim Levitsky [this message]
2009-07-30 9:43 ` Andi Kleen
2009-07-30 15:37 ` Maxim Levitsky
2009-07-30 15:49 ` 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=1249016117.19210.2.camel@maxim-laptop \
--to=maximlevitsky@gmail.com \
--cc=bk@suse.de \
--cc=jason.wessel@windriver.com \
--cc=junkoi2004@gmail.com \
--cc=kgdb-bugreport@lists.sourceforge.net \
--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