scripts/gdb: create linux/vfs.py for VFS related GDB helpers
authorGlenn Washburn <development@efficientek.com>
Wed, 1 Mar 2023 00:53:34 +0000 (18:53 -0600)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Apr 2023 23:39:34 +0000 (16:39 -0700)
commitf4efbdaf59e959507a1a931ec4afecdfb09db76e
tree732a0a10444b728e819b39a8e0fc2f923dcb7d18
parent31088f6f7906253ef4577f6a9b84e2d42447dba0
scripts/gdb: create linux/vfs.py for VFS related GDB helpers

Patch series "GDB VFS utils".

I've created a couple GDB convenience functions that I found useful when
debugging some VFS issues and figure others might find them useful.  For
instance, they are useful in setting conditional breakpoints on VFS
functions where you only care if the dentry path is a certain value.  I
took the opportunity to create a new "vfs" python module to give VFS
related utilities a home.

This patch (of 2):

This will allow for more VFS specific GDB helpers to be collected in one
place.  Move utils.dentry_name into the vfs modules.  Also a local
variable in proc.py was changed from vfs to mnt to prevent a naming
collision with the new vfs module.

[akpm@linux-foundation.org: add SPDX-License-Identifier]
Link: https://lkml.kernel.org/r/cover.1677631565.git.development@efficientek.com
Link: https://lkml.kernel.org/r/7bba4c065a8c2c47f1fc5b03a7278005b04db251.1677631565.git.development@efficientek.com
Signed-off-by: Glenn Washburn <development@efficientek.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Antonio Borneo <antonio.borneo@foss.st.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Cc: John Ogness <john.ogness@linutronix.de>
Cc: Kieran Bingham <kbingham@kernel.org>
Cc: Petr Mladek <pmladek@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/gdb/linux/proc.py
scripts/gdb/linux/utils.py
scripts/gdb/linux/vfs.py [new file with mode: 0644]
scripts/gdb/vmlinux-gdb.py