From: "Peter Wang (王信友)" <peter.wang@mediatek.com>
To: "avri.altman@wdc.com" <avri.altman@wdc.com>,
"jejb@linux.ibm.com" <jejb@linux.ibm.com>,
"subhashj@codeaurora.org" <subhashj@codeaurora.org>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"bvanassche@acm.org" <bvanassche@acm.org>,
"alim.akhtar@samsung.com" <alim.akhtar@samsung.com>,
"sutoshd@codeaurora.org" <sutoshd@codeaurora.org>,
"martin.petersen@oracle.com" <martin.petersen@oracle.com>
Cc: "Alice Chao (趙珮均)" <Alice.Chao@mediatek.com>,
"CC Chou (周志杰)" <cc.chou@mediatek.com>,
"Eddie Huang (黃智傑)" <eddie.huang@mediatek.com>,
"Ed Tsai (蔡宗軒)" <Ed.Tsai@mediatek.com>,
wsd_upstream <wsd_upstream@mediatek.com>,
"Chaotian Jing (井朝天)" <Chaotian.Jing@mediatek.com>,
"Chun-Hung Wu (巫駿宏)" <Chun-hung.Wu@mediatek.com>,
"Yi-fan Peng (彭羿凡)" <Yi-fan.Peng@mediatek.com>,
"Qilin Tan (谭麒麟)" <Qilin.Tan@mediatek.com>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"Jiajie Hao (郝加节)" <jiajie.hao@mediatek.com>,
"Lin Gui (桂林)" <Lin.Gui@mediatek.com>,
"Naomi Chu (朱詠田)" <Naomi.Chu@mediatek.com>,
"Tun-yu Yu (游敦聿)" <Tun-yu.Yu@mediatek.com>
Subject: Re: [PATCH v1] ufs: core: add hba parameter to trace events
Date: Thu, 13 Feb 2025 01:58:49 +0000 [thread overview]
Message-ID: <b3efb32a6fbfeadd9d9c98fbce5024e3e85264a5.camel@mediatek.com> (raw)
In-Reply-To: <2fed801d-9cba-40cc-b50e-7ec9de041f1a@acm.org>
On Wed, 2025-02-12 at 10:56 -0800, Bart Van Assche wrote:
>
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
>
>
> On 2/12/25 2:14 AM, peter.wang@mediatek.com wrote:
> > diff --git a/drivers/ufs/core/ufs_trace.h
> > b/drivers/ufs/core/ufs_trace.h
> > index 84deca2b841d..e175020a2fcc 100644
> > --- a/drivers/ufs/core/ufs_trace.h
> > +++ b/drivers/ufs/core/ufs_trace.h
> > @@ -83,17 +83,19 @@ UFS_CMD_TRACE_TSF_TYPES
> >
> > TRACE_EVENT(ufshcd_clk_gating,
> >
> > - TP_PROTO(const char *dev_name, int state),
> > + TP_PROTO(const char *dev_name, struct ufs_hba *hba, int
> > state),
> >
> > - TP_ARGS(dev_name, state),
> > + TP_ARGS(dev_name, hba, state),
> >
> > TP_STRUCT__entry(
> > __string(dev_name, dev_name)
> > + __field(struct ufs_hba *, hba)
> > __field(int, state)
> > ),
> >
> > TP_fast_assign(
> > __assign_str(dev_name);
> > + __entry->hba = hba;
> > __entry->state = state;
> > ),
>
> Why to include the HBA pointer in tracing events if this pointer is
> not
> used in any TP_printk() call?
>
> dev_name == dev_name(hba->dev) so the dev_name argument should be
> left
> out from all tracing events that now have a HBA pointer as argument.
>
> Thanks,
>
> Bart.
Hi Bart,
The system may have multiple HBA hosts, adding HBA helps trace
which host the event belongs to.
The dev_name will be removed in the next version,
Thanks
Peter
prev parent reply other threads:[~2025-02-13 1:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-12 10:14 [PATCH v1] ufs: core: add hba parameter to trace events peter.wang
2025-02-12 18:56 ` Bart Van Assche
2025-02-13 1:58 ` Peter Wang (王信友) [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b3efb32a6fbfeadd9d9c98fbce5024e3e85264a5.camel@mediatek.com \
--to=peter.wang@mediatek.com \
--cc=Alice.Chao@mediatek.com \
--cc=Chaotian.Jing@mediatek.com \
--cc=Chun-hung.Wu@mediatek.com \
--cc=Ed.Tsai@mediatek.com \
--cc=Lin.Gui@mediatek.com \
--cc=Naomi.Chu@mediatek.com \
--cc=Qilin.Tan@mediatek.com \
--cc=Tun-yu.Yu@mediatek.com \
--cc=Yi-fan.Peng@mediatek.com \
--cc=alim.akhtar@samsung.com \
--cc=avri.altman@wdc.com \
--cc=bvanassche@acm.org \
--cc=cc.chou@mediatek.com \
--cc=eddie.huang@mediatek.com \
--cc=jejb@linux.ibm.com \
--cc=jiajie.hao@mediatek.com \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=subhashj@codeaurora.org \
--cc=sutoshd@codeaurora.org \
--cc=wsd_upstream@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox