Skip to content
Snippets Groups Projects
Commit cfebbeeb authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "lrdp_v2 : Parse additional info in watchdog_v2.py"

parents ec4f9c95 9736611d
No related branches found
No related tags found
No related merge requests found
# Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. # Copyright (c) 2012-2019, 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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment