[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to kernel debugging
Hi...
On Mon, May 5, 2008 at 11:34 AM, amol verule <amol.debian@xxxxxxxxx> wrote:
> hi to all,
> i am new to kernel .can any one tell me about document for debugging kernel.
> is any patch is require for it i.e kdb kgdb?
in 2.6.25.x, IIRC...kgdb is already merged... please cross check by
digging LWN.net
However, there is kdb too... so there is alternative..
> i am using 2.6.21 kernel i have compiled this kernel with DEBUG_KERNEL=y
> option anything else is require to enable?
make sure your kernel is compiled with CONFIG_FRAME_POINTER iirc...
other than that, there are various items you can enable in kernel
hacking section.
> how can i debug my kernel ?
that's a unspecified question. You can simply do it by putting
printk()s at various places, use kprobe or systemtap...or maybe you
need to try something more advanced like Ksplice? it's up to you.
regards,
Mulyadi.
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ