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
cfebbeeb
Commit
cfebbeeb
authored
5 years ago
by
qctecmdr
Committed by
Gerrit - the friendly Code Review server
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge "lrdp_v2 : Parse additional info in watchdog_v2.py"
parents
ec4f9c95
9736611d
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/watchdog_v2.py
+11
-2
11 additions, 2 deletions
linux-ramdump-parser-v2/watchdog_v2.py
with
11 additions
and
2 deletions
linux-ramdump-parser-v2/watchdog_v2.py
+
11
−
2
View file @
cfebbeeb
# Copyright (c) 2012-201
8
, The Linux Foundation. All rights reserved.
# Copyright (c) 2012-201
9
, 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
...
@@ -874,11 +874,16 @@ def get_wdog_timing(ramdump):
...
@@ -874,11 +874,16 @@ def get_wdog_timing(ramdump):
wdog_data_addr
,
'
struct msm_watchdog_data
'
,
'
alive_mask.bits
'
)
wdog_data_addr
,
'
struct msm_watchdog_data
'
,
'
alive_mask.bits
'
)
tick_bc_mask
=
ramdump
.
read_word
(
'
tick_broadcast_oneshot_mask
'
)
tick_bc_mask
=
ramdump
.
read_word
(
'
tick_broadcast_oneshot_mask
'
)
tick_bc_pending_mask
=
ramdump
.
read_word
(
'
tick_broadcast_pending_mask
'
)
tick_bc_pending_mask
=
ramdump
.
read_word
(
'
tick_broadcast_pending_mask
'
)
tick_bc_force_mask
=
ramdump
.
read_word
(
'
tick_broadcast_force_mask
'
)
tick_bc_evt_dev
=
ramdump
.
read_structure_field
(
tick_bc_evt_dev
=
ramdump
.
read_structure_field
(
'
tick_broadcast_device
'
,
'
struct tick_device
'
,
'
evtdev
'
)
'
tick_broadcast_device
'
,
'
struct tick_device
'
,
'
evtdev
'
)
tick_bc_next_evt
=
ramdump
.
read_structure_field
(
tick_bc_next_evt
=
ramdump
.
read_structure_field
(
tick_bc_evt_dev
,
'
struct clock_event_device
'
,
'
next_event
'
)
tick_bc_evt_dev
,
'
struct clock_event_device
'
,
'
next_event
'
)
tick_bc_next_evt
=
ns_to_sec
(
tick_bc_next_evt
)
tick_bc_next_evt
=
ns_to_sec
(
tick_bc_next_evt
)
tick_bc_cpumask
=
ramdump
.
read_structure_field
(
tick_bc_evt_dev
,
'
struct clock_event_device
'
,
'
cpumask
'
)
tick_bc_cpumask_bits
=
ramdump
.
read_structure_field
(
tick_bc_cpumask
,
'
struct cpumask
'
,
'
bits
'
)
if
(
ramdump
.
kernel_version
>=
(
4
,
9
,
0
)):
if
(
ramdump
.
kernel_version
>=
(
4
,
9
,
0
)):
cpu_online_bits
=
ramdump
.
read_word
(
'
__cpu_online_mask
'
)
cpu_online_bits
=
ramdump
.
read_word
(
'
__cpu_online_mask
'
)
else
:
else
:
...
@@ -955,7 +960,11 @@ def get_wdog_timing(ramdump):
...
@@ -955,7 +960,11 @@ def get_wdog_timing(ramdump):
print_out_str
(
print_out_str
(
'
tick_broadcast_pending_mask: {0:08b}
'
.
format
(
tick_bc_pending_mask
))
'
tick_broadcast_pending_mask: {0:08b}
'
.
format
(
tick_bc_pending_mask
))
print_out_str
(
print_out_str
(
'
tick_broad_cast_device next_event: {0:.6f}
'
.
format
(
tick_bc_next_evt
))
'
tick_broadcast_force_mask: {0:08b}
'
.
format
(
tick_bc_force_mask
))
print_out_str
(
'
tick_broadcast_device cpumask: {0:08b}
'
.
format
(
tick_bc_cpumask_bits
))
print_out_str
(
'
tick_broadcast_device next_event: {0:.6f}
'
.
format
(
tick_bc_next_evt
))
for
i
in
range
(
0
,
ramdump
.
get_num_cpus
()):
for
i
in
range
(
0
,
ramdump
.
get_num_cpus
()):
tick_cpu_device
=
ramdump
.
address_of
(
tick_cpu_device
=
ramdump
.
address_of
(
'
tick_cpu_device
'
)
+
ramdump
.
per_cpu_offset
(
i
)
'
tick_cpu_device
'
)
+
ramdump
.
per_cpu_offset
(
i
)
...
...
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