# # gdb helper commands and functions for Linux kernel debugging # # VFS tools # # Copyright (c) 2023 Glenn Washburn # Copyright (c) 2016 Linaro Ltd # # Authors: # Glenn Washburn <development@efficientek.com> # Kieran Bingham <kieran.bingham@linaro.org> # # This work is licensed under the terms of the GNU GPL version 2. #
import gdb from linux import utils
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_name']['name'].string()
class DentryName(gdb.Function): """Return string of the full path of a dentry.
$lx_dentry_name(PTR): Given PTR to a dentry struct, return a string
of the full path of the dentry."""
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.