NTB: ntb_test: fix bug printing ntb_perf results
Subsystems (2)
PATCH 1/1 NTB: ntb_test: fix bug printing ntb_perf results
The code mistakenly prints the local perf results for the remote test so the script reports identical results for both directions. Fix this by ensuring we print the remote result.
Signed-off-by Logan Gunthorpe <[email protected]>
Cc Jon Mason <[email protected]>
Cc Allen Hubbe <[email protected]>
---
Oops, this was my own bug.
tools/testing/selftests/ntb/ntb_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/ntb/ntb_test.sh +1 -1
@@ -305,7 +305,7 @@ function perf_test() echo "Running remote perf test $WITH DMA" write_file "" $REMOTE_PERF/run echo -n " " - read_file $LOCAL_PERF/run + read_file $REMOTE_PERF/run echo " Passed" _modprobe -r ntb_perf
--
2.11.0
From: Logan Gunthorpe
Quoted 7 lines
The code mistakenly prints the local perf results for the remote test so the script reports identical results for both directions. Fix this by ensuring we print the remote result.
Signed-off-by Logan Gunthorpe <[email protected]>Cc Jon Mason <[email protected]>Cc Allen Hubbe <[email protected]>
Acked-by Allen Hubbe <[email protected]>
Quoted 23 lines
---
Oops, this was my own bug.
tools/testing/selftests/ntb/ntb_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/testing/selftests/ntb/ntb_test.sh +1
-2@@ -305,7 +305,7 @@ function perf_test() echo "Running remote perf test $WITH DMA" write_file "" $REMOTE_PERF/run echo -n " " - read_file $LOCAL_PERF/run + read_file $REMOTE_PERF/run echo " Passed" _modprobe -r ntb_perf --2.11.0
Quoted 32 lines · Logan Gunthorpe
The code mistakenly prints the local perf results for the remote test so the script reports identical results for both directions. Fix this by ensuring we print the remote result.
Signed-off-by Logan Gunthorpe <[email protected] <javascript:>>Cc Jon Mason <[email protected] <javascript:>>Cc Allen Hubbe <[email protected] <javascript:>>---
Oops, this was my own bug.
tools/testing/selftests/ntb/ntb_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/testing/selftests/ntb/ntb_test.sh +1
-1@@ -305,7 +305,7 @@ function perf_test() echo "Running remote perf test $WITH DMA" write_file "" $REMOTE_PERF/run echo -n " " - read_file $LOCAL_PERF/run + read_file $REMOTE_PERF/run echo " Passed" _modprobe -r ntb_perfSignature · 1 line
2.11.0