* [Xenomai-help] Debug kernel module tasks
@ 2007-04-14 5:42 Andreas Erler
2007-04-14 6:46 ` Jan Kiszka
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Erler @ 2007-04-14 5:42 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 307 bytes --]
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?
Thanks in Advance
Andy
[-- Attachment #2: Type: text/html, Size: 566 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Xenomai-help] Debug kernel module tasks
2007-04-14 5:42 [Xenomai-help] Debug kernel module tasks Andreas Erler
@ 2007-04-14 6:46 ` Jan Kiszka
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2007-04-14 6:46 UTC (permalink / raw)
To: Andreas Erler; +Cc: xenomai
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-14 6:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-14 5:42 [Xenomai-help] Debug kernel module tasks Andreas Erler
2007-04-14 6:46 ` Jan Kiszka
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.