[PATCH 0/2] scripts/gdb/symbols: make lx-symbols skip the s390 decompressor

Ilya Leoshkevich posted 2 patches 3 months, 2 weeks ago
arch/s390/boot/Makefile      |  2 +-
arch/s390/boot/boot.h        |  1 +
arch/s390/boot/ipl_data.c    |  9 ++++++++-
arch/s390/boot/startup.c     |  2 +-
arch/s390/boot/trampoline.S  |  9 +++++++++
scripts/gdb/linux/symbols.py | 26 ++++++++++++++++++++++++++
6 files changed, 46 insertions(+), 3 deletions(-)
create mode 100644 arch/s390/boot/trampoline.S
[PATCH 0/2] scripts/gdb/symbols: make lx-symbols skip the s390 decompressor
Posted by Ilya Leoshkevich 3 months, 2 weeks ago
Hi,

In order to debug the early s390 kernel boot, one has to skip the
decompressor code, which requires some private scripts or memorized
commands. This series makes it work out of the box with the lx-symbols
command.

Patch 1 adds helper infrastructure to the s390 decompressor code; it is
already acked by Heiko.

Patch 2 is the implementation; it would be great to have an Ack from
one of the GDB scripts maintainers.

We would like to get this series via the s390 tree, if possible.

Best regards,
Ilya

Ilya Leoshkevich (2):
  s390/boot: Introduce jump_to_kernel() function
  scripts/gdb/symbols: make lx-symbols skip the s390 decompressor

 arch/s390/boot/Makefile      |  2 +-
 arch/s390/boot/boot.h        |  1 +
 arch/s390/boot/ipl_data.c    |  9 ++++++++-
 arch/s390/boot/startup.c     |  2 +-
 arch/s390/boot/trampoline.S  |  9 +++++++++
 scripts/gdb/linux/symbols.py | 26 ++++++++++++++++++++++++++
 6 files changed, 46 insertions(+), 3 deletions(-)
 create mode 100644 arch/s390/boot/trampoline.S

-- 
2.49.0
Re: [PATCH 0/2] scripts/gdb/symbols: make lx-symbols skip the s390 decompressor
Posted by Alexander Gordeev 3 months ago
On Wed, Jun 25, 2025 at 05:36:50PM +0200, Ilya Leoshkevich wrote:
> Hi,
> 
> In order to debug the early s390 kernel boot, one has to skip the
> decompressor code, which requires some private scripts or memorized
> commands. This series makes it work out of the box with the lx-symbols
> command.
> 
> Patch 1 adds helper infrastructure to the s390 decompressor code; it is
> already acked by Heiko.
> 
> Patch 2 is the implementation; it would be great to have an Ack from
> one of the GDB scripts maintainers.
> 
> We would like to get this series via the s390 tree, if possible.
> 
> Best regards,
> Ilya
> 
> Ilya Leoshkevich (2):
>   s390/boot: Introduce jump_to_kernel() function
>   scripts/gdb/symbols: make lx-symbols skip the s390 decompressor
> 
>  arch/s390/boot/Makefile      |  2 +-
>  arch/s390/boot/boot.h        |  1 +
>  arch/s390/boot/ipl_data.c    |  9 ++++++++-
>  arch/s390/boot/startup.c     |  2 +-
>  arch/s390/boot/trampoline.S  |  9 +++++++++
>  scripts/gdb/linux/symbols.py | 26 ++++++++++++++++++++++++++
>  6 files changed, 46 insertions(+), 3 deletions(-)
>  create mode 100644 arch/s390/boot/trampoline.S

Applied, thanks!
Re: [PATCH PING 0/2] scripts/gdb/symbols: make lx-symbols skip the s390 decompressor
Posted by Ilya Leoshkevich 3 months ago
On Wed, 2025-06-25 at 17:36 +0200, Ilya Leoshkevich wrote:
> Hi,
> 
> In order to debug the early s390 kernel boot, one has to skip the
> decompressor code, which requires some private scripts or memorized
> commands. This series makes it work out of the box with the lx-
> symbols
> command.
> 
> Patch 1 adds helper infrastructure to the s390 decompressor code; it
> is
> already acked by Heiko.
> 
> Patch 2 is the implementation; it would be great to have an Ack from
> one of the GDB scripts maintainers.
> 
> We would like to get this series via the s390 tree, if possible.
> 
> Best regards,
> Ilya
> 
> Ilya Leoshkevich (2):
>   s390/boot: Introduce jump_to_kernel() function
>   scripts/gdb/symbols: make lx-symbols skip the s390 decompressor
> 
>  arch/s390/boot/Makefile      |  2 +-
>  arch/s390/boot/boot.h        |  1 +
>  arch/s390/boot/ipl_data.c    |  9 ++++++++-
>  arch/s390/boot/startup.c     |  2 +-
>  arch/s390/boot/trampoline.S  |  9 +++++++++
>  scripts/gdb/linux/symbols.py | 26 ++++++++++++++++++++++++++
>  6 files changed, 46 insertions(+), 3 deletions(-)
>  create mode 100644 arch/s390/boot/trampoline.S

Gentle ping. Any feedback would be greatly appreciated.
Re: [PATCH 0/2] scripts/gdb/symbols: make lx-symbols skip the s390 decompressor
Posted by Alexander Gordeev 3 months, 1 week ago
On Wed, Jun 25, 2025 at 05:36:50PM +0200, Ilya Leoshkevich wrote:
> Hi,
> 
> In order to debug the early s390 kernel boot, one has to skip the
> decompressor code, which requires some private scripts or memorized
> commands. This series makes it work out of the box with the lx-symbols
> command.
> 
> Patch 1 adds helper infrastructure to the s390 decompressor code; it is
> already acked by Heiko.
> 
> Patch 2 is the implementation; it would be great to have an Ack from
> one of the GDB scripts maintainers.
> 
> We would like to get this series via the s390 tree, if possible.
> 
> Best regards,
> Ilya
> 
> Ilya Leoshkevich (2):
>   s390/boot: Introduce jump_to_kernel() function
>   scripts/gdb/symbols: make lx-symbols skip the s390 decompressor
> 
>  arch/s390/boot/Makefile      |  2 +-
>  arch/s390/boot/boot.h        |  1 +
>  arch/s390/boot/ipl_data.c    |  9 ++++++++-
>  arch/s390/boot/startup.c     |  2 +-
>  arch/s390/boot/trampoline.S  |  9 +++++++++
>  scripts/gdb/linux/symbols.py | 26 ++++++++++++++++++++++++++
>  6 files changed, 46 insertions(+), 3 deletions(-)
>  create mode 100644 arch/s390/boot/trampoline.S

Tested-by: Alexander Gordeev <agordeev@linux.ibm.com>

Thanks!