Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What Does System.map Do?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Fri Jan 14, 2005 6:09 pm    Post subject: What Does System.map Do? Reply with quote

Yeah, I'm a n00b, and I'm sorry. But what does System.map do? :oops:
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
boudie
n00b
n00b


Joined: 01 Feb 2004
Posts: 74
Location: nova scotia, canada

PostPosted: Fri Jan 14, 2005 6:33 pm    Post subject: Reply with quote

Found this explanation at kernelnewbies.org in the FAQ.

System.map is a file (produced via nm) containing symbol names and addresses of the linux kernel binary, vmlinux.

Its primary use is in debugging. If a kernel "oops" message appears, the utility ksymoops can be used to decode the message into something useful for developers. ksymoops makes use of the System.map to map PC values to symbolic values. Note that 2.5 kernels have an in-kernel oops decoder called kksymoops, which does not need System.map

You may get warnings about your System.map being out of date. This won't affect normal running but its best to keep a copy around if there is a kernel bug / hardware failure. Note that ps l uses System.map to determine the WCHAN field (you can specify a map file with the PS_SYSTEM_MAP environment variable). The utilities look in a set of standard places for this file like /boot/System.map and /usr/src/linux/System.map
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Fri Jan 14, 2005 8:50 pm    Post subject: Reply with quote

thats a little bit out of date. the functionality that ksymoops+system.map provides is now built into the kernel - if you get an oops, you'll get a human readable backtrace (unless you hacked the default kernel config too much...)

so really, its not needed now.
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum