[PATCH 0/2] GDB VFS utils

Glenn Washburn posted 2 patches 3 years, 1 month ago
scripts/gdb/linux/proc.py  | 15 +++++-----
scripts/gdb/linux/utils.py |  8 ------
scripts/gdb/linux/vfs.py   | 59 ++++++++++++++++++++++++++++++++++++++
scripts/gdb/vmlinux-gdb.py |  1 +
4 files changed, 68 insertions(+), 15 deletions(-)
create mode 100644 scripts/gdb/linux/vfs.py
[PATCH 0/2] GDB VFS utils
Posted by Glenn Washburn 3 years, 1 month ago
Hi all,

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.

Glenn

Glenn Washburn (2):
  scripts/gdb: Create linux/vfs.py for VFS related GDB helpers
  scripts/gdb: Add GDB convenience functions $lx_dentry_name() and
    $lx_i_dentry()

 scripts/gdb/linux/proc.py  | 15 +++++-----
 scripts/gdb/linux/utils.py |  8 ------
 scripts/gdb/linux/vfs.py   | 59 ++++++++++++++++++++++++++++++++++++++
 scripts/gdb/vmlinux-gdb.py |  1 +
 4 files changed, 68 insertions(+), 15 deletions(-)
 create mode 100644 scripts/gdb/linux/vfs.py

-- 
2.30.2
Re: [PATCH 0/2] GDB VFS utils
Posted by Florian Fainelli 2 years, 12 months ago
On 2/28/23 16:53, Glenn Washburn wrote:
> Hi all,
> 
> 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.

Andrew, any chance you could pick up those two patches from Glenn:

https://lore.kernel.org/all/7bba4c065a8c2c47f1fc5b03a7278005b04db251.1677631565.git.development@efficientek.com/
https://lore.kernel.org/all/c9a5ad8efbfbd2cc6559e082734eed7628f43a16.1677631565.git.development@efficientek.com/

Thanks!
-- 
Florian