View previous topic :: View next topic |
Author |
Message |
wswartzendruber Veteran
Joined: 23 Mar 2004 Posts: 1261 Location: Idaho, USA
|
Posted: Fri Jan 14, 2005 6:09 pm Post subject: What Does System.map Do? |
|
|
Yeah, I'm a n00b, and I'm sorry. But what does System.map do? _________________ Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP. |
|
Back to top |
|
|
boudie n00b
Joined: 01 Feb 2004 Posts: 74 Location: nova scotia, canada
|
Posted: Fri Jan 14, 2005 6:33 pm Post subject: |
|
|
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 |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Fri Jan 14, 2005 8:50 pm Post subject: |
|
|
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 |
|
|
|