Skip to content
Snippets Groups Projects
Commit acdda246 authored by Madhur Rawat's avatar Madhur Rawat
Browse files

lrdp-v2: Update memstat information

Change-Id: I6c287bef39648d5741a35d029a3084fc2aa630ec
parent 311d9e0a
No related branches found
No related tags found
No related merge requests found
# Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
# Copyright (c) 2016-2020 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
......@@ -60,7 +60,7 @@ class MemStats(RamParser):
list_walker.walk(vmlist, self.list_func)
self.vmalloc_size = self.pages_to_mb(self.vmalloc_size)
else:
val = self.ramdump.read_u64('nr_vmalloc_pages')
val = self.ramdump.read_word('nr_vmalloc_pages')
self.vmalloc_size = self.pages_to_mb(val)
def calculate_vm_stat(self):
......@@ -231,7 +231,7 @@ class MemStats(RamParser):
else:
page_allocated = mem_pool + self.ramdump.field_offset(
'struct zs_pool', 'pages_allocated')
stat_val = self.ramdump.read_u64(page_allocated)
stat_val = self.ramdump.read_word(page_allocated)
if stat_val is None:
stat_val = 0
stat_val = self.pages_to_mb(stat_val)
......
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