On Mon, Mar 23, 2026 at 09:43:59PM +0300, Alexey Dobriyan wrote:
On Mon, Mar 23, 2026 at 12:48:55PM -0400, Sasha Levin wrote:
 Function parameters (paraminfo_demo_crash):
  uts      (struct new_utsname *) = 0xffffffffb8ca8d00
   .sysname = "Linux"                        .nodename = "localhost"
   .release = "7.0.0-rc2-00006-g3190..."     .version = "#45 SMP PRE"
  file     (struct file *       ) = 0xffffa0a3c250acc0
   .f_mode = (fmode_t)67993630               .f_op = (struct file_operations 
*)0xffffffffb7237620
   .f_flags = (unsigned int)32769            .f_cred = (struct cred 
*)0xffffa0a3c2e06a80
   .dentry = (struct dentry *)0xffffa0a3c0978cc0

Should this be in crash's format?

        struct dentry ffffffffffff0000

The format currently used comes from the kernel's own BTF show infrastructure.
crash's struct dentry ffffffffffff0000 syntax is specific to crash. drgn, GDB,
bpftool, and the kernel's own BTF rendering all use the (struct type *)0xaddr
notation we're already using. Adopting crash's format would make this output
inconsistent with all other BTF-based output in the kernel, and would also lose
the member name context (.dentry).

--
Thanks,
Sasha

Reply via email to