diff options
author | Arseniy Krasnov <AVKrasnov@sberdevices.ru> | 2023-01-10 10:18:32 +0000 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-01-12 12:53:54 +0100 |
commit | 8abbffd27cedd0f89f69e5ee2ff6841ea01511eb (patch) | |
tree | 66ceb9bb9fd8af1211548cc82270b87ad3d082d2 /tools/testing/vsock/Makefile | |
parent | test/vsock: add big message test (diff) | |
download | linux-8abbffd27cedd0f89f69e5ee2ff6841ea01511eb.tar.xz linux-8abbffd27cedd0f89f69e5ee2ff6841ea01511eb.zip |
test/vsock: vsock_perf utility
This adds utility to check vsock rx/tx performance.
Usage as sender:
./vsock_perf --sender <cid> --port <port> --bytes <bytes to send>
Usage as receiver:
./vsock_perf --port <port> --rcvlowat <SO_RCVLOWAT>
Signed-off-by: Arseniy Krasnov <AVKrasnov@sberdevices.ru>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/testing/vsock/Makefile')
-rw-r--r-- | tools/testing/vsock/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/vsock/Makefile b/tools/testing/vsock/Makefile index f8293c6910c9..43a254f0e14d 100644 --- a/tools/testing/vsock/Makefile +++ b/tools/testing/vsock/Makefile @@ -1,8 +1,9 @@ # SPDX-License-Identifier: GPL-2.0-only -all: test +all: test vsock_perf test: vsock_test vsock_diag_test vsock_test: vsock_test.o timeout.o control.o util.o vsock_diag_test: vsock_diag_test.o timeout.o control.o util.o +vsock_perf: vsock_perf.o CFLAGS += -g -O2 -Werror -Wall -I. -I../../include -I../../../usr/include -Wno-pointer-sign -fno-strict-overflow -fno-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -D_GNU_SOURCE .PHONY: all test clean |