From 24d0464eb166bcd24ff622d8b6ee5e1fe6a61089 Mon Sep 17 00:00:00 2001 From: Gopi Krishna Nedanuri <gnedanur@codeaurora.org> Date: Thu, 20 Apr 2017 14:48:03 +0530 Subject: [PATCH] lrdp_v2: Print epoch_ns and epoch_cyc Print epoch_ns and epoch_cyc useful in HLOS to QTimer time conversion. Change-Id: I949c1a3c8df4242ca2e2cd2e1b8149401da6f893 --- linux-ramdump-parser-v2/watchdog_v2.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linux-ramdump-parser-v2/watchdog_v2.py b/linux-ramdump-parser-v2/watchdog_v2.py index f74a42a..68dbdab 100755 --- a/linux-ramdump-parser-v2/watchdog_v2.py +++ b/linux-ramdump-parser-v2/watchdog_v2.py @@ -1,4 +1,4 @@ -# Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. +# Copyright (c) 2012-2017, The Linux Foundation. All rights reserved. # # 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 @@ -868,3 +868,6 @@ def get_wdog_timing(ramdump): last_jiffies_update/1000000000.0)) print_out_str('Core which updates jiffies(tick_do_timer_cpu): {0}'.format( tick_do_timer_cpu)) + epoch_ns = ramdump.read_word('cd.read_data[0].epoch_ns') + epoch_cyc = ramdump.read_word('cd.read_data[0].epoch_cyc') + print_out_str('epoch_ns: {0}ns epoch_cyc: {1}'.format(epoch_ns,epoch_cyc)) -- GitLab