[Crash-utility] Why module's global symbol cannot be displayed in crash?

Dave Anderson anderson at redhat.com
Tue Mar 19 14:31:59 UTC 2013



----- Original Message -----
> Hi list,
> 
> I find in current 6.1.4 crash, when load module with "mod -S",
> only module's function symbol could be parsed out.
> 
> But for module's global variant, crash cannot find related symbol...
> Any idea for this?
> 

Without the debuginfo data from the module.ko.debug file, crash
gets all of its module symbol data from the kernel.  So it uses
what's available in the in-kernel /proc/kallsyms list plus the
information stored in each module's "struct module".  The 
store_module_symbols_v2() function does the work.  

If "mod -[sS]" is used, then crash has access to full debuginfo data
from the module.ko.debug file.  In that case, the store_load_module_symbols()
function does the work.

Dave




More information about the Crash-utility mailing list