From: Damien Le Moal <dlemoal@kernel.org>
To: Johannes Thumshirn <johannes.thumshirn@wdc.com>,
"axboe@kernel.dk" <axboe@kernel.dk>
Cc: linux-block@vger.kernel.org, Niklas Cassel <cassel@kernel.org>,
Christoph Hellwig <hch@lst.de>
Subject: Re: [PATCH] blktrace: fix ftrace record generation for v2 format
Date: Thu, 26 Nov 2026 07:17:24 +0900 [thread overview]
Message-ID: <c1eb9041-07b2-4932-bc74-5f82f112d4d5@kernel.org> (raw)
In-Reply-To: <20261124124239.146858-1-johannes.thumshirn@wdc.com>
On 11/24/26 21:42, Johannes Thumshirn wrote:
> Since commit 4d8bc7bd4f73 ("blktrace: move ftrace blk_io_tracer to
> blk_io_trace2") ftrace's blktrace records are in the blk_io_trace2
> format, but blk_trace_synthesize_old_trace() still copies the raw bytes
> after sector like it did in the v1 layout. With the 'bin' trace option
> set, the synthesized v1 records therefore contain the pid in the action
> field, the action in the pid and device fields and so on, and the PDU is
> read from the wrong offset.
>
> Manually create the struct in blk_trace_synthesize_old_trace() instead
> of copying over.
>
> Fixes: 4d8bc7bd4f73 ("blktrace: move ftrace blk_io_tracer to blk_io_trace2")
> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
--
Damien Le Moal
Western Digital Research
prev parent reply other threads:[~2026-11-25 22:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 12:42 [PATCH] blktrace: fix ftrace record generation for v2 format Johannes Thumshirn
2026-11-25 4:56 ` Christoph Hellwig
2026-11-25 22:17 ` Damien Le Moal [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=c1eb9041-07b2-4932-bc74-5f82f112d4d5@kernel.org \
--to=dlemoal@kernel.org \
--cc=axboe@kernel.dk \
--cc=cassel@kernel.org \
--cc=hch@lst.de \
--cc=johannes.thumshirn@wdc.com \
--cc=linux-block@vger.kernel.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