From: Bart Van Assche <bvanassche@acm.org>
To: peter.wang@mediatek.com, linux-scsi@vger.kernel.org,
martin.petersen@oracle.com, avri.altman@wdc.com,
alim.akhtar@samsung.com, jejb@linux.ibm.com,
subhashj@codeaurora.org, sutoshd@codeaurora.org
Cc: wsd_upstream@mediatek.com, linux-mediatek@lists.infradead.org,
chun-hung.wu@mediatek.com, alice.chao@mediatek.com,
cc.chou@mediatek.com, chaotian.jing@mediatek.com,
jiajie.hao@mediatek.com, yi-fan.peng@mediatek.com,
qilin.tan@mediatek.com, lin.gui@mediatek.com,
tun-yu.yu@mediatek.com, eddie.huang@mediatek.com,
naomi.chu@mediatek.com, ed.tsai@mediatek.com
Subject: Re: [PATCH v1] ufs: core: add hba parameter to trace events
Date: Wed, 12 Feb 2025 10:56:53 -0800 [thread overview]
Message-ID: <2fed801d-9cba-40cc-b50e-7ec9de041f1a@acm.org> (raw)
In-Reply-To: <20250212101723.716477-1-peter.wang@mediatek.com>
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.
next prev parent reply other threads:[~2025-02-12 18:57 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 [this message]
2025-02-13 1:58 ` Peter Wang (王信友)
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=2fed801d-9cba-40cc-b50e-7ec9de041f1a@acm.org \
--to=bvanassche@acm.org \
--cc=alice.chao@mediatek.com \
--cc=alim.akhtar@samsung.com \
--cc=avri.altman@wdc.com \
--cc=cc.chou@mediatek.com \
--cc=chaotian.jing@mediatek.com \
--cc=chun-hung.wu@mediatek.com \
--cc=ed.tsai@mediatek.com \
--cc=eddie.huang@mediatek.com \
--cc=jejb@linux.ibm.com \
--cc=jiajie.hao@mediatek.com \
--cc=lin.gui@mediatek.com \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=naomi.chu@mediatek.com \
--cc=peter.wang@mediatek.com \
--cc=qilin.tan@mediatek.com \
--cc=subhashj@codeaurora.org \
--cc=sutoshd@codeaurora.org \
--cc=tun-yu.yu@mediatek.com \
--cc=wsd_upstream@mediatek.com \
--cc=yi-fan.peng@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