mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	scripts/gdb: fix dentry_name() lookup
The "d_iname" member was replaced with "d_shortname.string" in the commit
referenced in the Fixes tag.  This prevented the GDB script "lx-mount"
command to properly function:
(gdb) lx-mounts
      mount          super_block     devname pathname fstype options
0xff11000002d21180 0xff11000002d24800 rootfs / rootfs rw 0 0
0xff11000002e18a80 0xff11000003713000 /dev/root / ext4 rw,relatime 0 0
Python Exception <class 'gdb.error'>: There is no member named d_iname.
Error occurred in Python: There is no member named d_iname.
Link: https://lkml.kernel.org/r/20250619225105.320729-1-florian.fainelli@broadcom.com
Fixes: 58cf9c383c ("dcache: back inline names with a struct-wrapped array of unsigned long")
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Jan Kara <jack@suse.cz>
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Jeff Layton <jlayton@kernel.org>
Cc: Kieran Bingham <kbingham@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
			
			
This commit is contained in:
		
							parent
							
								
									4f489fe6af
								
							
						
					
					
						commit
						79300ac805
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -22,7 +22,7 @@ def dentry_name(d): | ||||||
|     if parent == d or parent == 0: |     if parent == d or parent == 0: | ||||||
|         return "" |         return "" | ||||||
|     p = dentry_name(d['d_parent']) + "/" |     p = dentry_name(d['d_parent']) + "/" | ||||||
|     return p + d['d_iname'].string() |     return p + d['d_shortname']['string'].string() | ||||||
| 
 | 
 | ||||||
| class DentryName(gdb.Function): | class DentryName(gdb.Function): | ||||||
|     """Return string of the full path of a dentry. |     """Return string of the full path of a dentry. | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Florian Fainelli
						Florian Fainelli