* [Buildroot] [PATCH v6 1/2] package/rdma-core: new package
@ 2023-02-02 20:20 Julien Olivain
2023-02-02 20:20 ` [Buildroot] [PATCH v6 2/2] package/perftest: " Julien Olivain
2023-02-05 12:54 ` [Buildroot] [PATCH v6 1/2] package/rdma-core: " Yann E. MORIN
0 siblings, 2 replies; 4+ messages in thread
From: Julien Olivain @ 2023-02-02 20:20 UTC (permalink / raw)
To: buildroot; +Cc: Julien Olivain, Thomas Petazzoni, Shamraiz Ashraf
This is the userspace components for the Linux Kernel's
drivers/infiniband subsystem.
https://github.com/linux-rdma/rdma-core
Tested-by: Shamraiz Ashraf <shamraizashraf092@gmail.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
---
Changes v5 -> v6:
- Update rdma-core from v43.0 to v44.0
- Removed the patch in v5, now included upstream
- Update kernel in test from 5.15.80 to 5.15.91
Changes v4 -> v5:
- Update rdma-core from v42.0 to v43.0
Also add a patch to fix an issue introduced in v43.0
- Update kernel in test from 5.15.68 to 5.15.80
- v5 patch series now includes the perftest package
Changes v3 -> v4:
- Update kernel in test from 5.15.61 to 5.15.68
- Included Thomas' review comments:
- Moved linux-rdma.fragment to test directory
- Updated test script to reflect new file location
- Fixed typo in readme.txt
- Add a comment in Config.in describing when the
"rdma" command is needed.
Changes v2 -> v3:
- Update package version from 41.0 to 42.0
- Update kernel in test from 5.15.48 to 5.15.61
Changes v1 -> v2:
- Update package version from 39.0 to 41.0
- Add test_rdma_core.py entry to DEVELOPERS file
- Update kernel in test from 5.15.30 to 5.15.48
- Moved Config.in rdma comment in main pkg description
---
Tested on branch master at commit aff4317 with commands:
make check-package
...
0 warnings generated
python3 -m flake8 support/testing/tests/package/test_rdma_core.py
[no-output]
support/testing/run-tests \
-d dl -o output_folder \
tests.package.test_rdma_core.TestRdmaCore
...
OK
./utils/test-pkg -a -p rdma-core
arm-aarch64 [ 1/44]: OK
bootlin-aarch64-glibc [ 2/44]: OK
bootlin-arcle-hs38-uclibc [ 3/44]: OK
bootlin-armv5-uclibc [ 4/44]: OK
bootlin-armv7-glibc [ 5/44]: OK
bootlin-armv7m-uclibc [ 6/44]: SKIPPED
bootlin-armv7-musl [ 7/44]: OK
bootlin-m68k-5208-uclibc [ 8/44]: SKIPPED
bootlin-m68k-68040-uclibc [ 9/44]: OK
bootlin-microblazeel-uclibc [10/44]: OK
bootlin-mipsel32r6-glibc [11/44]: OK
bootlin-mipsel-uclibc [12/44]: OK
bootlin-nios2-glibc [13/44]: OK
bootlin-openrisc-uclibc [14/44]: OK
bootlin-powerpc64le-power8-glibc [15/44]: OK
bootlin-powerpc-e500mc-uclibc [16/44]: OK
bootlin-riscv32-glibc [17/44]: OK
bootlin-riscv64-glibc [18/44]: OK
bootlin-riscv64-musl [19/44]: OK
bootlin-sh4-uclibc [20/44]: OK
bootlin-sparc64-glibc [21/44]: OK
bootlin-sparc-uclibc [22/44]: SKIPPED
bootlin-x86-64-glibc [23/44]: OK
bootlin-x86-64-musl [24/44]: OK
bootlin-x86-64-uclibc [25/44]: OK
bootlin-xtensa-uclibc [26/44]: OK
br-arm-basic [27/44]: OK
br-arm-full-nothread [28/44]: SKIPPED
br-arm-full-static [29/44]: SKIPPED
br-i386-pentium4-full [30/44]: OK
br-i386-pentium-mmx-musl [31/44]: OK
br-mips64-n64-full [32/44]: OK
br-mips64r6-el-hf-glibc [33/44]: OK
br-powerpc-603e-basic-cpp [34/44]: OK
br-powerpc64-power7-glibc [35/44]: OK
linaro-aarch64-be [36/44]: OK
linaro-aarch64 [37/44]: OK
linaro-arm [38/44]: OK
sourcery-arm-armv4t [39/44]: OK
sourcery-arm [40/44]: OK
sourcery-arm-thumb2 [41/44]: OK
sourcery-mips64 [42/44]: OK
sourcery-mips [43/44]: OK
sourcery-nios2 [44/44]: OK
44 builds, 5 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed
---
DEVELOPERS | 3 +
package/Config.in | 1 +
package/rdma-core/Config.in | 22 ++++++
package/rdma-core/rdma-core.hash | 5 ++
package/rdma-core/rdma-core.mk | 24 ++++++
package/rdma-core/readme.txt | 75 +++++++++++++++++++
.../testing/tests/package/test_rdma_core.py | 43 +++++++++++
.../test_rdma_core/linux-rdma.fragment | 9 +++
8 files changed, 182 insertions(+)
create mode 100644 package/rdma-core/Config.in
create mode 100644 package/rdma-core/rdma-core.hash
create mode 100644 package/rdma-core/rdma-core.mk
create mode 100644 package/rdma-core/readme.txt
create mode 100644 support/testing/tests/package/test_rdma_core.py
create mode 100644 support/testing/tests/package/test_rdma_core/linux-rdma.fragment
diff --git a/DEVELOPERS b/DEVELOPERS
index e19087c577..5eb746f8b4 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1696,6 +1696,7 @@ F: package/ptm2human/
F: package/python-distro/
F: package/python-gnupg/
F: package/python-pyalsa/
+F: package/rdma-core/
F: package/riscv-isa-sim/
F: package/tinycompress/
F: package/z3/
@@ -1711,6 +1712,8 @@ F: support/testing/tests/package/test_ola/
F: support/testing/tests/package/test_python_distro.py
F: support/testing/tests/package/test_python_gnupg.py
F: support/testing/tests/package/test_python_pyalsa.py
+F: support/testing/tests/package/test_rdma_core.py
+F: support/testing/tests/package/test_rdma_core/
F: support/testing/tests/package/test_z3.py
N: Julien Viard de Galbert <julien@vdg.name>
diff --git a/package/Config.in b/package/Config.in
index 83fddf316f..1f6db14d56 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -573,6 +573,7 @@ endmenu
source "package/pulseview/Config.in"
source "package/qoriq-cadence-dp-firmware/Config.in"
source "package/raspi-gpio/Config.in"
+ source "package/rdma-core/Config.in"
source "package/read-edid/Config.in"
source "package/rng-tools/Config.in"
source "package/rockchip-mali/Config.in"
diff --git a/package/rdma-core/Config.in b/package/rdma-core/Config.in
new file mode 100644
index 0000000000..437cf903ac
--- /dev/null
+++ b/package/rdma-core/Config.in
@@ -0,0 +1,22 @@
+config BR2_PACKAGE_RDMA_CORE
+ bool "rdma-core"
+ depends on BR2_USE_MMU # fork() used in rstream example
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4
+ depends on !BR2_STATIC_LIBS # dlopen()
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ select BR2_PACKAGE_LIBNL
+ help
+ This is the userspace components for the Linux Kernel's
+ drivers/infiniband subsystem.
+
+ Note: The 'rdma' utility program is provided by the
+ 'iproute2' package, when compiled with the package 'libmnl'
+ also selected. This program is needed to configure
+ InfiniBand and RDMA networks from the command line.
+
+ https://github.com/linux-rdma/rdma-core
+
+comment "rdma-core needs a toolchain w/ threads, dynamic library"
+ depends on BR2_USE_MMU
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4
+ depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
diff --git a/package/rdma-core/rdma-core.hash b/package/rdma-core/rdma-core.hash
new file mode 100644
index 0000000000..1aff44f7f4
--- /dev/null
+++ b/package/rdma-core/rdma-core.hash
@@ -0,0 +1,5 @@
+# Locally calculated
+sha256 4a2eec55b37ac25f25e7680a372f71c1781c23808542bd31fb68dc0448b8cba2 rdma-core-44.0.tar.gz
+sha256 99e0df1d009a21d0dfb031600c550fd8f4efc0c6b2a4ef8b34a995aa6f79c9f4 COPYING.BSD_MIT
+sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING.GPL2
+sha256 c46a557f25b8ef9bec76526c4e593fc13e6cba27e7ba30d73b6497a689cf06f6 COPYING.md
diff --git a/package/rdma-core/rdma-core.mk b/package/rdma-core/rdma-core.mk
new file mode 100644
index 0000000000..885821bf98
--- /dev/null
+++ b/package/rdma-core/rdma-core.mk
@@ -0,0 +1,24 @@
+################################################################################
+#
+# rdma-core
+#
+################################################################################
+
+RDMA_CORE_VERSION = 44.0
+RDMA_CORE_SITE = $(call github,linux-rdma,rdma-core,v$(RDMA_CORE_VERSION))
+RDMA_CORE_LICENSE = GPL-2.0 or BSD-2-Clause
+RDMA_CORE_LICENSE_FILES = COPYING.GPL2 COPYING.BSD_MIT COPYING.md
+RDMA_CORE_DEPENDENCIES = libnl
+RDMA_CORE_INSTALL_STAGING = YES
+
+RDMA_CORE_CONF_OPTS = \
+ -DNO_MAN_PAGES=1 \
+ -DNO_PYVERBS=1
+
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+RDMA_CORE_CONF_OPTS += \
+ -DCMAKE_EXE_LINKER_FLAGS=-latomic \
+ -DCMAKE_SHARED_LINKER_FLAGS=-latomic
+endif
+
+$(eval $(cmake-package))
diff --git a/package/rdma-core/readme.txt b/package/rdma-core/readme.txt
new file mode 100644
index 0000000000..9a95226ef4
--- /dev/null
+++ b/package/rdma-core/readme.txt
@@ -0,0 +1,75 @@
+Testing rdma-core userspace tools
+=================================
+
+Testing rdma-core using Linux software RoCE implementation:
+https://en.wikipedia.org/wiki/RDMA_over_Converged_Ethernet
+
+Using two systems with working TCP/IP configuration, for example:
+- Server IP: 192.168.123.10
+- Client IP: 192.168.123.20
+
+Make sure firewall configurations are appropriate. Routable RoCE v2
+uses udp/4791. ibv_rc_pingpong uses tcp/18515 for initial
+synchronization.
+
+Note: this test can be executed in two qemu virtual machines with
+bridged networking.
+
+
+Kernel configuration
+--------------------
+
+The Linux Kernel needs some InfiniBand configuration. In this example
+the kernel "rdma_rxe" driver is needed (CONFIG_RDMA_RXE=y). The Kernel
+config fragment file used for package test can be used as a starting
+point. See:
+
+ support/testing/tests/package/test_rdma_core/linux-rdma.fragment
+
+
+Buildroot package configuration
+-------------------------------
+
+For setting up a software RoCE link, the "rdma" program is needed. It
+is provided by the "iproute2" package, when "libmnl" is also
+selected. Make sure to have in your Buildroot configuration:
+
+ BR2_PACKAGE_IPROUTE2=y
+ BR2_PACKAGE_LIBMNL=y
+ BR2_PACKAGE_RDMA_CORE=y
+
+
+Setting up the rdma link
+------------------------
+
+On both server and client:
+
+ modprobe rdma_rxe
+ rdma link add rxe0 type rxe netdev eth0
+
+
+Testing with rping
+------------------
+
+On the server side, run the command:
+
+ rping -s -v
+
+On the client side, run the command:
+
+ rping -c -v -a 192.168.123.10
+
+
+Testing with ibv_rc_pingpong
+----------------------------
+
+To test with the pingpong example using the reliable connected (RC)
+transport:
+
+On the server side, run the command:
+
+ ibv_rc_pingpong -d rxe0 -g 1
+
+On the client side, run the command:
+
+ ibv_rc_pingpong -d rxe0 -g 1 192.168.123.10
diff --git a/support/testing/tests/package/test_rdma_core.py b/support/testing/tests/package/test_rdma_core.py
new file mode 100644
index 0000000000..614fb51f48
--- /dev/null
+++ b/support/testing/tests/package/test_rdma_core.py
@@ -0,0 +1,43 @@
+import os
+
+import infra.basetest
+
+
+class TestRdmaCore(infra.basetest.BRTest):
+
+ config = \
+ """
+ BR2_aarch64=y
+ BR2_TOOLCHAIN_EXTERNAL=y
+ BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
+ BR2_LINUX_KERNEL=y
+ BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+ BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.91"
+ BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
+ BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/aarch64-virt/linux.config"
+ BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="{}"
+ BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
+ BR2_TARGET_ROOTFS_CPIO=y
+ BR2_TARGET_ROOTFS_CPIO_GZIP=y
+ # BR2_TARGET_ROOTFS_TAR is not set
+ BR2_PACKAGE_IPROUTE2=y
+ BR2_PACKAGE_LIBMNL=y
+ BR2_PACKAGE_RDMA_CORE=y
+ """.format(
+ infra.filepath("tests/package/test_rdma_core/linux-rdma.fragment")
+ )
+
+ def test_run(self):
+ img = os.path.join(self.builddir, "images", "rootfs.cpio.gz")
+ kern = os.path.join(self.builddir, "images", "Image")
+ self.emulator.boot(arch="aarch64",
+ kernel=kern,
+ kernel_cmdline=["console=ttyAMA0"],
+ options=["-M", "virt", "-cpu", "cortex-a57", "-m", "512M", "-initrd", img])
+ self.emulator.login()
+
+ # Add the rxe0 interface
+ self.assertRunOk("rdma link add rxe0 type rxe netdev eth0")
+
+ # ibv_devinfo returns 255 if no devices are found
+ self.assertRunOk("ibv_devinfo -v")
diff --git a/support/testing/tests/package/test_rdma_core/linux-rdma.fragment b/support/testing/tests/package/test_rdma_core/linux-rdma.fragment
new file mode 100644
index 0000000000..e305f27e62
--- /dev/null
+++ b/support/testing/tests/package/test_rdma_core/linux-rdma.fragment
@@ -0,0 +1,9 @@
+CONFIG_INFINIBAND=m
+CONFIG_INFINIBAND_USER_MAD=m
+CONFIG_INFINIBAND_USER_ACCESS=m
+CONFIG_RDMA_RXE=m
+CONFIG_INFINIBAND_IPOIB=m
+CONFIG_INFINIBAND_IPOIB_CM=y
+CONFIG_INFINIBAND_IPOIB_DEBUG_DATA=y
+CONFIG_INFINIBAND_RTRS_CLIENT=m
+CONFIG_INFINIBAND_RTRS_SERVER=m
--
2.39.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v6 2/2] package/perftest: new package
2023-02-02 20:20 [Buildroot] [PATCH v6 1/2] package/rdma-core: new package Julien Olivain
@ 2023-02-02 20:20 ` Julien Olivain
2023-02-05 14:09 ` Yann E. MORIN
2023-02-05 12:54 ` [Buildroot] [PATCH v6 1/2] package/rdma-core: " Yann E. MORIN
1 sibling, 1 reply; 4+ messages in thread
From: Julien Olivain @ 2023-02-02 20:20 UTC (permalink / raw)
To: buildroot; +Cc: Julien Olivain, Thomas Petazzoni, Shamraiz Ashraf
Open Fabrics Performance Tests.
This is a collection of tests written over uverbs intended
for use as a performance micro-benchmark. The tests may be
used for HW or SW tuning as well as for functional testing.
https://github.com/linux-rdma/perftest
Tested-by: Shamraiz Ashraf <shamraizashraf092@gmail.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
---
Changes v5 -> v6:
- Update perftest from version 4.5-0.18 to 4.5-0.20
- Update kernel in test from 5.15.80 to 5.15.91
- Add perftest entries in DEVELOPERS file
Changes v1 -> v5:
- introduce perftest package in v5 patch series
---
Tested on branch main at commit aff4317 with commands:
make check-package
...
0 warnings generated
python3 -m flake8 support/testing/tests/package/test_perftest.py
[no-output]
support/testing/run-tests \
-d dl -o output_folder \
tests.package.test_perftest.TestPerftest
...
OK
./utils/test-pkg -a -p perftest
arm-aarch64 [ 1/44]: OK
bootlin-aarch64-glibc [ 2/44]: OK
bootlin-arcle-hs38-uclibc [ 3/44]: SKIPPED
bootlin-armv5-uclibc [ 4/44]: SKIPPED
bootlin-armv7-glibc [ 5/44]: OK
bootlin-armv7m-uclibc [ 6/44]: SKIPPED
bootlin-armv7-musl [ 7/44]: SKIPPED
bootlin-m68k-5208-uclibc [ 8/44]: SKIPPED
bootlin-m68k-68040-uclibc [ 9/44]: SKIPPED
bootlin-microblazeel-uclibc [10/44]: SKIPPED
bootlin-mipsel32r6-glibc [11/44]: SKIPPED
bootlin-mipsel-uclibc [12/44]: SKIPPED
bootlin-nios2-glibc [13/44]: SKIPPED
bootlin-openrisc-uclibc [14/44]: SKIPPED
bootlin-powerpc64le-power8-glibc [15/44]: OK
bootlin-powerpc-e500mc-uclibc [16/44]: OK
bootlin-riscv32-glibc [17/44]: OK
bootlin-riscv64-glibc [18/44]: OK
bootlin-riscv64-musl [19/44]: SKIPPED
bootlin-sh4-uclibc [20/44]: SKIPPED
bootlin-sparc64-glibc [21/44]: OK
bootlin-sparc-uclibc [22/44]: SKIPPED
bootlin-x86-64-glibc [23/44]: OK
bootlin-x86-64-musl [24/44]: SKIPPED
bootlin-x86-64-uclibc [25/44]: OK
bootlin-xtensa-uclibc [26/44]: SKIPPED
br-arm-basic [27/44]: SKIPPED
br-arm-full-nothread [28/44]: SKIPPED
br-arm-full-static [29/44]: SKIPPED
br-i386-pentium4-full [30/44]: OK
br-i386-pentium-mmx-musl [31/44]: SKIPPED
br-mips64-n64-full [32/44]: SKIPPED
br-mips64r6-el-hf-glibc [33/44]: SKIPPED
br-powerpc-603e-basic-cpp [34/44]: OK
br-powerpc64-power7-glibc [35/44]: OK
linaro-aarch64-be [36/44]: SKIPPED
linaro-aarch64 [37/44]: OK
linaro-arm [38/44]: OK
sourcery-arm-armv4t [39/44]: SKIPPED
sourcery-arm [40/44]: SKIPPED
sourcery-arm-thumb2 [41/44]: OK
sourcery-mips64 [42/44]: SKIPPED
sourcery-mips [43/44]: SKIPPED
sourcery-nios2 [44/44]: SKIPPED
44 builds, 28 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed
---
DEVELOPERS | 2 +
package/Config.in | 1 +
package/perftest/Config.in | 41 ++++++++++++++++
package/perftest/perftest.hash | 3 ++
package/perftest/perftest.mk | 15 ++++++
.../testing/tests/package/test_perftest.py | 48 +++++++++++++++++++
6 files changed, 110 insertions(+)
create mode 100644 package/perftest/Config.in
create mode 100644 package/perftest/perftest.hash
create mode 100644 package/perftest/perftest.mk
create mode 100644 support/testing/tests/package/test_perftest.py
diff --git a/DEVELOPERS b/DEVELOPERS
index 5eb746f8b4..7abfbe3c44 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1692,6 +1692,7 @@ F: package/gnupg2/
F: package/glslsandbox-player/
F: package/octave/
F: package/ola/
+F: package/perftest/
F: package/ptm2human/
F: package/python-distro/
F: package/python-gnupg/
@@ -1709,6 +1710,7 @@ F: support/testing/tests/package/test_ncdu.py
F: support/testing/tests/package/test_octave.py
F: support/testing/tests/package/test_ola.py
F: support/testing/tests/package/test_ola/
+F: support/testing/tests/package/test_perftest.py
F: support/testing/tests/package/test_python_distro.py
F: support/testing/tests/package/test_python_gnupg.py
F: support/testing/tests/package/test_python_pyalsa.py
diff --git a/package/Config.in b/package/Config.in
index 1f6db14d56..f32209db95 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -133,6 +133,7 @@ menu "Debugging, profiling and benchmark"
source "package/oprofile/Config.in"
source "package/pax-utils/Config.in"
source "package/pcm-tools/Config.in"
+ source "package/perftest/Config.in"
source "package/piglit/Config.in"
source "package/ply/Config.in"
source "package/poke/Config.in"
diff --git a/package/perftest/Config.in b/package/perftest/Config.in
new file mode 100644
index 0000000000..9b2e46e64a
--- /dev/null
+++ b/package/perftest/Config.in
@@ -0,0 +1,41 @@
+config BR2_PACKAGE_PERFTEST_ARCH_SUPPORTS
+ bool
+ # Accurate cycle measurement in perftest is implemented for a
+ # limited set of architectures, see:
+ # https://github.com/linux-rdma/perftest/blob/v4.5-0.20/src/get_clock.h
+ # Note: the package has also a fallback to use "asm/timex.h"
+ # from the Kernel, in
+ # "$(LINUX_DIR)/arch/$(KERNEL_ARCH)/include". It is not
+ # reflected here as this path is not well tested.
+ default y if BR2_i386 || BR2_x86_64
+ default y if BR2_arm && !BR2_ARM_CPU_ARMV4 && !BR2_ARM_CPU_ARMV5 && !BR2_ARM_CPU_ARMV6
+ default y if BR2_aarch64
+ default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
+ default y if BR2_s390x
+ default y if BR2_sparc || BR2_sparc64
+ default y if BR2_riscv
+
+config BR2_PACKAGE_PERFTEST
+ bool "perftest"
+ depends on BR2_PACKAGE_PERFTEST_ARCH_SUPPORTS
+ depends on !BR2_STATIC_LIBS # rdma-core
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4 # rdma-core
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ # musl does not define sysconf(_SC_LEVEL1_DCACHE_LINESIZE)
+ depends on !BR2_TOOLCHAIN_USES_MUSL
+ depends on BR2_USE_MMU # rdma-core
+ select BR2_PACKAGE_PCIUTILS
+ select BR2_PACKAGE_RDMA_CORE # libibverbs, librdmacm, libibumad
+ help
+ Open Fabrics Performance Tests.
+
+ This is a collection of tests written over uverbs intended
+ for use as a performance micro-benchmark. The tests may be
+ used for HW or SW tuning as well as for functional testing.
+
+ https://github.com/linux-rdma/perftest
+
+comment "perftest needs a toolchain w/ threads, dynamic library"
+ depends on BR2_USE_MMU
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4
+ depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
diff --git a/package/perftest/perftest.hash b/package/perftest/perftest.hash
new file mode 100644
index 0000000000..4333231c44
--- /dev/null
+++ b/package/perftest/perftest.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 32e667dac1c0dd41a3951c5a54b961a8e28db5d9478caea2dfc268a312968c99 perftest-4.5-0.20.tar.gz
+sha256 763adb7d5094f2127b026adea8701f042d28d4b1f6fb8b6e828989227a9cf7f5 COPYING
diff --git a/package/perftest/perftest.mk b/package/perftest/perftest.mk
new file mode 100644
index 0000000000..7ad20d0974
--- /dev/null
+++ b/package/perftest/perftest.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# perftest
+#
+################################################################################
+
+PERFTEST_VERSION = 4.5-0.20
+PERFTEST_SITE = $(call github,linux-rdma,perftest,v$(PERFTEST_VERSION))
+PERFTEST_LICENSE = GPL-2.0 or BSD-2-Clause
+PERFTEST_LICENSE_FILES = COPYING
+PERFTEST_DEPENDENCIES = pciutils rdma-core
+# Fetched from Github, with no configure script
+PERFTEST_AUTORECONF = YES
+
+$(eval $(autotools-package))
diff --git a/support/testing/tests/package/test_perftest.py b/support/testing/tests/package/test_perftest.py
new file mode 100644
index 0000000000..680b70d784
--- /dev/null
+++ b/support/testing/tests/package/test_perftest.py
@@ -0,0 +1,48 @@
+import os
+
+import infra.basetest
+
+
+class TestPerftest(infra.basetest.BRTest):
+
+ config = \
+ """
+ BR2_aarch64=y
+ BR2_TOOLCHAIN_EXTERNAL=y
+ BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
+ BR2_LINUX_KERNEL=y
+ BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+ BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.91"
+ BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
+ BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/aarch64-virt/linux.config"
+ BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="{}"
+ BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
+ BR2_TARGET_ROOTFS_CPIO=y
+ BR2_TARGET_ROOTFS_CPIO_GZIP=y
+ # BR2_TARGET_ROOTFS_TAR is not set
+ BR2_PACKAGE_IPROUTE2=y
+ BR2_PACKAGE_LIBMNL=y
+ BR2_PACKAGE_RDMA_CORE=y
+ BR2_PACKAGE_PERFTEST=y
+ """.format(
+ infra.filepath("tests/package/test_rdma_core/linux-rdma.fragment")
+ )
+
+ def test_run(self):
+ img = os.path.join(self.builddir, "images", "rootfs.cpio.gz")
+ kern = os.path.join(self.builddir, "images", "Image")
+ self.emulator.boot(arch="aarch64",
+ kernel=kern,
+ kernel_cmdline=["console=ttyAMA0"],
+ options=["-M", "virt", "-cpu", "cortex-a57", "-m", "512M", "-initrd", img])
+ self.emulator.login()
+
+ # Add the rxe0 interface
+ self.assertRunOk("ip link set dev eth0 up")
+ self.assertRunOk("rdma link add rxe0 type rxe netdev eth0")
+
+ # start a server
+ self.assertRunOk("ib_read_bw > /dev/null 2>&1 &")
+
+ # start a client
+ self.assertRunOk("sleep 1 && ib_read_bw 127.0.0.1")
--
2.39.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH v6 1/2] package/rdma-core: new package
2023-02-02 20:20 [Buildroot] [PATCH v6 1/2] package/rdma-core: new package Julien Olivain
2023-02-02 20:20 ` [Buildroot] [PATCH v6 2/2] package/perftest: " Julien Olivain
@ 2023-02-05 12:54 ` Yann E. MORIN
1 sibling, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2023-02-05 12:54 UTC (permalink / raw)
To: Julien Olivain; +Cc: Shamraiz Ashraf, Thomas Petazzoni, buildroot
Julien, All,
On 2023-02-02 21:20 +0100, Julien Olivain spake thusly:
> This is the userspace components for the Linux Kernel's
> drivers/infiniband subsystem.
>
> https://github.com/linux-rdma/rdma-core
>
> Tested-by: Shamraiz Ashraf <shamraizashraf092@gmail.com>
> Signed-off-by: Julien Olivain <ju.o@free.fr>
> ---
[--SNIP--]
> diff --git a/package/rdma-core/Config.in b/package/rdma-core/Config.in
> new file mode 100644
> index 0000000000..437cf903ac
> --- /dev/null
> +++ b/package/rdma-core/Config.in
> @@ -0,0 +1,22 @@
> +config BR2_PACKAGE_RDMA_CORE
> + bool "rdma-core"
> + depends on BR2_USE_MMU # fork() used in rstream example
> + depends on BR2_TOOLCHAIN_HAS_SYNC_4
> + depends on !BR2_STATIC_LIBS # dlopen()
> + depends on BR2_TOOLCHAIN_HAS_THREADS
> + select BR2_PACKAGE_LIBNL
> + help
> + This is the userspace components for the Linux Kernel's
> + drivers/infiniband subsystem.
> +
> + Note: The 'rdma' utility program is provided by the
> + 'iproute2' package, when compiled with the package 'libmnl'
> + also selected. This program is needed to configure
> + InfiniBand and RDMA networks from the command line.
Since it requires that utility from iproute2, I added a select (and
appropriate dependencies),and dropped that comment.
Applied to master, thanks.
Regards,
Yann E. MORIN.
> + https://github.com/linux-rdma/rdma-core
> +
> +comment "rdma-core needs a toolchain w/ threads, dynamic library"
> + depends on BR2_USE_MMU
> + depends on BR2_TOOLCHAIN_HAS_SYNC_4
> + depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
> diff --git a/package/rdma-core/rdma-core.hash b/package/rdma-core/rdma-core.hash
> new file mode 100644
> index 0000000000..1aff44f7f4
> --- /dev/null
> +++ b/package/rdma-core/rdma-core.hash
> @@ -0,0 +1,5 @@
> +# Locally calculated
> +sha256 4a2eec55b37ac25f25e7680a372f71c1781c23808542bd31fb68dc0448b8cba2 rdma-core-44.0.tar.gz
> +sha256 99e0df1d009a21d0dfb031600c550fd8f4efc0c6b2a4ef8b34a995aa6f79c9f4 COPYING.BSD_MIT
> +sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING.GPL2
> +sha256 c46a557f25b8ef9bec76526c4e593fc13e6cba27e7ba30d73b6497a689cf06f6 COPYING.md
> diff --git a/package/rdma-core/rdma-core.mk b/package/rdma-core/rdma-core.mk
> new file mode 100644
> index 0000000000..885821bf98
> --- /dev/null
> +++ b/package/rdma-core/rdma-core.mk
> @@ -0,0 +1,24 @@
> +################################################################################
> +#
> +# rdma-core
> +#
> +################################################################################
> +
> +RDMA_CORE_VERSION = 44.0
> +RDMA_CORE_SITE = $(call github,linux-rdma,rdma-core,v$(RDMA_CORE_VERSION))
> +RDMA_CORE_LICENSE = GPL-2.0 or BSD-2-Clause
> +RDMA_CORE_LICENSE_FILES = COPYING.GPL2 COPYING.BSD_MIT COPYING.md
> +RDMA_CORE_DEPENDENCIES = libnl
> +RDMA_CORE_INSTALL_STAGING = YES
> +
> +RDMA_CORE_CONF_OPTS = \
> + -DNO_MAN_PAGES=1 \
> + -DNO_PYVERBS=1
> +
> +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
> +RDMA_CORE_CONF_OPTS += \
> + -DCMAKE_EXE_LINKER_FLAGS=-latomic \
> + -DCMAKE_SHARED_LINKER_FLAGS=-latomic
> +endif
> +
> +$(eval $(cmake-package))
> diff --git a/package/rdma-core/readme.txt b/package/rdma-core/readme.txt
> new file mode 100644
> index 0000000000..9a95226ef4
> --- /dev/null
> +++ b/package/rdma-core/readme.txt
> @@ -0,0 +1,75 @@
> +Testing rdma-core userspace tools
> +=================================
> +
> +Testing rdma-core using Linux software RoCE implementation:
> +https://en.wikipedia.org/wiki/RDMA_over_Converged_Ethernet
> +
> +Using two systems with working TCP/IP configuration, for example:
> +- Server IP: 192.168.123.10
> +- Client IP: 192.168.123.20
> +
> +Make sure firewall configurations are appropriate. Routable RoCE v2
> +uses udp/4791. ibv_rc_pingpong uses tcp/18515 for initial
> +synchronization.
> +
> +Note: this test can be executed in two qemu virtual machines with
> +bridged networking.
> +
> +
> +Kernel configuration
> +--------------------
> +
> +The Linux Kernel needs some InfiniBand configuration. In this example
> +the kernel "rdma_rxe" driver is needed (CONFIG_RDMA_RXE=y). The Kernel
> +config fragment file used for package test can be used as a starting
> +point. See:
> +
> + support/testing/tests/package/test_rdma_core/linux-rdma.fragment
> +
> +
> +Buildroot package configuration
> +-------------------------------
> +
> +For setting up a software RoCE link, the "rdma" program is needed. It
> +is provided by the "iproute2" package, when "libmnl" is also
> +selected. Make sure to have in your Buildroot configuration:
> +
> + BR2_PACKAGE_IPROUTE2=y
> + BR2_PACKAGE_LIBMNL=y
> + BR2_PACKAGE_RDMA_CORE=y
> +
> +
> +Setting up the rdma link
> +------------------------
> +
> +On both server and client:
> +
> + modprobe rdma_rxe
> + rdma link add rxe0 type rxe netdev eth0
> +
> +
> +Testing with rping
> +------------------
> +
> +On the server side, run the command:
> +
> + rping -s -v
> +
> +On the client side, run the command:
> +
> + rping -c -v -a 192.168.123.10
> +
> +
> +Testing with ibv_rc_pingpong
> +----------------------------
> +
> +To test with the pingpong example using the reliable connected (RC)
> +transport:
> +
> +On the server side, run the command:
> +
> + ibv_rc_pingpong -d rxe0 -g 1
> +
> +On the client side, run the command:
> +
> + ibv_rc_pingpong -d rxe0 -g 1 192.168.123.10
> diff --git a/support/testing/tests/package/test_rdma_core.py b/support/testing/tests/package/test_rdma_core.py
> new file mode 100644
> index 0000000000..614fb51f48
> --- /dev/null
> +++ b/support/testing/tests/package/test_rdma_core.py
> @@ -0,0 +1,43 @@
> +import os
> +
> +import infra.basetest
> +
> +
> +class TestRdmaCore(infra.basetest.BRTest):
> +
> + config = \
> + """
> + BR2_aarch64=y
> + BR2_TOOLCHAIN_EXTERNAL=y
> + BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
> + BR2_LINUX_KERNEL=y
> + BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> + BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.91"
> + BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
> + BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/aarch64-virt/linux.config"
> + BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="{}"
> + BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
> + BR2_TARGET_ROOTFS_CPIO=y
> + BR2_TARGET_ROOTFS_CPIO_GZIP=y
> + # BR2_TARGET_ROOTFS_TAR is not set
> + BR2_PACKAGE_IPROUTE2=y
> + BR2_PACKAGE_LIBMNL=y
> + BR2_PACKAGE_RDMA_CORE=y
> + """.format(
> + infra.filepath("tests/package/test_rdma_core/linux-rdma.fragment")
> + )
> +
> + def test_run(self):
> + img = os.path.join(self.builddir, "images", "rootfs.cpio.gz")
> + kern = os.path.join(self.builddir, "images", "Image")
> + self.emulator.boot(arch="aarch64",
> + kernel=kern,
> + kernel_cmdline=["console=ttyAMA0"],
> + options=["-M", "virt", "-cpu", "cortex-a57", "-m", "512M", "-initrd", img])
> + self.emulator.login()
> +
> + # Add the rxe0 interface
> + self.assertRunOk("rdma link add rxe0 type rxe netdev eth0")
> +
> + # ibv_devinfo returns 255 if no devices are found
> + self.assertRunOk("ibv_devinfo -v")
> diff --git a/support/testing/tests/package/test_rdma_core/linux-rdma.fragment b/support/testing/tests/package/test_rdma_core/linux-rdma.fragment
> new file mode 100644
> index 0000000000..e305f27e62
> --- /dev/null
> +++ b/support/testing/tests/package/test_rdma_core/linux-rdma.fragment
> @@ -0,0 +1,9 @@
> +CONFIG_INFINIBAND=m
> +CONFIG_INFINIBAND_USER_MAD=m
> +CONFIG_INFINIBAND_USER_ACCESS=m
> +CONFIG_RDMA_RXE=m
> +CONFIG_INFINIBAND_IPOIB=m
> +CONFIG_INFINIBAND_IPOIB_CM=y
> +CONFIG_INFINIBAND_IPOIB_DEBUG_DATA=y
> +CONFIG_INFINIBAND_RTRS_CLIENT=m
> +CONFIG_INFINIBAND_RTRS_SERVER=m
> --
> 2.39.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH v6 2/2] package/perftest: new package
2023-02-02 20:20 ` [Buildroot] [PATCH v6 2/2] package/perftest: " Julien Olivain
@ 2023-02-05 14:09 ` Yann E. MORIN
0 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2023-02-05 14:09 UTC (permalink / raw)
To: Julien Olivain; +Cc: Shamraiz Ashraf, Thomas Petazzoni, buildroot
Julien, All,
On 2023-02-02 21:20 +0100, Julien Olivain spake thusly:
> Open Fabrics Performance Tests.
>
> This is a collection of tests written over uverbs intended
> for use as a performance micro-benchmark. The tests may be
> used for HW or SW tuning as well as for functional testing.
>
> https://github.com/linux-rdma/perftest
>
> Tested-by: Shamraiz Ashraf <shamraizashraf092@gmail.com>
> Signed-off-by: Julien Olivain <ju.o@free.fr>
Applied to master, thanks.
I however did a few cleanups:
- move all arch-related dependencies to _ARCH_SUPPORTS
- include musl condition in comment and its dependnecies
Regards,
Yann E. MORIN.
> ---
> Changes v5 -> v6:
> - Update perftest from version 4.5-0.18 to 4.5-0.20
> - Update kernel in test from 5.15.80 to 5.15.91
> - Add perftest entries in DEVELOPERS file
>
> Changes v1 -> v5:
> - introduce perftest package in v5 patch series
> ---
> Tested on branch main at commit aff4317 with commands:
>
> make check-package
> ...
> 0 warnings generated
>
> python3 -m flake8 support/testing/tests/package/test_perftest.py
> [no-output]
>
> support/testing/run-tests \
> -d dl -o output_folder \
> tests.package.test_perftest.TestPerftest
> ...
> OK
>
> ./utils/test-pkg -a -p perftest
> arm-aarch64 [ 1/44]: OK
> bootlin-aarch64-glibc [ 2/44]: OK
> bootlin-arcle-hs38-uclibc [ 3/44]: SKIPPED
> bootlin-armv5-uclibc [ 4/44]: SKIPPED
> bootlin-armv7-glibc [ 5/44]: OK
> bootlin-armv7m-uclibc [ 6/44]: SKIPPED
> bootlin-armv7-musl [ 7/44]: SKIPPED
> bootlin-m68k-5208-uclibc [ 8/44]: SKIPPED
> bootlin-m68k-68040-uclibc [ 9/44]: SKIPPED
> bootlin-microblazeel-uclibc [10/44]: SKIPPED
> bootlin-mipsel32r6-glibc [11/44]: SKIPPED
> bootlin-mipsel-uclibc [12/44]: SKIPPED
> bootlin-nios2-glibc [13/44]: SKIPPED
> bootlin-openrisc-uclibc [14/44]: SKIPPED
> bootlin-powerpc64le-power8-glibc [15/44]: OK
> bootlin-powerpc-e500mc-uclibc [16/44]: OK
> bootlin-riscv32-glibc [17/44]: OK
> bootlin-riscv64-glibc [18/44]: OK
> bootlin-riscv64-musl [19/44]: SKIPPED
> bootlin-sh4-uclibc [20/44]: SKIPPED
> bootlin-sparc64-glibc [21/44]: OK
> bootlin-sparc-uclibc [22/44]: SKIPPED
> bootlin-x86-64-glibc [23/44]: OK
> bootlin-x86-64-musl [24/44]: SKIPPED
> bootlin-x86-64-uclibc [25/44]: OK
> bootlin-xtensa-uclibc [26/44]: SKIPPED
> br-arm-basic [27/44]: SKIPPED
> br-arm-full-nothread [28/44]: SKIPPED
> br-arm-full-static [29/44]: SKIPPED
> br-i386-pentium4-full [30/44]: OK
> br-i386-pentium-mmx-musl [31/44]: SKIPPED
> br-mips64-n64-full [32/44]: SKIPPED
> br-mips64r6-el-hf-glibc [33/44]: SKIPPED
> br-powerpc-603e-basic-cpp [34/44]: OK
> br-powerpc64-power7-glibc [35/44]: OK
> linaro-aarch64-be [36/44]: SKIPPED
> linaro-aarch64 [37/44]: OK
> linaro-arm [38/44]: OK
> sourcery-arm-armv4t [39/44]: SKIPPED
> sourcery-arm [40/44]: SKIPPED
> sourcery-arm-thumb2 [41/44]: OK
> sourcery-mips64 [42/44]: SKIPPED
> sourcery-mips [43/44]: SKIPPED
> sourcery-nios2 [44/44]: SKIPPED
> 44 builds, 28 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed
> ---
> DEVELOPERS | 2 +
> package/Config.in | 1 +
> package/perftest/Config.in | 41 ++++++++++++++++
> package/perftest/perftest.hash | 3 ++
> package/perftest/perftest.mk | 15 ++++++
> .../testing/tests/package/test_perftest.py | 48 +++++++++++++++++++
> 6 files changed, 110 insertions(+)
> create mode 100644 package/perftest/Config.in
> create mode 100644 package/perftest/perftest.hash
> create mode 100644 package/perftest/perftest.mk
> create mode 100644 support/testing/tests/package/test_perftest.py
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 5eb746f8b4..7abfbe3c44 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -1692,6 +1692,7 @@ F: package/gnupg2/
> F: package/glslsandbox-player/
> F: package/octave/
> F: package/ola/
> +F: package/perftest/
> F: package/ptm2human/
> F: package/python-distro/
> F: package/python-gnupg/
> @@ -1709,6 +1710,7 @@ F: support/testing/tests/package/test_ncdu.py
> F: support/testing/tests/package/test_octave.py
> F: support/testing/tests/package/test_ola.py
> F: support/testing/tests/package/test_ola/
> +F: support/testing/tests/package/test_perftest.py
> F: support/testing/tests/package/test_python_distro.py
> F: support/testing/tests/package/test_python_gnupg.py
> F: support/testing/tests/package/test_python_pyalsa.py
> diff --git a/package/Config.in b/package/Config.in
> index 1f6db14d56..f32209db95 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -133,6 +133,7 @@ menu "Debugging, profiling and benchmark"
> source "package/oprofile/Config.in"
> source "package/pax-utils/Config.in"
> source "package/pcm-tools/Config.in"
> + source "package/perftest/Config.in"
> source "package/piglit/Config.in"
> source "package/ply/Config.in"
> source "package/poke/Config.in"
> diff --git a/package/perftest/Config.in b/package/perftest/Config.in
> new file mode 100644
> index 0000000000..9b2e46e64a
> --- /dev/null
> +++ b/package/perftest/Config.in
> @@ -0,0 +1,41 @@
> +config BR2_PACKAGE_PERFTEST_ARCH_SUPPORTS
> + bool
> + # Accurate cycle measurement in perftest is implemented for a
> + # limited set of architectures, see:
> + # https://github.com/linux-rdma/perftest/blob/v4.5-0.20/src/get_clock.h
> + # Note: the package has also a fallback to use "asm/timex.h"
> + # from the Kernel, in
> + # "$(LINUX_DIR)/arch/$(KERNEL_ARCH)/include". It is not
> + # reflected here as this path is not well tested.
> + default y if BR2_i386 || BR2_x86_64
> + default y if BR2_arm && !BR2_ARM_CPU_ARMV4 && !BR2_ARM_CPU_ARMV5 && !BR2_ARM_CPU_ARMV6
> + default y if BR2_aarch64
> + default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
> + default y if BR2_s390x
> + default y if BR2_sparc || BR2_sparc64
> + default y if BR2_riscv
> +
> +config BR2_PACKAGE_PERFTEST
> + bool "perftest"
> + depends on BR2_PACKAGE_PERFTEST_ARCH_SUPPORTS
> + depends on !BR2_STATIC_LIBS # rdma-core
> + depends on BR2_TOOLCHAIN_HAS_SYNC_4 # rdma-core
> + depends on BR2_TOOLCHAIN_HAS_THREADS
> + # musl does not define sysconf(_SC_LEVEL1_DCACHE_LINESIZE)
> + depends on !BR2_TOOLCHAIN_USES_MUSL
> + depends on BR2_USE_MMU # rdma-core
> + select BR2_PACKAGE_PCIUTILS
> + select BR2_PACKAGE_RDMA_CORE # libibverbs, librdmacm, libibumad
> + help
> + Open Fabrics Performance Tests.
> +
> + This is a collection of tests written over uverbs intended
> + for use as a performance micro-benchmark. The tests may be
> + used for HW or SW tuning as well as for functional testing.
> +
> + https://github.com/linux-rdma/perftest
> +
> +comment "perftest needs a toolchain w/ threads, dynamic library"
> + depends on BR2_USE_MMU
> + depends on BR2_TOOLCHAIN_HAS_SYNC_4
> + depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
> diff --git a/package/perftest/perftest.hash b/package/perftest/perftest.hash
> new file mode 100644
> index 0000000000..4333231c44
> --- /dev/null
> +++ b/package/perftest/perftest.hash
> @@ -0,0 +1,3 @@
> +# Locally calculated
> +sha256 32e667dac1c0dd41a3951c5a54b961a8e28db5d9478caea2dfc268a312968c99 perftest-4.5-0.20.tar.gz
> +sha256 763adb7d5094f2127b026adea8701f042d28d4b1f6fb8b6e828989227a9cf7f5 COPYING
> diff --git a/package/perftest/perftest.mk b/package/perftest/perftest.mk
> new file mode 100644
> index 0000000000..7ad20d0974
> --- /dev/null
> +++ b/package/perftest/perftest.mk
> @@ -0,0 +1,15 @@
> +################################################################################
> +#
> +# perftest
> +#
> +################################################################################
> +
> +PERFTEST_VERSION = 4.5-0.20
> +PERFTEST_SITE = $(call github,linux-rdma,perftest,v$(PERFTEST_VERSION))
> +PERFTEST_LICENSE = GPL-2.0 or BSD-2-Clause
> +PERFTEST_LICENSE_FILES = COPYING
> +PERFTEST_DEPENDENCIES = pciutils rdma-core
> +# Fetched from Github, with no configure script
> +PERFTEST_AUTORECONF = YES
> +
> +$(eval $(autotools-package))
> diff --git a/support/testing/tests/package/test_perftest.py b/support/testing/tests/package/test_perftest.py
> new file mode 100644
> index 0000000000..680b70d784
> --- /dev/null
> +++ b/support/testing/tests/package/test_perftest.py
> @@ -0,0 +1,48 @@
> +import os
> +
> +import infra.basetest
> +
> +
> +class TestPerftest(infra.basetest.BRTest):
> +
> + config = \
> + """
> + BR2_aarch64=y
> + BR2_TOOLCHAIN_EXTERNAL=y
> + BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
> + BR2_LINUX_KERNEL=y
> + BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> + BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.91"
> + BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
> + BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/aarch64-virt/linux.config"
> + BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="{}"
> + BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
> + BR2_TARGET_ROOTFS_CPIO=y
> + BR2_TARGET_ROOTFS_CPIO_GZIP=y
> + # BR2_TARGET_ROOTFS_TAR is not set
> + BR2_PACKAGE_IPROUTE2=y
> + BR2_PACKAGE_LIBMNL=y
> + BR2_PACKAGE_RDMA_CORE=y
> + BR2_PACKAGE_PERFTEST=y
> + """.format(
> + infra.filepath("tests/package/test_rdma_core/linux-rdma.fragment")
> + )
> +
> + def test_run(self):
> + img = os.path.join(self.builddir, "images", "rootfs.cpio.gz")
> + kern = os.path.join(self.builddir, "images", "Image")
> + self.emulator.boot(arch="aarch64",
> + kernel=kern,
> + kernel_cmdline=["console=ttyAMA0"],
> + options=["-M", "virt", "-cpu", "cortex-a57", "-m", "512M", "-initrd", img])
> + self.emulator.login()
> +
> + # Add the rxe0 interface
> + self.assertRunOk("ip link set dev eth0 up")
> + self.assertRunOk("rdma link add rxe0 type rxe netdev eth0")
> +
> + # start a server
> + self.assertRunOk("ib_read_bw > /dev/null 2>&1 &")
> +
> + # start a client
> + self.assertRunOk("sleep 1 && ib_read_bw 127.0.0.1")
> --
> 2.39.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-02-05 14:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-02 20:20 [Buildroot] [PATCH v6 1/2] package/rdma-core: new package Julien Olivain
2023-02-02 20:20 ` [Buildroot] [PATCH v6 2/2] package/perftest: " Julien Olivain
2023-02-05 14:09 ` Yann E. MORIN
2023-02-05 12:54 ` [Buildroot] [PATCH v6 1/2] package/rdma-core: " Yann E. MORIN
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.