linux-btrace.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RESEND PATCH blktrace v3 00/20] blktrace: Add user-space support for zoned command tracing
@ 2025-11-24  7:37 Johannes Thumshirn
  2025-11-24  7:37 ` [RESEND PATCH blktrace v3 01/20] blktrace: fix comment for struct blk_trace_setup: Johannes Thumshirn
                   ` (20 more replies)
  0 siblings, 21 replies; 43+ messages in thread
From: Johannes Thumshirn @ 2025-11-24  7:37 UTC (permalink / raw)
  To: axboe@kernel.dk
  Cc: linux-block, Damien Le Moal, Chaitanya Kulkarni,
	Christoph Hellwig, Shinichiro Kawasaki, Naohiro Aota,
	Niklas Cassel, linux-btrace, Johannes Thumshirn

[The original submission can be found here: https://lore.kernel.org/linux-btrace/20251015105658.527262-1-johannes.thumshirn@wdc.com]

This patch series extends the user-space blktrace tools to support the new
trace events for zoned block device commands introduced in the corresponding
kernel patch series.

The updates include:

- Introduction of a new ioctl requesting the v2 version of the trace
- Definitions for new zoned operation trace events.
- Parsing support in blkparse for these events.
- Display of the new events with clear labeling (e.g., ZO, ZA, ZR).
- Backward-compatible changes that do not affect existing functionality.

These changes complement the kernel patches and allow full visibility into
zone management commands in blktrace output, enabling better analysis and
debugging of zoned storage workloads.

The updated blktrace utility will first issue the BLKTRACESETUP2 ioctl and if
it fails transpartently fall back to BLKTRACESETUP allowing backwards
compatibility.

Feedback and testing on additional device types are appreciated.

Changes to v2:
- Sync with kernel changes
- Drop the Zone Management trace action

Changes to v1:
- Incorporated feedback from Chaitanya
- Add patch fixing a compiler warning at the beginning

Johannes Thumshirn (20):
  blktrace: fix comment for struct blk_trace_setup:
  blkparse: fix compiler warning
  blktrace: add definitions for BLKTRACESETUP2
  blktrace: change size of action to 64 bits
  blktrace: add definitions for blk_io_trace2
  blktrace: support protocol version 8
  blkparse: pass magic to get_magic
  blkparse: read 'magic' first
  blkparse: factor out reading of a singe blk_io_trace event
  blkparse: skip unsupported protocol versions
  blkparse: make get_pdulen() take the pdu_len
  blkiomon: read 'magic' first
  blktrace: pass magic to CHECK_MAGIC macro
  blktrace: pass magic to verify_trace
  blktrace: rename trace_to_cpu to bit_trace_to_cpu
  blkparse: use blk_io_trace2 internally
  blkparse: natively parse blk_io_trace2
  blkparse: parse zone (un)plug actions
  blkparse: add zoned commands to fill_rwbs()
  blktrace: call BLKTRACESETUP2 ioctl per default to setup a trace

 act_mask.c     |   4 +-
 blkiomon.c     |  15 +-
 blkparse.c     | 446 +++++++++++++++++++++++++++++++++----------------
 blkparse_fmt.c |  83 ++++++---
 blkrawverify.c |  14 +-
 blktrace.c     |  40 ++++-
 blktrace.h     |  64 +++++--
 blktrace_api.h |  58 ++++++-
 8 files changed, 535 insertions(+), 189 deletions(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 43+ messages in thread

end of thread, other threads:[~2025-11-24 13:08 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-24  7:37 [RESEND PATCH blktrace v3 00/20] blktrace: Add user-space support for zoned command tracing Johannes Thumshirn
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 01/20] blktrace: fix comment for struct blk_trace_setup: Johannes Thumshirn
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 02/20] blkparse: fix compiler warning Johannes Thumshirn
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 03/20] blktrace: add definitions for BLKTRACESETUP2 Johannes Thumshirn
2025-11-24  8:57   ` Damien Le Moal
2025-11-24  9:04     ` Johannes Thumshirn
2025-11-24  9:16   ` Damien Le Moal
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 04/20] blktrace: change size of action to 64 bits Johannes Thumshirn
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 05/20] blktrace: add definitions for blk_io_trace2 Johannes Thumshirn
2025-11-24  9:15   ` Damien Le Moal
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 06/20] blktrace: support protocol version 8 Johannes Thumshirn
2025-11-24  9:00   ` Damien Le Moal
2025-11-24  9:04     ` Johannes Thumshirn
2025-11-24  9:16       ` Damien Le Moal
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 07/20] blkparse: pass magic to get_magic Johannes Thumshirn
2025-11-24  9:01   ` Damien Le Moal
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 08/20] blkparse: read 'magic' first Johannes Thumshirn
2025-11-24  9:03   ` Damien Le Moal
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 09/20] blkparse: factor out reading of a singe blk_io_trace event Johannes Thumshirn
2025-11-24  9:04   ` Damien Le Moal
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 10/20] blkparse: skip unsupported protocol versions Johannes Thumshirn
2025-11-24  9:05   ` Damien Le Moal
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 11/20] blkparse: make get_pdulen() take the pdu_len Johannes Thumshirn
2025-11-24  9:06   ` Damien Le Moal
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 12/20] blkiomon: read 'magic' first Johannes Thumshirn
2025-11-24  9:06   ` Damien Le Moal
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 13/20] blktrace: pass magic to CHECK_MAGIC macro Johannes Thumshirn
2025-11-24  9:07   ` Damien Le Moal
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 14/20] blktrace: pass magic to verify_trace Johannes Thumshirn
2025-11-24  9:07   ` Damien Le Moal
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 15/20] blktrace: rename trace_to_cpu to bit_trace_to_cpu Johannes Thumshirn
2025-11-24  9:08   ` Damien Le Moal
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 16/20] blkparse: use blk_io_trace2 internally Johannes Thumshirn
2025-11-24  9:10   ` Damien Le Moal
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 17/20] blkparse: natively parse blk_io_trace2 Johannes Thumshirn
2025-11-24  9:11   ` Damien Le Moal
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 18/20] blkparse: parse zone (un)plug actions Johannes Thumshirn
2025-11-24  9:12   ` Damien Le Moal
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 19/20] blkparse: add zoned commands to fill_rwbs() Johannes Thumshirn
2025-11-24  9:13   ` Damien Le Moal
2025-11-24  7:37 ` [RESEND PATCH blktrace v3 20/20] blktrace: call BLKTRACESETUP2 ioctl per default to setup a trace Johannes Thumshirn
2025-11-24  9:14   ` Damien Le Moal
2025-11-24 13:08 ` [RESEND PATCH blktrace v3 00/20] blktrace: Add user-space support for zoned command tracing Martin K. Petersen

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).