From 6bb944128f28be25def8333329464b5ebfc5c131 Mon Sep 17 00:00:00 2001 From: Gopi Krishna Nedanuri <gnedanur@codeaurora.org> Date: Mon, 24 Aug 2015 10:23:30 +0530 Subject: [PATCH] linux-ramdump-parser-v2: Read last_queued and others with correct funtion There are a few variables being read with the wrong size accessor functions. Fix these. Change-Id: Id12fe14347442addc50e267240002ed416f48d49 --- linux-ramdump-parser-v2/parsers/taskdump.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux-ramdump-parser-v2/parsers/taskdump.py b/linux-ramdump-parser-v2/parsers/taskdump.py index 2944c04..96c3201 100755 --- a/linux-ramdump-parser-v2/parsers/taskdump.py +++ b/linux-ramdump-parser-v2/parsers/taskdump.py @@ -255,9 +255,9 @@ def dump_thread_group_timestamps(ramdump, thread_group, t): if next_thread_start != thread_info_task: print_out_str('!!!! Task list or Thread info corruption\n{0} {1}'.format(next_thread_start,thread_info_task)) return False - t[cpu_no].append([thread_task_name, thread_task_pid, ramdump.read_word(next_thread_last_arrival), - ramdump.read_int(next_thread_last_queued), - ramdump.read_int(next_thread_run_delay),ramdump.read_int(next_thread_pcount)]) + t[cpu_no].append([thread_task_name, thread_task_pid, ramdump.read_u64(next_thread_last_arrival), + ramdump.read_u64(next_thread_last_queued), + ramdump.read_u64(next_thread_run_delay),ramdump.read_word(next_thread_pcount)]) next_thr = ramdump.read_word(thread_group) if (next_thr == thread_group) and (next_thr != orig_thread_group): print_out_str('!!!! Cycle in thread group! The list is corrupt!\n') -- GitLab