linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/21] blktrace: Add user-space support for zoned command tracing
@ 2025-09-09 11:07 Johannes Thumshirn
  2025-09-09 11:07 ` [PATCH 01/21] fix comment for struct blk_trace_setup: Johannes Thumshirn
                   ` (21 more replies)
  0 siblings, 22 replies; 28+ messages in thread
From: Johannes Thumshirn @ 2025-09-09 11:07 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Steven Rostedt, Masami Hiramatsu, Mathieu Desnoyers, linux-block,
	linux-kernel, linux-trace-kernel, linux-btrace, John Garry,
	Hannes Reinecke, Damien Le Moal, Christoph Hellwig, Naohiro Aota,
	Shinichiro Kawasaki, Chaitanya Kulkarni, Martin K . Petersen,
	Johannes Thumshirn

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.

Johannes Thumshirn (21):
  fix comment for struct blk_trace_setup:
  add definitions for BLKTRACESETUP2
  call BLKTRACESETUP2 ioctl per default to setup a trace
  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()
  blkparse: parse zone management commands
  blkparse: parse zone append completions

 act_mask.c     |   4 +-
 blkiomon.c     |  15 +-
 blkparse.c     | 450 ++++++++++++++++++++++++++++++++++---------------
 blkparse_fmt.c | 105 +++++++++---
 blkrawverify.c |  14 +-
 blktrace.c     |  40 ++++-
 blktrace.h     |  64 +++++--
 blktrace_api.h |  54 +++++-
 8 files changed, 560 insertions(+), 186 deletions(-)

-- 
2.51.0


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

end of thread, other threads:[~2025-09-19  8:49 UTC | newest]

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

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