* [PATCH] NTB: ntb_test: fix bug printing ntb_perf results
@ 2017-06-05 16:13 Logan Gunthorpe
2017-06-05 17:58 ` Allen Hubbe
2017-06-21 7:22 ` kpriyambada48
0 siblings, 2 replies; 3+ messages in thread
From: Logan Gunthorpe @ 2017-06-05 16:13 UTC (permalink / raw)
To: linux-ntb; +Cc: Logan Gunthorpe, Jon Mason, Allen Hubbe
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 <logang@deltatee.com>
Cc: Jon Mason <jdmason@kudzu.us>
Cc: Allen Hubbe <Allen.Hubbe@dell.com>
---
Oops, this was my own bug.
tools/testing/selftests/ntb/ntb_test.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/ntb/ntb_test.sh b/tools/testing/selftests/ntb/ntb_test.sh
index a676d3eefefb..13f5198ba0ee 100755
--- a/tools/testing/selftests/ntb/ntb_test.sh
+++ b/tools/testing/selftests/ntb/ntb_test.sh
@@ -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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH] NTB: ntb_test: fix bug printing ntb_perf results
2017-06-05 16:13 [PATCH] NTB: ntb_test: fix bug printing ntb_perf results Logan Gunthorpe
@ 2017-06-05 17:58 ` Allen Hubbe
2017-06-21 7:22 ` kpriyambada48
1 sibling, 0 replies; 3+ messages in thread
From: Allen Hubbe @ 2017-06-05 17:58 UTC (permalink / raw)
To: 'Logan Gunthorpe', linux-ntb; +Cc: 'Jon Mason'
From: 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 <logang@deltatee.com>
> Cc: Jon Mason <jdmason@kudzu.us>
> Cc: Allen Hubbe <Allen.Hubbe@dell.com>
Acked-by: Allen Hubbe <Allen.Hubbe@dell.com>
> ---
>
> Oops, this was my own bug.
>
> tools/testing/selftests/ntb/ntb_test.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/ntb/ntb_test.sh
> b/tools/testing/selftests/ntb/ntb_test.sh
> index a676d3eefefb..13f5198ba0ee 100755
> --- a/tools/testing/selftests/ntb/ntb_test.sh
> +++ b/tools/testing/selftests/ntb/ntb_test.sh
> @@ -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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] NTB: ntb_test: fix bug printing ntb_perf results
2017-06-05 16:13 [PATCH] NTB: ntb_test: fix bug printing ntb_perf results Logan Gunthorpe
2017-06-05 17:58 ` Allen Hubbe
@ 2017-06-21 7:22 ` kpriyambada48
1 sibling, 0 replies; 3+ messages in thread
From: kpriyambada48 @ 2017-06-21 7:22 UTC (permalink / raw)
To: linux-ntb; +Cc: logang, jdmason, Allen.Hubbe
[-- Attachment #1.1: Type: text/plain, Size: 1150 bytes --]
On Monday, June 5, 2017 at 9:43:34 PM UTC+5:30, Logan Gunthorpe wrote:
>
> 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 <log...@deltatee.com <javascript:>>
> Cc: Jon Mason <jdm...@kudzu.us <javascript:>>
> Cc: Allen Hubbe <Allen...@dell.com <javascript:>>
> ---
>
> Oops, this was my own bug.
>
> tools/testing/selftests/ntb/ntb_test.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/ntb/ntb_test.sh
> b/tools/testing/selftests/ntb/ntb_test.sh
> index a676d3eefefb..13f5198ba0ee 100755
> --- a/tools/testing/selftests/ntb/ntb_test.sh
> +++ b/tools/testing/selftests/ntb/ntb_test.sh
> @@ -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
>
[-- Attachment #1.2: Type: text/html, Size: 2097 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-21 7:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-05 16:13 [PATCH] NTB: ntb_test: fix bug printing ntb_perf results Logan Gunthorpe
2017-06-05 17:58 ` Allen Hubbe
2017-06-21 7:22 ` kpriyambada48
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox