Skip to contentSkip to conversation

NTB: ntb_test: fix bug printing ntb_perf results

PATCH In review Logan Gunthorpe 3 participants 3 messages Jun 5, 2017 – Jun 21, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---

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
index a676d3eefefb..13f5198ba0ee 100755
@@ -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

Acked-by on v1 1/1
#1 lore raw

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.

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
index a676d3eefefb..13f5198ba0ee 100755
@@ -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

#2 lore raw
In reply to Logan Gunthorpe
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
index a676d3eefefb..13f5198ba0ee 100755 
@@ -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 
Signature · 1 line
2.11.0