From: Ilya Leoshkevich <iii@linux.ibm.com>
To: Jan Kiszka <jan.kiszka@siemens.com>,
Alexei Starovoitov <ast@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
Andrii Nakryiko <andrii@kernel.org>,
Kieran Bingham <kbingham@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, bpf@vger.kernel.org,
Heiko Carstens <hca@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Alexander Gordeev <agordeev@linux.ibm.com>,
Ilya Leoshkevich <iii@linux.ibm.com>
Subject: [PATCH v2 0/2] scripts/gdb/symbols: make BPF debug info available to GDB
Date: Thu, 6 Nov 2025 13:43:40 +0100 [thread overview]
Message-ID: <20251106124600.86736-1-iii@linux.ibm.com> (raw)
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
next reply other threads:[~2025-11-06 12:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-06 12:43 Ilya Leoshkevich [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251106124600.86736-1-iii@linux.ibm.com \
--to=iii@linux.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=jan.kiszka@siemens.com \
--cc=kbingham@kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).