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
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab 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
969da4ee
Commit
969da4ee
authored
7 years ago
by
Linux Build Service Account
Committed by
Gerrit - the friendly Code Review server
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "lrdp_v2: Consider isolated CPUs while printing watchdog info"
parents
cad89009
a8613aa4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
linux-ramdump-parser-v2/watchdog_v2.py
+8
-1
8 additions, 1 deletion
linux-ramdump-parser-v2/watchdog_v2.py
with
8 additions
and
1 deletion
linux-ramdump-parser-v2/watchdog_v2.py
+
8
−
1
View file @
969da4ee
...
@@ -882,6 +882,12 @@ def get_wdog_timing(ramdump):
...
@@ -882,6 +882,12 @@ def get_wdog_timing(ramdump):
cpu_online_bits
=
ramdump
.
read_word
(
'
__cpu_online_mask
'
)
cpu_online_bits
=
ramdump
.
read_word
(
'
__cpu_online_mask
'
)
else
:
else
:
cpu_online_bits
=
ramdump
.
read_word
(
'
cpu_online_bits
'
)
cpu_online_bits
=
ramdump
.
read_word
(
'
cpu_online_bits
'
)
if
(
ramdump
.
kernel_version
>=
(
4
,
9
,
0
)):
cpu_isolated_bits
=
ramdump
.
read_word
(
'
__cpu_isolated_mask
'
)
elif
(
ramdump
.
kernel_version
>=
(
4
,
4
,
0
)):
cpu_isolated_bits
=
ramdump
.
read_word
(
'
cpu_isolated_bits
'
)
else
:
cpu_isolated_bits
=
0
wdog_task
=
ramdump
.
read_structure_field
(
wdog_task
=
ramdump
.
read_structure_field
(
wdog_data_addr
,
'
struct msm_watchdog_data
'
,
'
watchdog_task
'
)
wdog_data_addr
,
'
struct msm_watchdog_data
'
,
'
watchdog_task
'
)
wdog_task_state
=
ramdump
.
read_structure_field
(
wdog_task_state
=
ramdump
.
read_structure_field
(
...
@@ -914,7 +920,7 @@ def get_wdog_timing(ramdump):
...
@@ -914,7 +920,7 @@ def get_wdog_timing(ramdump):
wdog_task_cpu
,
ns_to_sec
(
wdog_task_arrived
)))
wdog_task_cpu
,
ns_to_sec
(
wdog_task_arrived
)))
print_out_str
(
"
CPUs responded to pet(alive_mask): {0:08b}
"
.
format
(
print_out_str
(
"
CPUs responded to pet(alive_mask): {0:08b}
"
.
format
(
wdog_alive_mask
))
wdog_alive_mask
))
alive_cpus
=
wdog_alive_mask
|
(
~
cpu_online_bits
)
alive_cpus
=
wdog_alive_mask
|
(
~
cpu_online_bits
)
|
cpu_isolated_bits
for
i
in
range
(
0
,
ramdump
.
get_num_cpus
()):
for
i
in
range
(
0
,
ramdump
.
get_num_cpus
()):
if
(
alive_cpus
&
1
):
if
(
alive_cpus
&
1
):
alive_cpus
=
alive_cpus
>>
1
alive_cpus
=
alive_cpus
>>
1
...
@@ -936,6 +942,7 @@ def get_wdog_timing(ramdump):
...
@@ -936,6 +942,7 @@ def get_wdog_timing(ramdump):
print_out_str
(
'
Current jiffies crossed pet_timer expires jiffies
'
)
print_out_str
(
'
Current jiffies crossed pet_timer expires jiffies
'
)
print_out_str
(
'
CPU online bits: {0:b}
'
.
format
(
cpu_online_bits
))
print_out_str
(
'
CPU online bits: {0:b}
'
.
format
(
cpu_online_bits
))
print_out_str
(
'
CPU isolated bits: {0:b}
'
.
format
(
cpu_isolated_bits
))
print_out_str
(
'
pet_timer_expires: {0}
'
.
format
(
pet_timer_expires
))
print_out_str
(
'
pet_timer_expires: {0}
'
.
format
(
pet_timer_expires
))
print_out_str
(
'
Current jiffies : {0}
'
.
format
(
jiffies
))
print_out_str
(
'
Current jiffies : {0}
'
.
format
(
jiffies
))
print_out_str
(
print_out_str
(
...
...
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