Skip to contentSkip to conversation

scripts-gdb-provide-a-dentry_name-vfs-path-helper.patch removed from -mm tree

merged [email protected] 1 participant 1 message May 27, 2016

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: scripts/gdb: provide a dentry_name VFS path helper
has been removed from the -mm tree. Its filename was
scripts-gdb-provide-a-dentry_name-vfs-path-helper.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Kieran Bingham <[email protected]>
Subject: scripts/gdb: provide a dentry_name VFS path helper

Walk the VFS entries, pre-pending the iname strings to generate a full VFS path name from a dentry.

---

 scripts/gdb/linux/utils.py |    8 ++++++++
 1 file changed, 8 insertions(+)
scripts/gdb/linux/utils.py renamed from scripts/gdb/linux/utils.py~scripts-gdb-provide-a-dentry_name-vfs-path-helper +8 -0
diff -puN scripts/gdb/linux/utils.py~scripts-gdb-provide-a-dentry_name-vfs-path-helper scripts/gdb/linux/utils.py
@@ -161,3 +161,11 @@ def gdb_eval_or_none(expresssion):
         return gdb.parse_and_eval(expresssion)
     except:
         return None
+
+
+def dentry_name(d):
+    parent = d['d_parent']
+    if parent == d or parent == 0:
+        return ""
+    p = dentry_name(d['d_parent']) + "/"
+    return p + d['d_iname'].string()

_

Patches currently in -mm which might be from [email protected] are