Skip to content
Snippets Groups Projects
Commit 1577c705 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 for broken pagetracking.py for kernel-4.14"

parents 55a16536 4fc58ca4
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
# it under the terms of the GNU General Public License version 2 and
......@@ -25,6 +25,8 @@ class PageTracking(RamParser):
if (self.ramdump.kernel_version >= (3, 19, 0)):
if self.ramdump.is_config_defined('CONFIG_SPARSEMEM'):
mem_section = self.ramdump.read_word('mem_section')
if self.ramdump.kernel_version >= (4, 14):
mem_section = self.ramdump.read_word(mem_section)
else:
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.
Finish editing this message first!
Please register or to comment