From: Jens Axboe <axboe@kernel.dk>
To: Chaitanya Kulkarni <ckulkarnilinux@gmail.com>,
Johannes.Thumshirn@wdc.com
Cc: linux-block@vger.kernel.org, linux-trace-kernel@vger.kernel.org,
martin.petersen@oracle.com, dlemoal@kernel.org,
mathieu.desnoyers@efficios.com, mhiramat@kernel.org,
rostedt@goodmis.org
Subject: Re: [PATCH] blktrace: log dropped REQ_OP_ZONE_XXX events ver1
Date: Tue, 28 Oct 2025 07:54:38 -0600 [thread overview]
Message-ID: <ce30aa10-4138-4c25-857f-f1a2ea1c91f4@kernel.dk> (raw)
In-Reply-To: <20251028043248.2873-1-ckulkarnilinux@gmail.com>
On 10/27/25 10:32 PM, Chaitanya Kulkarni wrote:
> Add informational messages during blktrace setup when version 1 tools
> are used on kernels with CONFIG_BLK_DEV_ZONED enabled. This alerts users
> that REQ_OP_ZONE_* events will be dropped and suggests upgrading to
> blktrace tools version 2 or later.
>
> The warning is printed once during trace setup to inform users about
> the limitation without spamming the logs during tracing operations.
> Version 2 blktrace tools properly handle zone management operations
> (zone reset, zone open, zone close, zone finish, zone append) that
> were added for zoned block devices.
>
> Example output:
> blktests (master) # ./check blktrace
> blktrace/001 (blktrace zone management command tracing) [passed]
> runtime 3.882s ... 3.866s
> blktests (master) # dmesg -c
> [ 95.874361] blktrace: nullb0:blktrace events for REQ_OP_ZONE_XXX will be dropped
> [ 95.874372] blktrace: use blktrace tools version >= 2 to track REQ_OP_ZONE_XXX
> blktests (master) #
>
> This helps users understand why zone operation traces may be missing
> when using older blktrace tool versions with modern kernels that
> support REQ_OP_ZONE_XXX in blktrace.
>
> Signed-off-by: Chaitanya Kulkarni <ckulkarnilinux@gmail.com>
> ---
> kernel/trace/blktrace.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c
> index 776ae4190f36..200d0deb6c90 100644
> --- a/kernel/trace/blktrace.c
> +++ b/kernel/trace/blktrace.c
> @@ -690,6 +690,12 @@ static void blk_trace_setup_finalize(struct request_queue *q,
> */
> strreplace(buts->name, '/', '_');
>
> + if (version == 1 && (IS_ENABLED(CONFIG_BLK_DEV_ZONED))) {
Redundant parens around IS_ENABLED() here.
> + pr_info("%s:blktrace events for REQ_OP_ZONE_XXX will be dropped\n",
> + name);
%s: blktrace events [...]? Seems weird not to have a space there.
--
Jens Axboe
prev parent reply other threads:[~2025-10-28 13:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-28 4:32 [PATCH] blktrace: log dropped REQ_OP_ZONE_XXX events ver1 Chaitanya Kulkarni
2025-10-28 13:54 ` Jens Axboe [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=ce30aa10-4138-4c25-857f-f1a2ea1c91f4@kernel.dk \
--to=axboe@kernel.dk \
--cc=Johannes.Thumshirn@wdc.com \
--cc=ckulkarnilinux@gmail.com \
--cc=dlemoal@kernel.org \
--cc=linux-block@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=rostedt@goodmis.org \
/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).