diff --git a/0012-Fix-syntax-of-script-run_perftest_loopback.patch b/0012-Fix-syntax-of-script-run_perftest_loopback.patch new file mode 100644 index 0000000000000000000000000000000000000000..c3e6c8f8e3121dc884956d2b51de9f75082d6cf4 --- /dev/null +++ b/0012-Fix-syntax-of-script-run_perftest_loopback.patch @@ -0,0 +1,37 @@ +From 20ab6380c8bebfd2757d5b7f45bcc741ddb1b8c2 Mon Sep 17 00:00:00 2001 +From: Tzafrir Cohen +Date: Tue, 9 Apr 2024 07:45:41 +0300 +Subject: [PATCH] Fix syntax of script run_perftest_loopback + +Allow using a command line that has quotes and such. +--- + run_perftest_loopback | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/run_perftest_loopback b/run_perftest_loopback +index 28cd17e5..f660cce7 100755 +--- a/run_perftest_loopback ++++ b/run_perftest_loopback +@@ -2,7 +2,7 @@ + # trivial script to launch a loopback test on the same device + # example: run_perftest_loopback 0 1 ib_write_bw -s 10 + os_type=$(uname) +-if [ $os_type == "FreeBSD" ]; then ++if [ "$os_type" = "FreeBSD" ]; then + cpu_bind_cmd="cpuset -l" + else + cpu_bind_cmd="taskset -c" +@@ -17,11 +17,11 @@ server_core=$1 + client_core=$2 + shift 2 + +-$cpu_bind_cmd $server_core $* & ++$cpu_bind_cmd $server_core "$@" & + #give server time to start + sleep 1 + +-$cpu_bind_cmd $client_core $* localhost ++$cpu_bind_cmd $client_core "$@" localhost + + status=$? + diff --git a/perftest.spec b/perftest.spec index a47c99f422f99c1a4aba65a5160a4a241ae09a4b..feafb7a54c0795dcf67f8ffbf6f1edb9468b01e7 100644 --- a/perftest.spec +++ b/perftest.spec @@ -1,6 +1,6 @@ Name: perftest Version: 4.5 -Release: 8 +Release: 9 License: GPLv2 or BSD Summary: RDMA Performance Testing Tools Url: https://github.com/linux-rdma/perftest @@ -17,6 +17,7 @@ Patch8: 0008-Get-CPU-MHz-on-RISC-V.patch Patch9: 0009-Get-CPU-cycles-on-RISC-V.patch Patch10: 0010-Perftest-Support-selecting-congestion-control-algori.patch Patch11: 0011-Perftest-Fix-rx_depth-check-for-XRC.patch +Patch12: 0012-Fix-syntax-of-script-run_perftest_loopback.patch BuildRequires: automake gcc libibverbs-devel >= 1.2.0 librdmacm-devel >= 1.0.21 libibumad-devel >= 1.3.10.2 BuildRequires: pciutils-devel libibverbs librdmacm libibumad @@ -43,6 +44,12 @@ done %_bindir/* %changelog +* Mon Jul 22 2024 zhangxingrong- - 4.5-9 +- Type: bugfix +- ID: NA +- SUG: NA +- DESC: Fix syntax of script run_perftest_loopback + * Mon Jul 8 2024 Xinghai Cen - 4.5-8 - Type: bugfix - ID: NA