Re: [PATCH] blktrace: build the synthesized v1 record from the entry's own layout
From: Donggeun Yoo
Date: Sun Sep 13 2026 - 02:39:03 EST
On Sun, 13 Sep 2026 03:10:30 +0000, sashiko-bot@xxxxxxxxxx wrote:
> - [Medium] Size-based differentiation between v1 and v2 events causes v1
> entries with a large PDU (>= 16 bytes) to be misidentified as v2 entries,
> scrambling output fields and truncating the PDU.
Correct. A v1 record carrying a 16-byte BLK_TA_REMAP PDU is 64 bytes, the
size of a v2 record, and nothing else in the entry tells them apart.
v2 drops the size test and depends on Adriano Cordova's "blktrace: always
record ftrace events as blk_io_trace2" instead:
https://lore.kernel.org/all/20260913063155.708520-1-donggeunyoo.kernel@xxxxxxxxx/