[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240322002805.fbfe11e4f8f02e701d8d0c91@kernel.org>
Date: Fri, 22 Mar 2024 00:28:05 +0900
From: Masami Hiramatsu (Google) <mhiramat@...nel.org>
To: Masami Hiramatsu (Google) <mhiramat@...nel.org>
Cc: Steven Rostedt <rostedt@...dmis.org>, Ye Bin <yebin10@...wei.com>,
<mathieu.desnoyers@...icios.com>, <linux-trace-kernel@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v7 1/5] tracing/probes: support '%pd' type for print
struct dentry's name
On Fri, 22 Mar 2024 00:07:59 +0900
Masami Hiramatsu (Google) <mhiramat@...nel.org> wrote:
> > What would be really useful is if we had a way to expose BTF here. Something like:
> >
> > "%pB:<struct>:<field>"
> >
> > The "%pB" would mean to look up the struct/field offsets and types via BTF,
> > and create the appropriate command to find and print it.
>
> Would you mean casing the pointer to "<struct>"?
BTW, for this BTF type casting, I would like to make it more naturally, like
(<struct> *)$arg1-><field> as same as other BTF args.
Thank you,
--
Masami Hiramatsu (Google) <mhiramat@...nel.org>
Powered by blists - more mailing lists