Re: trace kernel function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Dec 12, 2004 at 22:36:25 +0530, Shourya P. Bhattacharya wrote:
> On Sun, 12 Dec 2004 07:21:53 -0800 (PST), Alaios <alaios@xxxxxxxxx> wrote:
> > Ne problem has arisen.... When i call  a kernel
> > function the module crash... Do u know an easy way for
> > tracing the execution?
> 
> Try out  the kernel debugger "kdb".  I have never used it but  should
> be useful. Here is a slightly dated but good  article on it
> http://www-106.ibm.com/developerworks/linux/library/l-kdbug/
> btw, can't  simple printk statements inserted in the code solve your
> tracing problem?
> I am a kernelnewbie and just sharing my ideas, there may be other
> better ways of solving your problem.

kdb is the ultimate solution. It's disadvantage is, that you need _TWO_
computers connected with a serial wire to use it.

The easiest solution is to use user-mode linux
(http://user-mode-linux.sf.net). It is a linux kernel running in
a normal process, so you can attach normal gdb to it.

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@xxxxxx>

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux