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
7229dfc3
Commit
7229dfc3
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 "linux-ramdump-parser-v2: Fix path issues while using qtf"
parents
88c731ed
6213ddb4
No related branches found
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/debug_image_v2.py
+8
-8
8 additions, 8 deletions
linux-ramdump-parser-v2/debug_image_v2.py
with
8 additions
and
8 deletions
linux-ramdump-parser-v2/debug_image_v2.py
+
8
−
8
View file @
7229dfc3
...
@@ -146,7 +146,7 @@ class DebugImage_v2():
...
@@ -146,7 +146,7 @@ class DebugImage_v2():
self
.
formats_out
.
write
(
"
print fmt: {0}
\n
"
.
format
(
fmt_str
))
self
.
formats_out
.
write
(
"
print fmt: {0}
\n
"
.
format
(
fmt_str
))
def
collect_ftrace_format
(
self
,
ram_dump
):
def
collect_ftrace_format
(
self
,
ram_dump
):
formats
=
os
.
path
.
join
(
self
.
qtf_dir
,
'
map_files
\\
formats.txt
'
)
formats
=
os
.
path
.
join
(
'
qtf
'
,
'
map_files
'
,
'
formats.txt
'
)
formats_out
=
ram_dump
.
open_file
(
formats
)
formats_out
=
ram_dump
.
open_file
(
formats
)
self
.
formats_out
=
formats_out
self
.
formats_out
=
formats_out
...
@@ -158,6 +158,7 @@ class DebugImage_v2():
...
@@ -158,6 +158,7 @@ class DebugImage_v2():
self
.
formats_out
.
close
self
.
formats_out
.
close
def
parse_qtf
(
self
,
ram_dump
):
def
parse_qtf
(
self
,
ram_dump
):
out_dir
=
ram_dump
.
outdir
if
platform
.
system
()
!=
'
Windows
'
:
if
platform
.
system
()
!=
'
Windows
'
:
return
return
...
@@ -189,24 +190,23 @@ class DebugImage_v2():
...
@@ -189,24 +190,23 @@ class DebugImage_v2():
print_out_str
(
"
!!! No execute permissions on qtf path {0}
"
.
format
(
qtf_path
))
print_out_str
(
"
!!! No execute permissions on qtf path {0}
"
.
format
(
qtf_path
))
return
return
if
os
.
path
.
getsize
(
'
tmc-etf.bin
'
)
>
0
:
if
os
.
path
.
getsize
(
os
.
path
.
join
(
out_dir
,
'
tmc-etf.bin
'
)
)
>
0
:
trace_file
=
'
tmc-etf.bin
'
trace_file
=
os
.
path
.
join
(
out_dir
,
'
tmc-etf.bin
'
)
elif
os
.
path
.
getsize
(
'
tmc-etr.bin
'
)
>
0
:
elif
os
.
path
.
getsize
(
os
.
path
.
join
(
out_dir
,
'
tmc-etr.bin
'
)
)
>
0
:
trace_file
=
'
tmc-etr.bin
'
trace_file
=
os
.
path
.
join
(
out_dir
,
'
tmc-etr.bin
'
)
else
:
else
:
return
return
port
=
12345
port
=
12345
qtf_dir
=
'
qtf
'
qtf_dir
=
os
.
path
.
join
(
out_dir
,
'
qtf
'
)
workspace
=
os
.
path
.
join
(
qtf_dir
,
'
qtf.workspace
'
)
workspace
=
os
.
path
.
join
(
qtf_dir
,
'
qtf.workspace
'
)
qtf_out
=
'
qtf.txt
'
qtf_out
=
os
.
path
.
join
(
out_dir
,
'
qtf.txt
'
)
chipset
=
'
msm
'
+
str
(
ram_dump
.
hw_id
)
chipset
=
'
msm
'
+
str
(
ram_dump
.
hw_id
)
hlos
=
'
LA
'
hlos
=
'
LA
'
p
=
subprocess
.
Popen
([
qtf_path
,
'
-s
'
,
'
{0}
'
.
format
(
port
)])
p
=
subprocess
.
Popen
([
qtf_path
,
'
-s
'
,
'
{0}
'
.
format
(
port
)])
subprocess
.
call
(
'
{0} -c {1} new workspace {2} {3} {4}
'
.
format
(
qtf_path
,
port
,
qtf_dir
,
chipset
,
hlos
))
subprocess
.
call
(
'
{0} -c {1} new workspace {2} {3} {4}
'
.
format
(
qtf_path
,
port
,
qtf_dir
,
chipset
,
hlos
))
self
.
qtf_dir
=
qtf_dir
self
.
collect_ftrace_format
(
ram_dump
)
self
.
collect_ftrace_format
(
ram_dump
)
subprocess
.
call
(
'
{0} -c {1} open workspace {2}
'
.
format
(
qtf_path
,
port
,
workspace
))
subprocess
.
call
(
'
{0} -c {1} open workspace {2}
'
.
format
(
qtf_path
,
port
,
workspace
))
...
...
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