From: Kuan-Ying Lee <kuan-ying.lee@canonical.com>
To: kuan-ying.lee@canonical.com, Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org
Subject: [PATCH 0/2] Add GDB helper commands
Date: Tue, 16 Jul 2024 11:19:01 +0800 [thread overview]
Message-ID: <20240716031902.18200-1-kuan-ying.lee@canonical.com> (raw)
I've created some useful GDB commands when I debug some
memory issues.
Patch 1:
- 'lx-stack_depot_lookup' provides users with backtrace of a handle.
Patch 2:
- 'lx-kasan_mem_to_shadow' translate the memory address
to kasan shadow memory address.
Kuan-Ying Lee (2):
scripts/gdb: Add 'lx-stack_depot_lookup' command.
scripts/gdb: Add 'lx-kasan_mem_to_shadow' command
scripts/gdb/linux/kasan.py | 44 +++++++++++++++++++++++++++++++++
scripts/gdb/linux/stackdepot.py | 27 ++++++++++++++++++++
scripts/gdb/vmlinux-gdb.py | 1 +
3 files changed, 72 insertions(+)
create mode 100644 scripts/gdb/linux/kasan.py
--
2.34.1
reply other threads:[~2024-07-16 3:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20240716031902.18200-1-kuan-ying.lee@canonical.com \
--to=kuan-ying.lee@canonical.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.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