[Crash-utility] modules and data / bss initialization

Castor Fu castor.fu at 3pardata.com
Mon Nov 20 20:36:47 UTC 2006


Under linux 2.6 it seems that crash is not figuring out the locations
of any sections of modules other than the text section.  

This means that things like 'sym modvar1' can find the correct location
but 'p modvar1' does not work.

I guess that there are a couple of possibilities here:

1.  if CONFIG_KALLSYMS is set, one could look through the sect_attrs
     for each of the sections and initialize the segments.

2.  if CONFIG_KALLSYMS is not set, we would have to try to match
       offsets of some variables from the object file with the existing offsets
       in the kernel.  

Clearly [2]  is the 'better' solution because it doesn't
      require CONFIG_KALLSYMS to be set, but it seems like more work.

Has anyone done either of these yet?   If not does it seem like I've described the
problem correctly?


    Thanks,
    castor

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20061120/36f78aa2/attachment.htm>


More information about the Crash-utility mailing list