3
0
Fork 0
forked from mirrors/linux
kernel/scripts/gdb/linux
Ilya Leoshkevich 3545414f25 scripts/gdb/symbols: factor out get_vmlinux()
Patch series "scripts/gdb/symbols: determine KASLR offset on s390 during
early boot".

I noticed that debugging s390 early boot using the support I introduced in
commit 28939c3e99 ("scripts/gdb/symbols: determine KASLR offset on
s390") does not work.

The reason is that decompressor does not provide the vmcoreinfo note, so
KASLR offset needs to be extracted in a different way, which this series
implements.  Patches 1-2 are trivial refactorings, and patch 3 is the
implementation.


This patch (of 3):

Move the code that determines the current vmlinux file into a separate
function.  It will be useful later in order to analyze the kernel image in
physical memory during s390 early boot.

Link: https://lkml.kernel.org/r/20250515155811.114392-1-iii@linux.ibm.com
Link: https://lkml.kernel.org/r/20250515155811.114392-2-iii@linux.ibm.com
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Kieran Bingham <kbingham@kernel.org>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-05-21 10:48:24 -07:00
..
.gitignore
__init__.py
clk.py
config.py
constants.py.in S390: 2024-03-15 13:03:13 -07:00
cpus.py scripts/gdb: update documentation for lx_per_cpu 2025-05-11 17:54:13 -07:00
device.py scripts/gdb: fix lx-device-list-bus and lx-device-list-class 2023-12-06 16:12:49 -08:00
dmesg.py
genpd.py
interrupts.py genirq: Convert kstat_irqs to a struct 2024-04-12 17:08:05 +02:00
kasan.py scripts/gdb: add 'lx-kasan_mem_to_shadow' command 2024-09-01 20:43:29 -07:00
lists.py
Makefile kbuild: scripts/gdb: bring the "abspath" back 2024-06-27 04:20:32 +09:00
mm.py scripts/gdb: change VA_BITS_MIN when we use 16K page 2024-06-28 19:36:29 -07:00
modules.py gdb: lx-symbols: do not error out on monolithic build 2024-11-14 22:51:14 -08:00
page_owner.py scripts/gdb: remove exception handling and refine print format 2023-12-10 17:21:49 -08:00
pgtable.py scripts/gdb/aarch64: add aarch64 page operation helper commands and configs 2023-08-21 13:46:22 -07:00
proc.py scripts/gdb: fix lx-mounts command error 2024-09-01 20:43:28 -07:00
radixtree.py
rbtree.py scripts/gdb: add iteration function for rbtree 2024-09-01 20:43:28 -07:00
slab.py scripts/gdb: remove exception handling and refine print format 2023-12-10 17:21:49 -08:00
stackdepot.py scripts/gdb: add 'lx-stack_depot_lookup' command. 2024-09-01 20:43:28 -07:00
symbols.py scripts/gdb/symbols: factor out get_vmlinux() 2025-05-21 10:48:24 -07:00
tasks.py scripts/gdb: make get_thread_info accept pointers 2024-05-08 08:41:28 -07:00
timerlist.py scripts/gdb: fix timerlist parsing issue 2024-09-01 20:43:28 -07:00
utils.py scripts/gdb/symbols: factor out get_vmlinux() 2025-05-21 10:48:24 -07:00
vfs.py
vmalloc.py scripts/gdb/vmalloc: fix vmallocinfo error 2024-02-21 16:00:02 -08:00