LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-31-2006, 02:38 PM   #1
wood@addanc
Member
 
Registered: Sep 2004
Posts: 31

Rep: Reputation: 15
Kernel debugging


Couple of questions viz:

#1 Working on an embedded system using a vanilla kernel 2.6.15. I trying to derive debug information so that I can track a kernel panic probably caused by a driver module. The O'Reilly Linux Device Drivers suggests that in the sysfs pseudo file system under /sys/module/drivername/ there should be a "sections" folder with files containing the .text, .bss and .data sections. It isn't there. The kernel has been pruned down to the bone, is there a kernel config option controlling the presence or otherwise of the "sections" folder. Going through the kernel config nothing jumps out and slaps me in the face.

#2 I've built the kernel with debug info enabled (CONFIG_DEBUG_INFO). What tools could be used to generate a text map file of symbols and line numbers for a module built against this kernel? Just looking for offsets into the .text, .bss and .data sections.

Any help much appreciated.
 
Old 04-01-2006, 09:01 AM   #2
wood@addanc
Member
 
Registered: Sep 2004
Posts: 31

Original Poster
Rep: Reputation: 15
For anyone interested:
#1 CONFIG_KALLSYMS controls generation of section folders.
#2 readelf and objdump appear to be the required tools.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between kernel - debugging and application debugging topworld Linux - Software 2 03-30-2006 12:50 AM
Visual Debugging and Linux Kernel Debugging Igor007 Programming 0 09-30-2005 10:33 AM
Kernel Linux Debugging Igor007 Programming 2 09-05-2005 02:10 PM
debugging kernel modules saajii Programming 1 09-14-2004 03:58 AM
kernel debugging - can't boot? andrewlkho Linux - General 4 05-31-2004 04:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:42 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration