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
f5a23bdc
Commit
f5a23bdc
authored
6 years ago
by
Linux Build Service Account
Committed by
Gerrit - the friendly Code Review server
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "lrdp_v2: Remove parameter --32-bit and --64-bit"
parents
d0c3b4c8
f95604c9
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/ramparse.py
+9
-11
9 additions, 11 deletions
linux-ramdump-parser-v2/ramparse.py
with
9 additions
and
11 deletions
linux-ramdump-parser-v2/ramparse.py
+
9
−
11
View file @
f5a23bdc
#!/usr/bin/env python2
# Copyright (c) 2012-201
7
, The Linux Foundation. All rights reserved.
# Copyright (c) 2012-201
8
, 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
...
...
@@ -122,10 +122,6 @@ if __name__ == '__main__':
help
=
'
Force the hardware detection to a specific hardware version
'
)
parser
.
add_option
(
''
,
'
--parse-qdss
'
,
action
=
'
store_true
'
,
dest
=
'
qdss
'
,
help
=
'
Parse QDSS (deprecated)
'
)
parser
.
add_option
(
''
,
'
--64-bit
'
,
action
=
'
store_true
'
,
dest
=
'
arm64
'
,
help
=
'
Parse dumps as 64-bit dumps (default)
'
)
parser
.
add_option
(
''
,
'
--32-bit
'
,
action
=
'
store_true
'
,
dest
=
'
arm32
'
,
help
=
'
Parse dumps as 32-bit dumps
'
)
parser
.
add_option
(
''
,
'
--shell
'
,
action
=
'
store_true
'
,
help
=
'
Run an interactive python interpreter with the ramdump loaded
'
)
parser
.
add_option
(
''
,
'
--classic-shell
'
,
action
=
'
store_true
'
,
...
...
@@ -248,6 +244,14 @@ if __name__ == '__main__':
'
Ram file {0} does not exist. Exiting...
'
.
format
(
a
[
0
]))
sys
.
exit
(
1
)
# offset 4 of vmlinux indcates it's 32 or 64 bits
# for 64 bits it is 0x2, for 32 bits it is 0x1
vm_file
=
open
(
options
.
vmlinux
)
vm_file
.
seek
(
4
,
0
)
bin_bits
=
vm_file
.
read
(
1
)
vm_file
.
close
()
options
.
arm64
=
ord
(
bin_bits
)
==
0x02
if
options
.
wlan
is
None
:
options
.
wlan
=
"
INTEGRATED
"
else
:
...
...
@@ -260,12 +264,6 @@ if __name__ == '__main__':
nm_path
=
options
.
nm
objdump_path
=
options
.
objdump
if
options
.
arm64
:
print_out_str
(
'
--64-bit is deprecated. Dumps are assumed to be 64-bit by default.
'
)
print_out_str
(
'
For 32-bit dumps, use --32-bit.
'
)
else
:
options
.
arm64
=
not
options
.
arm32
try
:
import
local_settings
try
:
...
...
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