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
1604acae
Commit
1604acae
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 "lrdp-v2: add progress indicator"
parents
6eb17c09
9cebcb69
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/ramparse.py
+24
-11
24 additions, 11 deletions
linux-ramdump-parser-v2/ramparse.py
with
24 additions
and
11 deletions
linux-ramdump-parser-v2/ramparse.py
+
24
−
11
View file @
1604acae
...
@@ -21,6 +21,7 @@ from __future__ import print_function
...
@@ -21,6 +21,7 @@ from __future__ import print_function
import
sys
import
sys
import
os
import
os
import
re
import
re
import
time
from
optparse
import
OptionParser
from
optparse
import
OptionParser
import
parser_util
import
parser_util
...
@@ -300,17 +301,29 @@ if __name__ == '__main__':
...
@@ -300,17 +301,29 @@ if __name__ == '__main__':
get_wdog_timing
(
dump
)
get_wdog_timing
(
dump
)
print_out_str
(
'
---------- end watchdog time-----
'
)
print_out_str
(
'
---------- end watchdog time-----
'
)
for
p
in
parser_util
.
get_parsers
():
# we called parser.add_option with dest=p.cls.__name__ above,
# we called parser.add_option with dest=p.cls.__name__ above,
# so if the user passed that option then `options' will have a
# so if the user passed that option then `options' will have a
# p.cls.__name__ attribute.
# p.cls.__name__ attribute.
parsers_to_run
=
[
p
for
p
in
parser_util
.
get_parsers
()
if
getattr
(
options
,
p
.
cls
.
__name__
)
or
(
options
.
everything
and
not
p
.
optional
):
if
getattr
(
options
,
p
.
cls
.
__name__
)
with
print_out_section
(
p
.
cls
.
__name__
):
or
(
options
.
everything
and
not
p
.
optional
)]
try
:
for
i
,
p
in
enumerate
(
parsers_to_run
):
p
.
cls
(
dump
).
parse
()
if
i
==
0
:
except
:
sys
.
stderr
.
write
(
"
\n
"
)
print_out_str
(
'
!!! Exception while running {0}
'
.
format
(
p
.
cls
.
__name__
))
sys
.
stderr
.
write
(
"
[%d/%d] %s ...
"
%
print_out_exception
()
(
i
+
1
,
len
(
parsers_to_run
),
p
.
longopt
))
before
=
time
.
time
()
with
print_out_section
(
p
.
cls
.
__name__
):
try
:
p
.
cls
(
dump
).
parse
()
except
:
print_out_str
(
'
!!! Exception while running {0}
'
.
format
(
p
.
cls
.
__name__
))
print_out_exception
()
sys
.
stderr
.
write
(
"
FAILED!
"
)
sys
.
stderr
.
write
(
"
%fs
\n
"
%
(
time
.
time
()
-
before
))
sys
.
stderr
.
flush
()
sys
.
stderr
.
write
(
"
\n
"
)
if
options
.
t32launcher
or
options
.
everything
:
if
options
.
t32launcher
or
options
.
everything
:
dump
.
create_t32_launcher
()
dump
.
create_t32_launcher
()
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