# Re: \[PATCH 01/02\] scripts/gdb/cpus: Add support for get\_current\_task for powerpc book3s64

- From: Ritesh Harjani (IBM) \<ritesh.list@gmail.com\>
- Date: 2025-10-30 04:35:10 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2025/10/3274087
- Thread: https://ratatoskr.run/linuxppc-dev/2025/08/3193316/t.md

```text
"Ritesh Harjani (IBM)" [ref] writes:

> This adds support to query p $lx_current() for ppc64 book3s64.
> This allows us to utilize gdb scripts functions like:
>
> function lx_current
> function lx_task_by_pid
> function lx_thread_info
> function lx_thread_info_by_pid
>
> e.g.
> (gdb) p $lx_current()->comm
> $1 = "swapper\000\000\000\000\000\000\000\00
>
> Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
> ---
>  scripts/gdb/linux/constants.py.in |  1 +
>  scripts/gdb/linux/cpus.py         | 17 ++++++++++++++++-
>  2 files changed, 17 insertions(+), 1 deletion(-)

Hi Jan, 

These patches still cleanly applies on upstream tree. Any plans to pick
this up?

-ritesh

```
