Re: [PATCH v2 1/3] scripts/gdb/tasks: Fix lx-ps command error

From: Florian Fainelli
Date: Wed Nov 29 2023 - 17:33:28 EST


On 11/28/23 22:51, Kuan-Ying Lee wrote:
Since commit 8e1f385104ac ("kill task_struct->thread_group") remove
the thread_group, we will encounter below issue.

(gdb) lx-ps
TASK PID COMM
0xffff800086503340 0 swapper/0
Python Exception <class 'gdb.error'>: There is no member named thread_group.
Error occurred in Python: There is no member named thread_group.

We use signal->thread_head to iterate all threads instead.

Fixes: 8e1f385104ac ("kill task_struct->thread_group")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Kuan-Ying Lee <Kuan-Ying.Lee@xxxxxxxxxxxx>

Tested-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
--
Florian