[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231201120648.795ea00c@gandalf.local.home>
Date: Fri, 1 Dec 2023 12:06:48 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: Jeffrey Hugo <quic_jhugo@...cinc.com>
Cc: Krishna chaitanya chundru <quic_krichai@...cinc.com>,
"Manivannan Sadhasivam" <mani@...nel.org>,
"Masami Hiramatsu" <mhiramat@...nel.org>,
<linux-kernel@...r.kernel.org>, <mhi@...ts.linux.dev>,
<linux-arm-msm@...r.kernel.org>,
<linux-trace-kernel@...r.kernel.org>, <quic_vbadigan@...cinc.com>,
<quic_ramkri@...cinc.com>, <quic_nitegupt@...cinc.com>,
<quic_skananth@...cinc.com>, <quic_parass@...cinc.com>
Subject: Re: [PATCH v5] bus: mhi: host: Add tracing support
On Fri, 1 Dec 2023 10:01:33 -0700
Jeffrey Hugo <quic_jhugo@...cinc.com> wrote:
> > +DECLARE_EVENT_CLASS(mhi_process_event_ring,
> > +
> > + TP_PROTO(const char *name, void *rp, __le64 ptr,
> > + __le32 dword0, __le32 dword1),
> > +
> > + TP_ARGS(name, rp, ptr, dword0, dword1),
> > +
> > + TP_STRUCT__entry(
> > + __string(name, name)
> > + __field(__le32, dword0)
> > + __field(__le32, dword1)
> > + __field(int, state)
> > + __field(__le64, ptr)
> > + __field(void *, rp)
> > + ),
> > +
> > + TP_fast_assign(
> > + __assign_str(name, name);
> > + __entry->rp = rp;
> > + __entry->ptr = ptr;
> > + __entry->dword0 = dword0;
> > + __entry->dword1 = dword1;
> > + __entry->state = MHI_TRE_GET_EV_STATE((struct mhi_ring_element *)entry->rp);
>
> "entry"?
> Also, you have the "rp" that was passed into the trace, why not just
> directly use that?
Agreed.
-- Steve
Powered by blists - more mailing lists