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
7ca2bdc9
Commit
7ca2bdc9
authored
7 years ago
by
lnx build
Committed by
Gerrit - the friendly Code Review server
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "lrdp_v2: ignore page if page->order is greater than MAX_ORDER"
parents
effd0b30
c66ce449
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/pagetracking.py
+19
-0
19 additions, 0 deletions
linux-ramdump-parser-v2/parsers/pagetracking.py
with
19 additions
and
0 deletions
linux-ramdump-parser-v2/parsers/pagetracking.py
+
19
−
0
View file @
7ca2bdc9
...
@@ -77,6 +77,20 @@ class PageTracking(RamParser):
...
@@ -77,6 +77,20 @@ class PageTracking(RamParser):
out_frequency
=
self
.
ramdump
.
open_file
(
'
page_frequency.txt
'
)
out_frequency
=
self
.
ramdump
.
open_file
(
'
page_frequency.txt
'
)
sorted_pages
=
{}
sorted_pages
=
{}
'''
Following based upon definition in include/linux/mmzone.h
#ifndef CONFIG_FORCE_MAX_ZONEORDER
#define MAX_ORDER 11
#else
#define MAX_ORDER CONFIG_FORCE_MAX_ZONEORDER
#endif
'''
try
:
max_order
=
int
(
self
.
ramdump
.
get_config_val
(
"
CONFIG_FORCE_MAX_ZONEORDER
"
))
except
:
max_order
=
11
for
pfn
in
for_each_pfn
(
self
.
ramdump
):
for
pfn
in
for_each_pfn
(
self
.
ramdump
):
page
=
pfn_to_page
(
self
.
ramdump
,
pfn
)
page
=
pfn_to_page
(
self
.
ramdump
,
pfn
)
order
=
0
order
=
0
...
@@ -152,6 +166,11 @@ class PageTracking(RamParser):
...
@@ -152,6 +166,11 @@ class PageTracking(RamParser):
if
nr_trace_entries
<=
0
or
nr_trace_entries
>
16
:
if
nr_trace_entries
<=
0
or
nr_trace_entries
>
16
:
continue
continue
if
order
>=
max_order
:
out_tracking
.
write
(
'
PFN 0x{:x} page 0x{:x} skip as order 0x{:x}
\n
'
.
format
(
pfn
,
page
,
order
))
continue
out_tracking
.
write
(
'
PFN 0x{:x}-0x{:x} page 0x{:x}
\n
'
.
format
(
out_tracking
.
write
(
'
PFN 0x{:x}-0x{:x} page 0x{:x}
\n
'
.
format
(
pfn
,
pfn
+
(
1
<<
order
)
-
1
,
page
))
pfn
,
pfn
+
(
1
<<
order
)
-
1
,
page
))
...
...
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