Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tools
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
vendor
qcom-opensource
tools
Commits
acdda246
Commit
acdda246
authored
5 years ago
by
Madhur Rawat
Browse files
Options
Downloads
Patches
Plain Diff
lrdp-v2: Update memstat information
Change-Id: I6c287bef39648d5741a35d029a3084fc2aa630ec
parent
311d9e0a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
linux-ramdump-parser-v2/parsers/memstat.py
+3
-3
3 additions, 3 deletions
linux-ramdump-parser-v2/parsers/memstat.py
with
3 additions
and
3 deletions
linux-ramdump-parser-v2/parsers/memstat.py
+
3
−
3
View file @
acdda246
# Copyright (c) 2016-20
19
The Linux Foundation. All rights reserved.
# Copyright (c) 2016-20
20
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment