Re: A more accurate System.map, including modules

Gerd Knorr (kraxel@goldbach.isdn.cs.tu-berlin.de)
Tue, 23 Sep 1997 10:16:13 +0200


>>Why don't you use insmod's -m switch to get the module symbols?
>>A small wrapper script for insmod does a quite good job here.
>
>That is another option but suffers from a few problems.
>
> The output format is not compatible with System.map, no big deal, that
> is what sed/grep/awk/perl are for.

It is, at least with my (2.1.42) version. One only has to strip off some
other stuff (elf sections) which are printed too.

> -m only works on insmod, not on modprobe so you must specify the exact
> location.

modprobe calls insmod. I have replaced insmod with my wrapper script
- problem solved.

> When modules are deleted, there is no easy way of detecting the fact
> with this approach. It gets very confusing when another module is
> loaded and reuses the space.

/proc/modules

> No way of persuading kerneld to generate the map when kerneld loads
> modules.

kerneld calls modprobe, modprobe calls insmod ...

Gerd

-- 
Never check for a error condition you don't know how to handle.