From b61a75d735d6185199ed738db53992935c087cfe Mon Sep 17 00:00:00 2001 From: wadesong <wadesong@codeaurora.org> Date: Thu, 7 Dec 2017 13:35:20 +0800 Subject: [PATCH] lrdp-v2: Loadble module name prefixing Currently the loadble module symbol parsing code is only decoding the symbol names without prefixing the module names. This will result in some confusion when two module's symbol names are identical, and things get worse espeicially when parsing RAM dumps where two WLAN drivers are loaded. Prefix module names to module specific symbol names when parsing their symbol files so user can easily tell which module is involved in a call stack. Change-Id: I3cf5e9527be191fb5f21830b1ba9f915d734b5d2 --- linux-ramdump-parser-v2/ramdump.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linux-ramdump-parser-v2/ramdump.py b/linux-ramdump-parser-v2/ramdump.py index 3c0e8bb..9fbabf7 100644 --- a/linux-ramdump-parser-v2/ramdump.py +++ b/linux-ramdump-parser-v2/ramdump.py @@ -1273,7 +1273,9 @@ class RamDump(): for line in symbols: s = line.split(' ') if len(s) == 3: - mod_tbl_ent.sym_lookup_table.append( ( int(s[0], 16) + mod_tbl_ent.module_offset, s[2].rstrip() ) ) + mod_tbl_ent.sym_lookup_table.append( + (int(s[0], 16) + mod_tbl_ent.module_offset, + s[2].rstrip() + '[' + mod_tbl_ent.name + ']')) stream.close() def parse_module_symbols(self): -- GitLab