* module (kernel) debugging
@ 2002-03-21 22:15 Hari Gadi
2002-03-21 22:58 ` Alan Cox
2002-03-22 0:08 ` William Lee Irwin III
0 siblings, 2 replies; 13+ messages in thread
From: Hari Gadi @ 2002-03-21 22:15 UTC (permalink / raw)
To: linux-kernel
Hi,
I am new to kernel level development. What are the best ways to debug runtime kernel (module).
Are there any third party tools for debugging the kernel.
thanks,
Hari.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: module (kernel) debugging
2002-03-21 22:15 module (kernel) debugging Hari Gadi
@ 2002-03-21 22:58 ` Alan Cox
2002-03-21 23:30 ` Jeff V. Merkey
2002-03-21 23:46 ` Olaf Dietsche
2002-03-22 0:08 ` William Lee Irwin III
1 sibling, 2 replies; 13+ messages in thread
From: Alan Cox @ 2002-03-21 22:58 UTC (permalink / raw)
To: Hari Gadi; +Cc: linux-kernel
> I am new to kernel level development. What are the best ways to debug runtime
> kernel (module).
Your brain 8)
> Are there any third party tools for debugging the kernel.
Several
kgdb - debug the kernel with gdb from another PC
kdb - patch for in kernel debugger
UML - user mode linux (good for fs not so good for driver
work)
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: module (kernel) debugging
2002-03-21 23:30 ` Jeff V. Merkey
@ 2002-03-21 23:29 ` Christoph Hellwig
2002-03-22 0:33 ` Jeff V. Merkey
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Christoph Hellwig @ 2002-03-21 23:29 UTC (permalink / raw)
To: Jeff V. Merkey; +Cc: Alan Cox, Hari Gadi, linux-kernel
On Thu, Mar 21, 2002 at 04:30:15PM -0700, Jeff V. Merkey wrote:
>
> One more:
>
> MDB - source level kernel debugger.
Where?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: module (kernel) debugging
2002-03-21 22:58 ` Alan Cox
@ 2002-03-21 23:30 ` Jeff V. Merkey
2002-03-21 23:29 ` Christoph Hellwig
2002-03-21 23:46 ` Olaf Dietsche
1 sibling, 1 reply; 13+ messages in thread
From: Jeff V. Merkey @ 2002-03-21 23:30 UTC (permalink / raw)
To: Alan Cox; +Cc: Hari Gadi, linux-kernel
One more:
MDB - source level kernel debugger.
:-)
Jeff
On Thu, Mar 21, 2002 at 10:58:26PM +0000, Alan Cox wrote:
> > I am new to kernel level development. What are the best ways to debug runtime
> > kernel (module).
>
> Your brain 8)
>
> > Are there any third party tools for debugging the kernel.
>
> Several
>
> kgdb - debug the kernel with gdb from another PC
> kdb - patch for in kernel debugger
> UML - user mode linux (good for fs not so good for driver
> work)
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: module (kernel) debugging
2002-03-21 22:58 ` Alan Cox
2002-03-21 23:30 ` Jeff V. Merkey
@ 2002-03-21 23:46 ` Olaf Dietsche
1 sibling, 0 replies; 13+ messages in thread
From: Olaf Dietsche @ 2002-03-21 23:46 UTC (permalink / raw)
To: Hari Gadi; +Cc: Alan Cox, linux-kernel
Alan Cox <alan@lxorguk.ukuu.org.uk> writes:
>> I am new to kernel level development. What are the best ways to debug runtime
>> kernel (module).
>
> Your brain 8)
I can confirm this :-).
>> Are there any third party tools for debugging the kernel.
A _first_ party tool, which comes to my mind is:
printk(KERN_DEBUG "whatever\n");
The advantage with printk() is, others can test and debug your module
as well and report results to you.
Regards, Olaf.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: module (kernel) debugging
2002-03-21 22:15 module (kernel) debugging Hari Gadi
2002-03-21 22:58 ` Alan Cox
@ 2002-03-22 0:08 ` William Lee Irwin III
2002-03-22 6:36 ` Amit S. Kale
1 sibling, 1 reply; 13+ messages in thread
From: William Lee Irwin III @ 2002-03-22 0:08 UTC (permalink / raw)
To: Hari Gadi; +Cc: linux-kernel
On Thu, Mar 21, 2002 at 05:15:48PM -0500, Hari Gadi wrote:
> Hi,
> I am new to kernel level development. What are the best ways to debug
> runtime kernel (module). Are there any third party tools for debugging
> the kernel.
http://www.arium.com
http://oss.sgi.com/projects/kdb
http://oss.sgi.com/projects/kgdb
http://lkcd.sourceforge.net
http://bochs.sourceforge.net
... and other simulators with debugging support.
Cheers,
Bill
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: module (kernel) debugging
2002-03-21 23:29 ` Christoph Hellwig
@ 2002-03-22 0:33 ` Jeff V. Merkey
2002-03-22 0:33 ` Jeff V. Merkey
2002-03-22 0:40 ` Jeff V. Merkey
2 siblings, 0 replies; 13+ messages in thread
From: Jeff V. Merkey @ 2002-03-22 0:33 UTC (permalink / raw)
To: Christoph Hellwig, Alan Cox, Hari Gadi, linux-kernel
On Thu, Mar 21, 2002 at 11:29:55PM +0000, Christoph Hellwig wrote:
> On Thu, Mar 21, 2002 at 04:30:15PM -0700, Jeff V. Merkey wrote:
> >
> > One more:
> >
> > MDB - source level kernel debugger.
>
> Where?
www.kdebug.com. They are still setting up the website and docs. I
completed the debugger a few weeks ago. I have been working on
it for several months now. If you want a copy to play
with, I can send after I ask permission. I do not own it and was
hired to write it as a work for hire, so it's not open source, it's
a commercial product for Linux.
:-)
Jeff
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: module (kernel) debugging
2002-03-21 23:29 ` Christoph Hellwig
2002-03-22 0:33 ` Jeff V. Merkey
@ 2002-03-22 0:33 ` Jeff V. Merkey
2002-03-22 0:40 ` Jeff V. Merkey
2 siblings, 0 replies; 13+ messages in thread
From: Jeff V. Merkey @ 2002-03-22 0:33 UTC (permalink / raw)
To: Christoph Hellwig, Alan Cox, Hari Gadi, linux-kernel
On Thu, Mar 21, 2002 at 11:29:55PM +0000, Christoph Hellwig wrote:
> On Thu, Mar 21, 2002 at 04:30:15PM -0700, Jeff V. Merkey wrote:
> >
> > One more:
> >
> > MDB - source level kernel debugger.
>
> Where?
www.kdebug.com. They are still setting up the website and docs. I
completed the debugger a few weeks ago. I have been working on
it for several months now. If you want a copy to play
with, I can send after I ask permission. I do not own it and was
hired to write it as a work for hire, so it's not open source, it's
a commercial product for Linux.
:-)
Jeff
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: module (kernel) debugging
2002-03-21 23:29 ` Christoph Hellwig
2002-03-22 0:33 ` Jeff V. Merkey
2002-03-22 0:33 ` Jeff V. Merkey
@ 2002-03-22 0:40 ` Jeff V. Merkey
2 siblings, 0 replies; 13+ messages in thread
From: Jeff V. Merkey @ 2002-03-22 0:40 UTC (permalink / raw)
To: Christoph Hellwig, Alan Cox, Hari Gadi, linux-kernel
On Thu, Mar 21, 2002 at 11:29:55PM +0000, Christoph Hellwig wrote:
> On Thu, Mar 21, 2002 at 04:30:15PM -0700, Jeff V. Merkey wrote:
> >
> > One more:
> >
> > MDB - source level kernel debugger.
>
> Where?
www.kdebug.com. They are still putting up the website and docs,
but it should go up soon. It was written as a work for hire. I do
not own it, but I did write it. I was hired to write it and
have been working on it for several months. It's commercial
quality kernel debugger for Linux.
I will ask them when they will have the site up. From what I
understand, they will be distributing the base version from
the website at no charge, and charging for the SLD extensions.
:-)
Jeff
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: module (kernel) debugging
[not found] ` <E16oBVq-0006Z6-00@the-village.bc.nu.suse.lists.linux.kernel>
@ 2002-03-22 1:26 ` Andi Kleen
0 siblings, 0 replies; 13+ messages in thread
From: Andi Kleen @ 2002-03-22 1:26 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-kernel, HGadi
Alan Cox <alan@lxorguk.ukuu.org.uk> writes:
>
> kgdb - debug the kernel with gdb from another PC
> kdb - patch for in kernel debugger
> UML - user mode linux (good for fs not so good for driver
> work)
pice - Private Ice. Source level debugger for modules,
doesn't need a kernel patch and works with a single
machine. 2.2/UP only at the
moment, but can be ported to 2.4. Loosely similar to
Softice on Windows.
-Andi
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: module (kernel) debugging
2002-03-22 0:08 ` William Lee Irwin III
@ 2002-03-22 6:36 ` Amit S. Kale
2002-03-22 6:54 ` Andrew Morton
0 siblings, 1 reply; 13+ messages in thread
From: Amit S. Kale @ 2002-03-22 6:36 UTC (permalink / raw)
To: William Lee Irwin III; +Cc: Hari Gadi, linux-kernel
William Lee Irwin III wrote:
>
> On Thu, Mar 21, 2002 at 05:15:48PM -0500, Hari Gadi wrote:
> > Hi,
> > I am new to kernel level development. What are the best ways to debug
> > runtime kernel (module). Are there any third party tools for debugging
> > the kernel.
>
> http://www.arium.com
> http://oss.sgi.com/projects/kdb
> http://oss.sgi.com/projects/kgdb
SGI's kgdb is for 2.2 kernels only.
kgdb for 2.4 kernels resides at http://kgdb.sourceforge.net/
You'll find there scripts for debugging modules with kgdb.
> http://lkcd.sourceforge.net
> http://bochs.sourceforge.net
>
> ... and other simulators with debugging support.
>
> Cheers,
> Bill
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
Amit Kale
Veritas Software India ( http://www.veritasindia.com/ )
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: module (kernel) debugging
2002-03-22 6:36 ` Amit S. Kale
@ 2002-03-22 6:54 ` Andrew Morton
0 siblings, 0 replies; 13+ messages in thread
From: Andrew Morton @ 2002-03-22 6:54 UTC (permalink / raw)
To: Amit S. Kale; +Cc: William Lee Irwin III, Hari Gadi, linux-kernel
"Amit S. Kale" wrote:
>
> William Lee Irwin III wrote:
> >
> > On Thu, Mar 21, 2002 at 05:15:48PM -0500, Hari Gadi wrote:
> > > Hi,
> > > I am new to kernel level development. What are the best ways to debug
> > > runtime kernel (module). Are there any third party tools for debugging
> > > the kernel.
> >
> > http://www.arium.com
> > http://oss.sgi.com/projects/kdb
> > http://oss.sgi.com/projects/kgdb
>
> SGI's kgdb is for 2.2 kernels only.
> kgdb for 2.4 kernels resides at http://kgdb.sourceforge.net/
> You'll find there scripts for debugging modules with kgdb.
>
I have 2.5 kgdb stub patches too. Various versions can be discovered
by poking around in http://www.zip.com.au/~akpm/linux/patches/
The version I use is a bit thinner than Amit's - I took out the
assertion checks from various places because they cause patching pain.
The assertion mechanism is still there, but the *uses* of it I took
out.
Of course, I may not be feature- or bugfix-current against Amit's
version.
-
^ permalink raw reply [flat|nested] 13+ messages in thread
* module (kernel) debugging
@ 2002-03-25 6:48 Rick A. Hohensee
0 siblings, 0 replies; 13+ messages in thread
From: Rick A. Hohensee @ 2002-03-25 6:48 UTC (permalink / raw)
To: linux-kernel
Hohensee's 3-ring Linux
Linux with a 3-stack Forth-like interpreter in kernelspace on vt 1.
That and a System.map is HOURS of fun.
ftp://linux01.gwdg.de/pub/cLIeNUX/interim/ABOUT
Rick Hohenseea
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2002-03-25 6:48 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-21 22:15 module (kernel) debugging Hari Gadi
2002-03-21 22:58 ` Alan Cox
2002-03-21 23:30 ` Jeff V. Merkey
2002-03-21 23:29 ` Christoph Hellwig
2002-03-22 0:33 ` Jeff V. Merkey
2002-03-22 0:33 ` Jeff V. Merkey
2002-03-22 0:40 ` Jeff V. Merkey
2002-03-21 23:46 ` Olaf Dietsche
2002-03-22 0:08 ` William Lee Irwin III
2002-03-22 6:36 ` Amit S. Kale
2002-03-22 6:54 ` Andrew Morton
[not found] <AF2378CBE7016247BC0FD5261F1EEB210B6A93@EXCHANGE01.domain.ecutel.com.suse.lists.linux.kernel>
[not found] ` <E16oBVq-0006Z6-00@the-village.bc.nu.suse.lists.linux.kernel>
2002-03-22 1:26 ` Andi Kleen
-- strict thread matches above, loose matches on Subject: below --
2002-03-25 6:48 Rick A. Hohensee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox