From ac3b78d1ad036ea4aa6c5f3a8c78810537cdb995 Mon Sep 17 00:00:00 2001 From: Ales Novak Date: Wed, 29 Jun 2016 13:14:35 +0200 Subject: [PATCH] Include threads into task list. --- crash/kdump/target.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crash/kdump/target.py b/crash/kdump/target.py index 8a476bb34d2..f69e65d9dbf 100644 --- a/crash/kdump/target.py +++ b/crash/kdump/target.py @@ -58,7 +58,13 @@ def setup_tasks(self): self.pid_to_task_struct = {} - for task in list_for_each_entry(task_list, init_task.type, 'tasks'): + tasks = [] + for taskg in list_for_each_entry(task_list, init_task.type, 'tasks'): + tasks.append(taskg) + for task in list_for_each_entry(taskg['thread_group'], init_task.type, 'thread_group'): + tasks.append(task) + + for task in tasks: cpu = None regs = None active = long(task.address) in rqscurrs