Skip to content
Snippets Groups Projects
Commit f6f2a026 authored by wadesong's avatar wadesong
Browse files

lrdp-v2: Start to parse 'core_layout' since msm-4.9

Starting from msm-4.9, a new field named 'core_layout' will be
available to replace 'module_core' in struct module.

Add code to parse the newly introduced field for loadable module
symbol addition based on the Linux kernel version.

Change-Id: I503ba6b0d4f5928bb2fea85ab3fdd4a33150b1c0
parent 15a2bf85
Branches
No related tags found
No related merge requests found
......@@ -1249,7 +1249,7 @@ class RamDump():
list_offset = self.field_offset('struct module', 'list')
name_offset = self.field_offset('struct module', 'name')
if self.kernel_version > (4, 4, 0):
if self.kernel_version > (4, 9, 0):
module_core_offset = self.field_offset('struct module', 'core_layout.base')
else:
module_core_offset = self.field_offset('struct module', 'module_core')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment