LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-31-2005, 10:36 AM   #1
Igor007
Member
 
Registered: Aug 2004
Posts: 76

Rep: Reputation: 15
Kernel Linux Debugging


Kernel Linux Debugging

Does anybody have experience of Linux Debugging? What methods and utilities did you use?
Would you please share your experience?

Thanks in advance
 
Old 09-02-2005, 12:46 AM   #2
shishir
Member
 
Registered: Jul 2003
Location: bangalore . india
Distribution: openSUSE 10.3
Posts: 251

Rep: Reputation: 33
for kernel debugging...there are various tools...patches available..
1 : kgdb is one..which requires the kernel to be compiled with -g option and having the kgdb patch applied to the kernel..but kgdb requires a null modem and two machines..
2:there is kdb that doesnt require any extra machine ..but patches the kernel..requires a bit of understanding of assembly ..
3: there are toolkits like linux trace toolkit,
4: 2.6 series has kprobes..that can be used to insert prints in a running kernel..
5: also, you can see the kernel hacking subsection of the kernel configuration to configure the kernel to have certain features turned on to enable debugging or traces...like SLAB_DEBUG to perform slab allocation debugging..
these are some of the things ...
 
Old 09-05-2005, 02:10 PM   #3
Igor007
Member
 
Registered: Aug 2004
Posts: 76

Original Poster
Rep: Reputation: 15
Hi guys
I know about these utilities.
I need a good GUIDES and HOWTOS how to use them.
Step by step instructions like, for example, compiling kernel
Has anybody experience of debugging kernel using these utilities?
Any body can give me these instructions
Using the following utilities and techniques
The main ones:
GDB
KDB
KPROBES

and also
KGDB
UML
LTT


Any experience sharing, links, info etc are appreciated
Thank you in advance
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debugging Linux Kernel Module with kdb Igor007 Programming 1 10-28-2005 01:21 AM
Visual Debugging and Linux Kernel Debugging Igor007 Programming 0 09-30-2005 10:33 AM
Linux kernel debugging and Linux kernel module programming Igor007 Programming 2 08-13-2005 05:12 AM
Linux kernel debugging and Linux kernel module programming Igor007 Linux - Enterprise 3 08-12-2005 02:47 PM
kernel debugging - can't boot? andrewlkho Linux - General 4 05-31-2004 04:46 PM


All times are GMT -5. The time now is 07:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration