Skip to content
Snippets Groups Projects
Commit 8d4a8fc0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "lrdp_v2: Fix timer list for dynamic modules"

parents 4007ffcf a0015301
No related branches found
No related tags found
No related merge requests found
# Copyright (c) 2015-2017, The Linux Foundation. All rights reserved. # Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 and # it under the terms of the GNU General Public License version 2 and
...@@ -50,8 +50,10 @@ class TimerList(RamParser) : ...@@ -50,8 +50,10 @@ class TimerList(RamParser) :
function_addr = node + self.ramdump.field_offset('struct timer_list', 'function') function_addr = node + self.ramdump.field_offset('struct timer_list', 'function')
expires_addr = node + self.ramdump.field_offset('struct timer_list', 'expires') expires_addr = node + self.ramdump.field_offset('struct timer_list', 'expires')
data_addr = node + self.ramdump.field_offset('struct timer_list', 'data') data_addr = node + self.ramdump.field_offset('struct timer_list', 'data')
try:
function = self.ramdump.unwind_lookup(self.ramdump.read_word(function_addr))[0] function = self.ramdump.unwind_lookup(self.ramdump.read_word(function_addr))[0]
except TypeError:
function = "<dynamic module>"
expires = self.ramdump.read_word(expires_addr) expires = self.ramdump.read_word(expires_addr)
try: try:
data = hex(self.ramdump.read_word(data_addr)).rstrip('L') data = hex(self.ramdump.read_word(data_addr)).rstrip('L')
......
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