public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] scripts/gdb/symbols: make BPF debug info available to GDB
@ 2025-11-06 12:43 Ilya Leoshkevich
  2025-11-06 12:43 ` [PATCH v2 1/2] scripts/gdb/radix-tree: add lx-radix-tree-command Ilya Leoshkevich
  2025-11-06 12:43 ` [PATCH v2 2/2] scripts/gdb/symbols: make BPF debug info available to GDB Ilya Leoshkevich
  0 siblings, 2 replies; 3+ messages in thread
From: Ilya Leoshkevich @ 2025-11-06 12:43 UTC (permalink / raw)
  To: Jan Kiszka, Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Kieran Bingham, Andrew Morton
  Cc: linux-kernel, bpf, Heiko Carstens, Vasily Gorbik,
	Alexander Gordeev, Ilya Leoshkevich

v1: https://lore.kernel.org/bpf/20250710115920.47740-1-iii@linux.ibm.com/
v1 -> v2: Hide the feature behind the -bpf flag for performance reasons
          (Jan).
          Fix running lx-symbols twice.


Hi,

This series greatly simplifies debugging BPF progs when using QEMU
gdbstub by providing symbol names, sizes, and line numbers to GDB.

Patch 1 adds radix tree iteration, which is necessary for parsing
prog_idr. Patch 2 is the actual implementation; its description
contains some details on how to use this.

Best regards,
Ilya

Ilya Leoshkevich (2):
  scripts/gdb/radix-tree: add lx-radix-tree-command
  scripts/gdb/symbols: make BPF debug info available to GDB

 scripts/gdb/linux/bpf.py          | 253 ++++++++++++++++++++++++++++++
 scripts/gdb/linux/constants.py.in |   3 +
 scripts/gdb/linux/radixtree.py    | 139 +++++++++++++++-
 scripts/gdb/linux/symbols.py      | 105 +++++++++++--
 4 files changed, 481 insertions(+), 19 deletions(-)
 create mode 100644 scripts/gdb/linux/bpf.py

-- 
2.51.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-11-06 12:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-06 12:43 [PATCH v2 0/2] scripts/gdb/symbols: make BPF debug info available to GDB Ilya Leoshkevich
2025-11-06 12:43 ` [PATCH v2 1/2] scripts/gdb/radix-tree: add lx-radix-tree-command Ilya Leoshkevich
2025-11-06 12:43 ` [PATCH v2 2/2] scripts/gdb/symbols: make BPF debug info available to GDB Ilya Leoshkevich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox