From: Jan Kiszka <jan.kiszka@domain.hid>
To: Andreas Erler <Andreas.Erler@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Debug kernel module tasks
Date: Sat, 14 Apr 2007 08:46:09 +0200 [thread overview]
Message-ID: <462078B1.40503@domain.hid> (raw)
In-Reply-To: <OFE36E288D.87F8020A-ONC12572BD.001EE37D-C12572BD.001F648E@br-automation.com>
[-- Attachment #1: Type: text/plain, Size: 1065 bytes --]
Andreas Erler wrote:
> Hello all,
>
> I have got a problem in my pci driver module which is freezing my system
> completely.
> I don't even have a chance to see the last messages written with printk...
> So my question: is there any way to debug kernel module tasks like in
> RTLinux by connecting gdb over rtfifos?
For 2.6.16 and .17, I adapted kgdb to work with ipipe [1]. That means
you were able to attach gdb to your system via a serial nullmodem link.
Unfortunately, the kgbd development itself became unsteady again (it
stalled for more than half a year), so we have no recent vanilla kgdb
patches ATM. May change again in the future, but doesn't help right now.
What you can try meanwhile is to direct your console output to a serial
console and use ipipe_set_printk_sync(&rthal_root) to force synchronous
printk even for the Xenomai domain. Moreover, switch on debug support in
Xenomai, specifically CONFIG_XENO_OPT_DEBUG_RTDM and
CONFIG_XENO_OPT_WATCHDOG.
Jan
[1] http://download.gna.org/adeos/patches/v2.6/i386/kgdb/
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
prev parent reply other threads:[~2007-04-14 6:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-14 5:42 [Xenomai-help] Debug kernel module tasks Andreas Erler
2007-04-14 6:46 ` Jan Kiszka [this message]
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=462078B1.40503@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=Andreas.Erler@domain.hid \
--cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.