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
3467778f
Commit
3467778f
authored
7 years ago
by
lnx build
Committed by
Gerrit - the friendly Code Review server
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "lrdp_v2 : Fix for broken watchdog_v2.py for kernel < 4.4"
parents
94578263
001912c1
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/watchdog_v2.py
+16
-3
16 additions, 3 deletions
linux-ramdump-parser-v2/watchdog_v2.py
with
16 additions
and
3 deletions
linux-ramdump-parser-v2/watchdog_v2.py
+
16
−
3
View file @
3467778f
...
@@ -848,9 +848,22 @@ def get_wdog_timing(ramdump):
...
@@ -848,9 +848,22 @@ def get_wdog_timing(ramdump):
wdog_data_addr
+
pet_timer_off
+
timer_expires_off
)
wdog_data_addr
+
pet_timer_off
+
timer_expires_off
)
wdog_last_pet
=
ramdump
.
read_structure_field
(
wdog_last_pet
=
ramdump
.
read_structure_field
(
wdog_data_addr
,
'
struct msm_watchdog_data
'
,
'
last_pet
'
)
wdog_data_addr
,
'
struct msm_watchdog_data
'
,
'
last_pet
'
)
timer_expired_off
=
ramdump
.
field_offset
(
#For kernel version less than 4.4, as the member variable timer_expired
'
struct msm_watchdog_data
'
,
'
timer_expired
'
)
# is not available we need to get watchdog timer expire status
pet_timer_expired
=
ramdump
.
read_word
(
wdog_data_addr
+
timer_expired_off
)
if
(
ramdump
.
kernel_version
<
(
4
,
4
)):
pet_timer_entry_offset
=
ramdump
.
field_offset
(
'
struct timer_list
'
,
'
entry
'
)
pet_timer_prev_offset
=
ramdump
.
field_offset
(
'
struct list_head
'
,
'
prev
'
)
pet_timer_entry_prev
=
ramdump
.
read_word
(
wdog_data_addr
+
pet_timer_off
+
pet_timer_entry_offset
+
pet_timer_prev_offset
)
if
(
pet_timer_entry_prev
==
'
0x200
'
):
pet_timer_expired
=
1
else
:
pet_timer_expired
=
0
else
:
timer_expired_off
=
ramdump
.
field_offset
(
'
struct msm_watchdog_data
'
,
'
timer_expired
'
)
pet_timer_expired
=
ramdump
.
read_word
(
wdog_data_addr
+
timer_expired_off
)
pet_time_off
=
ramdump
.
field_offset
(
'
struct msm_watchdog_data
'
,
'
pet_time
'
)
pet_time_off
=
ramdump
.
field_offset
(
'
struct msm_watchdog_data
'
,
'
pet_time
'
)
bark_time_off
=
ramdump
.
field_offset
(
bark_time_off
=
ramdump
.
field_offset
(
'
struct msm_watchdog_data
'
,
'
bark_time
'
)
'
struct msm_watchdog_data
'
,
'
bark_time
'
)
...
...
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