Re: [PATCH v5 2/2] tools/dma: move dma_map_benchmark from selftests to tools/dma
From: Marek Szyprowski
Date: Wed Oct 29 2025 - 04:56:16 EST
On 28.10.2025 13:09, Qinxin Xia wrote:
> dma_map_benchmark is a standalone developer tool rather than an
> automated selftest. It has no pass/fail criteria, expects manual
> invocation, and is built as a normal userspace binary. Move it to
> tools/dma/ and add a minimal Makefile.
>
> Suggested-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
> Suggested-by: Barry Song <baohua@xxxxxxxxxx>
> Signed-off-by: Qinxin Xia <xiaqinxin@xxxxxxxxxx>
Thanks, applied to dma-mapping-for-next branch.
> ---
> include/{ => uapi}/linux/map_benchmark.h | 13 +++--
> kernel/dma/map_benchmark.c | 2 +-
> tools/Makefile | 13 +++--
> tools/dma/.gitignore | 3 +
> tools/dma/Makefile | 55 +++++++++++++++++++
> tools/{testing/selftests => }/dma/config | 0
> .../selftests => }/dma/dma_map_benchmark.c | 1 -
> tools/testing/selftests/dma/Makefile | 7 ---
> 8 files changed, 74 insertions(+), 20 deletions(-)
> rename include/{ => uapi}/linux/map_benchmark.h (80%)
> create mode 100644 tools/dma/.gitignore
> create mode 100644 tools/dma/Makefile
> rename tools/{testing/selftests => }/dma/config (100%)
> rename tools/{testing/selftests => }/dma/dma_map_benchmark.c (99%)
> delete mode 100644 tools/testing/selftests/dma/Makefile
> ...
Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland