Skip to content
Snippets Groups Projects
Commit 26d3f725 authored by Mahesh Komuravelli's avatar Mahesh Komuravelli
Browse files

lrdp_v2 : Fix for broken timerlist parser


Handle Lookup of delayed work function timers for dynamic modules

Change-Id: I5b771f8ec63f26847b223e8ca30c2695cb853312
Signed-off-by: default avatarMahesh Komuravelli <mkomurav@codeaurora.org>
parent 38a3afc2
No related branches found
No related tags found
No related merge requests found
...@@ -66,8 +66,11 @@ class TimerList(RamParser) : ...@@ -66,8 +66,11 @@ class TimerList(RamParser) :
timer_list_offset = self.ramdump.field_offset('struct delayed_work', 'timer') timer_list_offset = self.ramdump.field_offset('struct delayed_work', 'timer')
work_addr = node - timer_list_offset work_addr = node - timer_list_offset
func_addr = work_addr + self.ramdump.field_offset('struct work_struct', 'func') func_addr = work_addr + self.ramdump.field_offset('struct work_struct', 'func')
work_func = self.ramdump.unwind_lookup(self.ramdump.read_word(func_addr))[0] try:
data += " / " + work_func work_func = self.ramdump.unwind_lookup(self.ramdump.read_word(func_addr))[0]
data += " / " + work_func
except TypeError:
data += " / " + hex(self.ramdump.read_word(func_addr)) + "<MODULE>"
if not self.timer_42: if not self.timer_42:
timer_base_addr = node + self.ramdump.field_offset( timer_base_addr = node + self.ramdump.field_offset(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment