From: Damien Le Moal <dlemoal@kernel.org>
To: Johannes Thumshirn <johannes.thumshirn@wdc.com>, axboe@kernel.dk
Cc: chaitanyak@nvidia.com, hare@suse.de, hch@lst.de,
john.g.garry@oracle.com, linux-block@vger.kernel.org,
linux-btrace@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-trace-kernel@vger.kernel.org, martin.petersen@oracle.com,
mathieu.desnoyers@efficios.com, mhiramat@kernel.org,
naohiro.aota@wdc.com, rostedt@goodmis.org,
shinichiro.kawasaki@wdc.com
Subject: Re: [PATCH v4 10/16] blktrace: differentiate between blk_io_trace versions
Date: Wed, 22 Oct 2025 05:54:13 +0900 [thread overview]
Message-ID: <7a366bbf-49e9-4b53-bbd4-4a28454f8f90@kernel.org> (raw)
In-Reply-To: <20251020134123.119058-11-johannes.thumshirn@wdc.com>
On 10/20/25 22:41, Johannes Thumshirn wrote:
> Differentiate between blk_io_trace and blk_io_trace2 when relaying to
> user-space depending on which version has been requested by the blktrace
> utility.
>
> Reviewed-by: Christoph Hellwig <hch@lst.de>
> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
One nit below.
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
> @@ -146,8 +202,8 @@ static void trace_note(struct blk_trace *bt, pid_t pid, u64 action,
> if (!bt->rchan)
> return;
>
> - relay_blktrace_event(bt, 0, pid, cpu, 0, 0, action, 0, cgid,
> - cgid_len, (void *)data, len);
> + relay_blktrace_event(bt, 0, pid, cpu, 0, 0, action, 0, cgid, cgid_len,
> + (void *)data, len);
You are not changing anything here, so this is just churn...
Not a huge problem, but not needed.
> }
>
> /*
--
Damien Le Moal
Western Digital Research
next prev parent reply other threads:[~2025-10-21 20:54 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-20 13:41 [PATCH v4 00/16] block: add blktrace support for zoned block devies Johannes Thumshirn
2025-10-20 13:41 ` [PATCH v4 01/16] blktrace: only calculate trace length once Johannes Thumshirn
2025-10-20 13:41 ` [PATCH v4 02/16] blktrace: factor out recording a blktrace event Johannes Thumshirn
2025-10-20 13:41 ` [PATCH v4 03/16] blktrace: split out relaying " Johannes Thumshirn
2025-10-20 13:41 ` [PATCH v4 04/16] blktrace: untangle if/else sequence in __blk_add_trace Johannes Thumshirn
2025-10-20 13:41 ` [PATCH v4 05/16] blktrace: change the internal action to 64bit Johannes Thumshirn
2025-10-20 13:41 ` [PATCH v4 06/16] blktrace: split do_blk_trace_setup into two functions Johannes Thumshirn
2025-10-20 13:41 ` [PATCH v4 07/16] blktrace: add definitions for blk_user_trace_setup2 Johannes Thumshirn
2025-10-20 13:41 ` [PATCH v4 08/16] blktrace: pass blk_user_trace2 to setup functions Johannes Thumshirn
2025-10-20 13:41 ` [PATCH v4 09/16] blktrace: add definitions for struct blk_io_trace2 Johannes Thumshirn
2025-10-21 20:51 ` Damien Le Moal
2025-10-20 13:41 ` [PATCH v4 10/16] blktrace: differentiate between blk_io_trace versions Johannes Thumshirn
2025-10-21 20:54 ` Damien Le Moal [this message]
2025-10-20 13:41 ` [PATCH v4 11/16] blktrace: move trace_note to blk_io_trace2 Johannes Thumshirn
2025-10-21 20:55 ` Damien Le Moal
2025-10-20 13:41 ` [PATCH v4 12/16] blktrace: move ftrace blk_io_tracer " Johannes Thumshirn
2025-10-21 20:55 ` Damien Le Moal
2025-10-20 13:41 ` [PATCH v4 13/16] blktrace: add block trace commands for zone operations Johannes Thumshirn
2025-10-21 20:57 ` Damien Le Moal
2025-10-20 13:41 ` [PATCH v4 14/16] blktrace: expose ZONE APPEND completions to blktrace Johannes Thumshirn
2025-10-20 13:41 ` [PATCH v4 15/16] blktrace: trace zone write plugging operations Johannes Thumshirn
2025-10-20 13:41 ` [PATCH v4 16/16] blktrace: handle BLKTRACESETUP2 ioctl Johannes Thumshirn
2025-10-21 2:25 ` [PATCH v4 00/16] block: add blktrace support for zoned block devies Martin K. Petersen
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=7a366bbf-49e9-4b53-bbd4-4a28454f8f90@kernel.org \
--to=dlemoal@kernel.org \
--cc=axboe@kernel.dk \
--cc=chaitanyak@nvidia.com \
--cc=hare@suse.de \
--cc=hch@lst.de \
--cc=johannes.thumshirn@wdc.com \
--cc=john.g.garry@oracle.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-btrace@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=mathieu.desnoyers@efficios.com \
--cc=mhiramat@kernel.org \
--cc=naohiro.aota@wdc.com \
--cc=rostedt@goodmis.org \
--cc=shinichiro.kawasaki@wdc.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;
as well as URLs for NNTP newsgroup(s).