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
d59a05a4
Commit
d59a05a4
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: Make page offset a property of the ramdump"
parents
599f3123
46976af8
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/ramdump.py
+2
-1
2 additions, 1 deletion
linux-ramdump-parser-v2/ramdump.py
with
2 additions
and
1 deletion
linux-ramdump-parser-v2/ramdump.py
+
2
−
1
View file @
d59a05a4
...
@@ -432,6 +432,7 @@ class RamDump():
...
@@ -432,6 +432,7 @@ class RamDump():
self
.
imem_fname
=
None
self
.
imem_fname
=
None
self
.
gdbmi
=
gdbmi
.
GdbMI
(
self
.
gdb_path
,
self
.
vmlinux
)
self
.
gdbmi
=
gdbmi
.
GdbMI
(
self
.
gdb_path
,
self
.
vmlinux
)
self
.
gdbmi
.
open
()
self
.
gdbmi
.
open
()
self
.
page_offset
=
0xc0000000
if
ebi
is
not
None
:
if
ebi
is
not
None
:
# TODO sanity check to make sure the memory regions don't overlap
# TODO sanity check to make sure the memory regions don't overlap
for
file_path
,
start
,
end
in
ebi
:
for
file_path
,
start
,
end
in
ebi
:
...
@@ -543,7 +544,7 @@ class RamDump():
...
@@ -543,7 +544,7 @@ class RamDump():
banner_addr
=
self
.
addr_lookup
(
'
linux_banner
'
)
banner_addr
=
self
.
addr_lookup
(
'
linux_banner
'
)
if
banner_addr
is
not
None
:
if
banner_addr
is
not
None
:
# Don't try virt to phys yet, compute manually
# Don't try virt to phys yet, compute manually
banner_addr
=
banner_addr
-
0xc0000000
+
self
.
phys_offset
banner_addr
=
banner_addr
-
self
.
page_offset
+
self
.
phys_offset
b
=
self
.
read_cstring
(
banner_addr
,
256
,
False
)
b
=
self
.
read_cstring
(
banner_addr
,
256
,
False
)
if
b
is
None
:
if
b
is
None
:
print_out_str
(
'
!!! Could not read banner address!
'
)
print_out_str
(
'
!!! Could not read banner address!
'
)
...
...
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