diff options
author | Glenn Washburn <[email protected]> | 2023-02-28 18:53:34 -0600 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-04-18 16:39:34 -0700 |
commit | f4efbdaf59e959507a1a931ec4afecdfb09db76e (patch) | |
tree | 732a0a10444b728e819b39a8e0fc2f923dcb7d18 /scripts/gdb/vmlinux-gdb.py | |
parent | 31088f6f7906253ef4577f6a9b84e2d42447dba0 (diff) |
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.
[[email protected]: add SPDX-License-Identifier]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/7bba4c065a8c2c47f1fc5b03a7278005b04db251.1677631565.git.development@efficientek.com
Signed-off-by: Glenn Washburn <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Antonio Borneo <[email protected]>
Cc: Jan Kiszka <[email protected]>
Cc: John Ogness <[email protected]>
Cc: Kieran Bingham <[email protected]>
Cc: Petr Mladek <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/gdb/vmlinux-gdb.py')
-rw-r--r-- | scripts/gdb/vmlinux-gdb.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/gdb/vmlinux-gdb.py b/scripts/gdb/vmlinux-gdb.py index 2a72f91059b5..2d32308c3f7a 100644 --- a/scripts/gdb/vmlinux-gdb.py +++ b/scripts/gdb/vmlinux-gdb.py @@ -40,6 +40,7 @@ else: import linux.clk import linux.genpd import linux.device + import linux.vfs import linux.mm import linux.radixtree import linux.interrupts |