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
539a3595
Commit
539a3595
authored
10 years ago
by
Linux Build Service Account
Committed by
Gerrit - the friendly Code Review server
10 years ago
Browse files
Options
Downloads
Plain Diff
Merge "lrdpv2: roareadiff: don't print non-printable characters"
parents
2f1614d2
803e9997
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/roareadiff.py
+6
-3
6 additions, 3 deletions
linux-ramdump-parser-v2/parsers/roareadiff.py
with
6 additions
and
3 deletions
linux-ramdump-parser-v2/parsers/roareadiff.py
+
6
−
3
View file @
539a3595
# Copyright (c) 2013-201
4
, The Linux Foundation. All rights reserved.
# Copyright (c) 2013-201
5
, The Linux Foundation. All rights reserved.
#
#
# This program is free software; you can redistribute it and/or modify
# 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
# it under the terms of the GNU General Public License version 2 and
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
# GNU General Public License for more details.
# GNU General Public License for more details.
import
struct
import
struct
import
string
from
print_out
import
print_out_str
from
print_out
import
print_out_str
from
collections
import
namedtuple
from
collections
import
namedtuple
...
@@ -126,8 +127,10 @@ class ROData(RamParser):
...
@@ -126,8 +127,10 @@ class ROData(RamParser):
ddr_str
+=
'
{0:0>8x}
'
.
format
(
ram_value
)
ddr_str
+=
'
{0:0>8x}
'
.
format
(
ram_value
)
vmlinux_str
+=
'
{0:0>8x}
'
.
format
(
vm_value
)
vmlinux_str
+=
'
{0:0>8x}
'
.
format
(
vm_value
)
for
j
in
range
(
4
):
for
j
in
range
(
4
):
ddr_ascii
+=
'
{0:c}
'
.
format
(
struct
.
unpack
(
'
B
'
,
ram_values
[
i
+
j
])[
0
]).
rstrip
()
c
=
'
{0:c}
'
.
format
(
struct
.
unpack
(
'
B
'
,
ram_values
[
i
+
j
])[
0
]).
rstrip
()
vm_ascii
+=
'
{0:c}
'
.
format
(
struct
.
unpack
(
'
B
'
,
vm_values
[
i
+
j
])[
0
]).
rstrip
()
ddr_ascii
+=
c
if
c
in
string
.
printable
else
'
.
'
c
=
'
{0:c}
'
.
format
(
struct
.
unpack
(
'
B
'
,
vm_values
[
i
+
j
])[
0
]).
rstrip
()
vm_ascii
+=
c
if
c
in
string
.
printable
else
'
.
'
detect
+=
1
detect
+=
1
i
=
i
+
4
i
=
i
+
4
if
detect
!=
0xFFFFFFFF
:
if
detect
!=
0xFFFFFFFF
:
...
...
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