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
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab 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
acdbd67a
Commit
acdbd67a
authored
11 years ago
by
Linux Build Service Account
Committed by
Gerrit - the friendly Code Review server
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "linux-ramdump-parser-v2: Check for cycles in pagetypeinfo"
parents
56352c4f
1f93ecad
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
linux-ramdump-parser-v2/parsers/pagetypeinfo.py
+5
-4
5 additions, 4 deletions
linux-ramdump-parser-v2/parsers/pagetypeinfo.py
with
5 additions
and
4 deletions
linux-ramdump-parser-v2/parsers/pagetypeinfo.py
+
5
−
4
View file @
acdbd67a
...
@@ -47,17 +47,18 @@ class Pagetypeinfo(RamParser):
...
@@ -47,17 +47,18 @@ class Pagetypeinfo(RamParser):
curr
=
orig_free_list
curr
=
orig_free_list
pg_count
=
-
1
pg_count
=
-
1
first
=
True
first
=
True
seen
=
[]
while
True
:
while
True
:
pg_count
=
pg_count
+
1
pg_count
=
pg_count
+
1
seen
.
append
(
curr
)
next_p
=
ramdump
.
read_word
(
curr
)
next_p
=
ramdump
.
read_word
(
curr
)
if
next_p
==
curr
:
if
not
first
:
is_corrupt
=
True
break
first
=
False
first
=
False
curr
=
next_p
curr
=
next_p
if
curr
==
orig_free_list
:
if
curr
==
orig_free_list
:
break
break
if
next_p
in
seen
:
is_corrupt
=
True
break
nums
=
nums
+
(
'
{0:6}
'
.
format
(
pg_count
))
nums
=
nums
+
(
'
{0:6}
'
.
format
(
pg_count
))
total_type_bytes
=
total_type_bytes
+
\
total_type_bytes
=
total_type_bytes
+
\
pg_count
*
4096
*
(
2
**
order
)
pg_count
*
4096
*
(
2
**
order
)
...
...
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