[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: [rtl] debugging kernel



RM wrote:
> 
> hi all,
>         i was wondering what techniques everyone was using to go about
> finding the causes of crashes, and lockups with the kernel.  up to this
> point i've only really worked with device drivers, and having never worked
> with the kernel proper much, i don't have much of an idea on how to begin
> or go about it.
>                                 thanks,
>                                   rob

Hi,
In my case , I always define :

// #define __DEBUG

#ifdef __DEBUG
#define DEBUG(x) printk(x)
#else
#define DEBUG(x)
#endif

And then , when I define __DEBUG , I do lots of printk in
all critical points ... When it's OK , I just take out 
the #define __DEBUG .

Good Luck.

-- KUMSTA Christophe
-- <kumsta@easynet.fr>
-- real-time system developper
-- RT-Linux (Use the source luke)
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.cs.nmt.edu OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.cs.nmt.edu
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/