mbox series

[0/8] selftests: ublk: cleanup & more tests

Message ID 20250322093218.431419-1-ming.lei@redhat.com (mailing list archive)
Headers show
Series selftests: ublk: cleanup & more tests | expand

Message

Ming Lei March 22, 2025, 9:32 a.m. UTC
Hi Jens,

The 1st patch adds generic_01.sh for checking if IO is dispatched in order.

The 2nd ~ 7th patches clean up and simplify target implementation, add zc
for for null, which is useful for evaluating/comparing perf.

The 8th patch adds ublk/stripe target and two tests, which will be useful
for verifying multiple IOs aiming at same fixed kernel buffer, also can
be used for verifying vectored fixed kernel buffer in future if this
feature can be supported.


Ming Lei (8):
  selftests: ublk: add generic_01 for verifying sequential IO order
  selftests: ublk: add single sqe allocator helper
  selftests: ublk: increase max buffer size to 1MB
  selftests: ublk: move common code into common.c
  selftests: ublk: prepare for supporting stripe target
  selftests: ublk: enable zero copy for null target
  selftests: ublk: simplify loop io completion
  selftests: ublk: add stripe target

 tools/testing/selftests/ublk/Makefile         |   9 +-
 tools/testing/selftests/ublk/common.c         |  55 +++
 tools/testing/selftests/ublk/file_backed.c    | 167 ++++-----
 tools/testing/selftests/ublk/kublk.c          |  33 +-
 tools/testing/selftests/ublk/kublk.h          |  85 +++--
 tools/testing/selftests/ublk/null.c           |  72 +++-
 tools/testing/selftests/ublk/stripe.c         | 318 ++++++++++++++++++
 tools/testing/selftests/ublk/test_common.sh   |  22 ++
 .../testing/selftests/ublk/test_generic_01.sh |  44 +++
 tools/testing/selftests/ublk/test_null_02.sh  |  20 ++
 .../testing/selftests/ublk/test_stripe_01.sh  |  34 ++
 .../testing/selftests/ublk/test_stripe_02.sh  |  24 ++
 tools/testing/selftests/ublk/trace/seq_io.bt  |  25 ++
 13 files changed, 759 insertions(+), 149 deletions(-)
 create mode 100644 tools/testing/selftests/ublk/common.c
 create mode 100644 tools/testing/selftests/ublk/stripe.c
 create mode 100755 tools/testing/selftests/ublk/test_generic_01.sh
 create mode 100755 tools/testing/selftests/ublk/test_null_02.sh
 create mode 100755 tools/testing/selftests/ublk/test_stripe_01.sh
 create mode 100755 tools/testing/selftests/ublk/test_stripe_02.sh
 create mode 100644 tools/testing/selftests/ublk/trace/seq_io.bt

Comments

Jens Axboe March 22, 2025, 2:35 p.m. UTC | #1
On Sat, 22 Mar 2025 17:32:08 +0800, Ming Lei wrote:
> The 1st patch adds generic_01.sh for checking if IO is dispatched in order.
> 
> The 2nd ~ 7th patches clean up and simplify target implementation, add zc
> for for null, which is useful for evaluating/comparing perf.
> 
> The 8th patch adds ublk/stripe target and two tests, which will be useful
> for verifying multiple IOs aiming at same fixed kernel buffer, also can
> be used for verifying vectored fixed kernel buffer in future if this
> feature can be supported.
> 
> [...]

Applied, thanks!

[1/8] selftests: ublk: add generic_01 for verifying sequential IO order
      commit: 723977cab4c0fdcf5ba08da9e30a6ad72efa2464
[2/8] selftests: ublk: add single sqe allocator helper
      commit: f2639ed11e256b957690e241bb04ec9912367d60
[3/8] selftests: ublk: increase max buffer size to 1MB
      commit: 9413c0ca8e455efb16b81f2c99061f6eb3d38281
[4/8] selftests: ublk: move common code into common.c
      commit: 10d962dae2f6b4a7d86579cc6fe9d8987117fa8f
[5/8] selftests: ublk: prepare for supporting stripe target
      commit: 8842b72a821d4cd49281fa096c35f9fa630ec981
[6/8] selftests: ublk: enable zero copy for null target
      commit: 8cb9b971e2b6103c72faf765f64239f86ec9328f
[7/8] selftests: ublk: simplify loop io completion
      commit: 263846eb431f31ca3f38846c374377b732abb26e
[8/8] selftests: ublk: add stripe target
      commit: 0f3ebf2d4bc0296c61543b2a729151d89c60e1ec

Best regards,