Skip to content
Snippets Groups Projects
  • wadesong's avatar
    lrdp-v2: Add symbol parsing for loadable modules · 88519637
    wadesong authored
    Current Linux Ram Dump Paser scripts are only able to load kernel
    symbols by default. No loadable modules' symbols will be parsed
    at startup time, which may result in 'unknown symbols' in some
    cases, especially when checking SLAB info on dual-wifi platforms.
    
    With this change, loadable modules' symbols can be parsed on
    script startup by the following configurations:
    
    1) Put all symbols under a certain dir, such as:
    
    <dump_location>/symbols/wlan.ko
    <dump_location>/symbols/wlan_sdio.ko
    
    2) Add --sym_path when invoking the scripts, such as:
    
    python %RAM_DUMP_PARSER_PATH%\ramparse.py --sym_path
    <dump_location>/symbols
    
    With the above actions, all loadable modules' symbols will be
    parsed and stored for subsequent information dumping. Symbol
    loading commands will also be added into the Trace32 startup
    script.
    
    Change-Id: Idda9c9a08cfd24c19bf4021e80fee5187cd031b9
    88519637