Skip to content
Snippets Groups Projects
Commit 4fc58ca4 authored by Ankur Bansal's avatar Ankur Bansal
Browse files

lrdp_v2 : Fix for broken pagetracking.py for kernel-4.14

Fix for broken pagetracking.py for kernel-4.14.

Change-Id: Ib6f1adf9b0036c4b93b73b98e0700f91a8e98e03
parent 9517aa55
No related branches found
No related tags found
No related merge requests found
# Copyright (c) 2012,2014-2015,2017 The Linux Foundation. All rights reserved. # Copyright (c) 2012,2014-2015,2017-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
...@@ -25,6 +25,8 @@ class PageTracking(RamParser): ...@@ -25,6 +25,8 @@ class PageTracking(RamParser):
if (self.ramdump.kernel_version >= (3, 19, 0)): if (self.ramdump.kernel_version >= (3, 19, 0)):
if self.ramdump.is_config_defined('CONFIG_SPARSEMEM'): if self.ramdump.is_config_defined('CONFIG_SPARSEMEM'):
mem_section = self.ramdump.read_word('mem_section') mem_section = self.ramdump.read_word('mem_section')
if self.ramdump.kernel_version >= (4, 14):
mem_section = self.ramdump.read_word(mem_section)
else: else:
mem_section = self.ramdump.address_of('contig_page_data') mem_section = self.ramdump.address_of('contig_page_data')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment