From 1402e7d5d77c2faceeb68bac4b36ebd935c5192d Mon Sep 17 00:00:00 2001 From: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org> Date: Thu, 20 Oct 2016 18:00:31 -0700 Subject: [PATCH] lrdp-v2: print tick_do_timer_cpu as part of timerlist tick_do_timer_cpu helps in debugging issues by holding CPU number, which owns update jiffies functionality. Change-Id: I576a2970af0c1479ba956fd97896d4924670f4a1 --- linux-ramdump-parser-v2/parsers/timerlist.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/linux-ramdump-parser-v2/parsers/timerlist.py b/linux-ramdump-parser-v2/parsers/timerlist.py index 895638e..c1b7318 100755 --- a/linux-ramdump-parser-v2/parsers/timerlist.py +++ b/linux-ramdump-parser-v2/parsers/timerlist.py @@ -1,4 +1,4 @@ -# Copyright (c) 2015, The Linux Foundation. All rights reserved. +# Copyright (c) 2015-2016, 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 @@ -137,6 +137,12 @@ class TimerList(RamParser) : self.iterate_vec(vec, base) self.print_vec(vec) + tick_do_timer_cpu_addr = self.ramdump.address_of('tick_do_timer_cpu') + tick_do_timer_cpu_val = "tick_do_timer_cpu: {0}\n".format(self.ramdump.read_int(tick_do_timer_cpu_addr)) + self.output_file.write("=" * len(tick_do_timer_cpu_val) + "\n") + self.output_file.write(tick_do_timer_cpu_val) + self.output_file.write("=" * len(tick_do_timer_cpu_val) + "\n") + def parse(self): self.output_file = self.ramdump.open_file('timerlist.txt') self.get_timer_list() -- GitLab