1# 2# gdb helper commands and functions for Linux kernel debugging 3# 4# VFS tools 5# 6# Copyright (c) 2023 Glenn Washburn 7# Copyright (c) 2016 Linaro Ltd 8# 9# Authors: 10# Glenn Washburn <[email protected]> 11# Kieran Bingham <[email protected]> 12# 13# This work is licensed under the terms of the GNU GPL version 2. 14# 15 16 17def dentry_name(d): 18 parent = d['d_parent'] 19 if parent == d or parent == 0: 20 return "" 21 p = dentry_name(d['d_parent']) + "/" 22 return p + d['d_iname'].string() 23