buildroot: adding perftest and necessary libraries
PATCH 1/1 buildroot: adding perftest and necessary libraries
This patch adds the tool perftest, which a collection of tests written using Infiniband verbs intended for use as a performance micro-benchmark. The tests can measure the latency and bandwidth of Infiniband fabrics. It also adds 3 necessary libraries:
a) libibverbs (library that allows userspace processes to use RDMA "verbs")
b) librdmacm (library that allows applications to set up reliable connected and unreliable datagram transfers when using RDMA adapters)
c) libibumad (library that provides userspace Infiniband Management Datagram (uMAD) functions which sit on top of the uMAD modules in the kernel)
--- package/Config.in | 4 +++ .../0001-fix-cross-compilation-error.patch | 29 ++++++++++++++++++++++ package/libibumad/Config.in | 9 +++++++ package/libibumad/libibumad.hash | 2 ++ package/libibumad/libibumad.mk | 12 +++++++++ package/libibverbs/Config.in | 8 ++++++ package/libibverbs/libibverbs.hash | 2 ++ package/libibverbs/libibverbs.mk | 19 ++++++++++++++ package/librdmacm/Config.in | 8 ++++++ package/librdmacm/librdmacm.hash | 2 ++ package/librdmacm/librdmacm.mk | 12 +++++++++ package/perftest/Config.in | 10 ++++++++ package/perftest/perftest.hash | 2 ++ package/perftest/perftest.mk | 19 ++++++++++++++ 14 files changed, 138 insertions(+) create mode 100644 package/libibumad/0001-fix-cross-compilation-error.patch create mode 100644 package/libibumad/Config.in create mode 100644 package/libibumad/libibumad.hash create mode 100644 package/libibumad/libibumad.mk create mode 100644 package/libibverbs/Config.in create mode 100644 package/libibverbs/libibverbs.hash create mode 100644 package/libibverbs/libibverbs.mk create mode 100644 package/librdmacm/Config.in create mode 100644 package/librdmacm/librdmacm.hash create mode 100644 package/librdmacm/librdmacm.mk create mode 100644 package/perftest/Config.in create mode 100644 package/perftest/perftest.hash create mode 100644 package/perftest/perftest.mk
package/Config.in +4 -0
@@ -1261,6 +1261,8 @@ menu "Networking" source "package/libfcgi/Config.in" source "package/libgsasl/Config.in" source "package/libhttpparser/Config.in" + source "package/libibumad/Config.in" + source "package/libibverbs/Config.in" source "package/libidn/Config.in" source "package/libiscsi/Config.in" source "package/libldns/Config.in"
@@ -1289,6 +1291,7 @@ menu "Networking" source "package/libosip2/Config.in" source "package/libpcap/Config.in" source "package/libpjsip/Config.in" + source "package/librdmacm/Config.in" source "package/librsync/Config.in" source "package/libshairplay/Config.in" source "package/libshout/Config.in"
@@ -1643,6 +1646,7 @@ endif source "package/openswan/Config.in" source "package/openvpn/Config.in" source "package/p910nd/Config.in" + source "package/perftest/Config.in" source "package/phidgetwebservice/Config.in" source "package/phytool/Config.in" source "package/pound/Config.in"
package/libibumad/0001-fix-cross-compilation-error.patch new file +29 -0
@@ -0,0 +1,29 @@ +From bb999ab4e2529accfbde97165964074a1ace2389 Mon Sep 17 00:00:00 20010001-buildroot-adding-perftest-and-libraries.patch +Message-Id: <bb999ab4e2529accfbde97165964074a1ace2389.1492783647.git.jpinto@synopsys.com> +From: Joao Pinto <[email protected]> +Date: Fri, 21 Apr 2017 15:07:12 +0100 +Subject: [PATCH] fix cross compilation error + +This patch fixes the cross-compilation error "ERROR: unsafe header/library path +used in cross-compilation: '-I/usr/include'". + +Signed-off-by: Joao Pinto <[email protected]> +--- + Makefile.in | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/Makefile.in b/Makefile.in +index 2b50610..eb38dec 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -296,7 +296,6 @@ ACLOCAL_AMFLAGS = -I config + SUBDIRS = . + INCLUDES = -I$(srcdir)/include/infiniband \ + -I$(srcdir)/include \ +- -I$(includedir) + + man_MANS = man/umad_debug.3 man/umad_get_ca.3 \ + man/umad_get_ca_portguids.3 man/umad_get_cas_names.3 \ +-- +2.9.3 +
package/libibumad/Config.in new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_LIBIBUMAD + bool "libibumad" + select BR2_PACKAGE_LIBIBVERBS + help + It is a library that provides userspace Infiniband Management + Datagram (uMAD) functions which sit on top of the uMAD modules in the + kernel. These are used by InfiniBand diagnostic and management tools. + + https://www.openfabrics.org
package/libibumad/libibumad.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 500f74e31bd9f3d6c32dea912de3a2d1b299f3f23d7abd893652dd45c77a7e2e libibumad-1.3.10.2.tar.gz
package/libibumad/libibumad.mk new file +12 -0
@@ -0,0 +1,12 @@ +################################################################################ +# +# LIBIBUMAD +# +################################################################################ + +LIBIBUMAD_VERSION = 1.3.10.2 +LIBIBUMAD_SOURCE = libibumad-$(LIBIBUMAD_VERSION).tar.gz +LIBIBUMAD_SITE = https://www.openfabrics.org/downloads/management +LIBIBUMAD_INSTALL_STAGING = YES + +$(eval $(autotools-package))
package/libibverbs/Config.in new file +8 -0
@@ -0,0 +1,8 @@ +config BR2_PACKAGE_LIBIBVERBS + bool "libibverbs" + help + It is a library that allows userspace processes to use RDMA "verbs" + as described in the InfiniBand Architecture Specification and the + RDMA Protocol Verbs Specification. + + https://www.openfabrics.org
package/libibverbs/libibverbs.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 844b4d50d476ebbaaf601929641b0e3c51d58daf56c7269914c1edc32c8beeec libibverbs-1.1.7.tar.gz
package/libibverbs/libibverbs.mk new file +19 -0
@@ -0,0 +1,19 @@ +################################################################################ +# +# LIBIBVERBS +# +################################################################################ + +LIBIBVERBS_VERSION = 1.1.7 +LIBIBVERBS_SOURCE = libibverbs-$(LIBIBVERBS_VERSION).tar.gz +LIBIBVERBS_SITE = https://git.kernel.org/pub/scm/libs/infiniband/libibverbs.git/snapshot +LIBIBVERBS_INSTALL_STAGING = YES + +# autogen.sh is because autotools stuff lives in other directories and +# even AUTORECONF with _OPTS doesn't do it properly. +define LIBIBVERBS_RUN_AUTOGEN + cd $(@D) && PATH=$(BR_PATH) ./autogen.sh +endef +LIBIBVERBS_POST_PATCH_HOOKS += LIBIBVERBS_RUN_AUTOGEN + +$(eval $(autotools-package))
package/librdmacm/Config.in new file +8 -0
@@ -0,0 +1,8 @@ +config BR2_PACKAGE_LIBRDMACM + bool "librdmacm" + select BR2_PACKAGE_LIBIBVERBS + help + It is a library that allows applications to set up reliable connected + and unreliable datagram transfers when using RDMA adapters + + https://www.openfabrics.org
package/librdmacm/librdmacm.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 b4a2a0a4f70c22611ca35aa8b9699420872803cba5af28ae3ca57dd90b60c6c6 librdmacm-1.0.15.tar.gz
package/librdmacm/librdmacm.mk new file +12 -0
@@ -0,0 +1,12 @@ +################################################################################ +# +# LIBRDMACM +# +################################################################################ + +LIBRDMACM_VERSION = 1.0.15 +LIBRDMACM_SOURCE = librdmacm-$(LIBRDMACM_VERSION).tar.gz +LIBRDMACM_SITE = https://www.openfabrics.org/downloads/rdmacm +LIBRDMACM_INSTALL_STAGING = YES + +$(eval $(autotools-package))
package/perftest/Config.in new file +10 -0
@@ -0,0 +1,10 @@ +config BR2_PACKAGE_PERFTEST + bool "perftest" + select BR2_PACKAGE_LIBIBUMAD + select BR2_PACKAGE_LIBRDMACM + help + It is a collection of tests written using Infiniband verbs intended + for use as a performance micro-benchmark. The tests can measure the + latency and bandwidth of Infiniband fabrics. + + https://www.openfabrics.org
package/perftest/perftest.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 6078dd4fc66d85ff1439ad8fe26cc0689ad18f24459fe3e7d20feda58c6d4609 perftest-3.4-0.9.g98a9a17.tar.gz
package/perftest/perftest.mk new file +19 -0
@@ -0,0 +1,19 @@ +################################################################################ +# +# PERFTEST +# +################################################################################ + +PERFTEST_VERSION = 3.4-0.9.g98a9a17 +PERFTEST_SOURCE = perftest-$(PERFTEST_VERSION).tar.gz +PERFTEST_SITE = https://www.openfabrics.org/downloads/perftest +PERFTEST_INSTALL_STAGING = YES + +# autogen.sh is because autotools stuff lives in other directories and +# even AUTORECONF with _OPTS doesn't do it properly. +define PERFTEST_RUN_AUTOGEN + cd $(@D) && PATH=$(BR_PATH) ./autogen.sh +endef +PERFTEST_POST_PATCH_HOOKS += PERFTEST_RUN_AUTOGEN + +$(eval $(autotools-package))
Signature · 1 line
2.9.3
PATCH 1/1 buildroot: adding perftest and necessary libraries
Hello,
Quoted 5 lines · Joao Pinto
This patch adds the tool perftest, which a collection of tests written using Infiniband verbs intended for use as a performance micro-benchmark. The tests can measure the latency and bandwidth of Infiniband fabrics. It also adds 3 necessary libraries:
Quoted 7 lines
a) libibverbs (library that allows userspace processes to use RDMA "verbs")
b) librdmacm (library that allows applications to set up reliable connected and unreliable datagram transfers when using RDMA adapters)
c) libibumad (library that provides userspace Infiniband Management Datagram (uMAD) functions which sit on top of the uMAD modules in the kernel)Signed-off-by Joao Pinto <[email protected]>
Thanks for this, but it should be split in four patches, one for each package you're adding. Patches should be in the right order, so that if we apply only the first patches, nothing breaks.
Also, please add yourself for those packages in the DEVELOPERS file.
package/libibumad/0001-fix-cross-compilation-error.patch line 18
Quoted 4 lines
package/libibumad/0001-fix-cross-compilation-error.patch new file +4
-0+diff --git a/Makefile.in b/Makefile.in +index 2b50610..eb38dec 100644 +--- a/Makefile.in ++++ b/Makefile.in
Please patch Makefile.am instead and use LIBIBUMAD_AUTORECONF = YES.
Also, please submit this patch to the upstream project, having -I$(includedir) is always wrong.
package/libibumad/libibumad.mk line 3
Quoted 6 lines
package/libibumad/libibumad.mk new file +3
-0@@ -0,0 +1,12 @@ +################################################################################ +# +# LIBIBUMAD
Should be lower-case.
package/libibverbs/libibverbs.mk line 3
Quoted 9 lines
package/libibverbs/libibverbs.mk new file +3
-0@@ -0,0 +1,19 @@ +################################################################################ +# +# LIBIBVERBS
Should be lower-case.
package/libibverbs/libibverbs.mk line 10
Quoted 7 lines
package/libibverbs/libibverbs.mk new file +7
-0+# +################################################################################ + +LIBIBVERBS_VERSION = 1.1.7 +LIBIBVERBS_SOURCE = libibverbs-$(LIBIBVERBS_VERSION).tar.gz +LIBIBVERBS_SITE = https://git.kernel.org/pub/scm/libs/infiniband/libibverbs.git/snapshot +LIBIBVERBS_INSTALL_STAGING = YES
Are you sure about this?
First, the latest version of libibverbs is 1.2.1. Second, libibverbs is no longer maintained, see
https://git.kernel.org/pub/scm/libs/infiniband/libibverbs.git/tree/README.
https://github.com/linux-rdma/rdma-core now contains libibverbs and libibumad.
package/libibverbs/libibverbs.mk line 15
Quoted 4 lines
package/libibverbs/libibverbs.mk new file +4
-0+# autogen.sh is because autotools stuff lives in other directories and +# even AUTORECONF with _OPTS doesn't do it properly. +define LIBIBVERBS_RUN_AUTOGEN + cd $(@D) && PATH=$(BR_PATH) ./autogen.sh
This doesn't work, because it doesn't add the dependency on host-autoconf, host-automake and host-libtool. So AUTORECONF=YES should really be used.
package/librdmacm/Config.in line 2
Quoted 8 lines
package/librdmacm/Config.in new file +2
-0@@ -0,0 +1,8 @@ +config BR2_PACKAGE_LIBRDMACM + bool "librdmacm"
This library is now also part of rdma-core,
https://github.com/linux-rdma/rdma-core.
package/librdmacm/librdmacm.mk line 3
Quoted 6 lines
package/librdmacm/librdmacm.mk new file +3
-0@@ -0,0 +1,12 @@ +################################################################################ +# +# LIBRDMACM
Lower case.
package/perftest/Config.in line 2
Quoted 8 lines
package/perftest/Config.in new file +2
-0@@ -0,0 +1,10 @@ +config BR2_PACKAGE_PERFTEST + bool "perftest"
I know it's the upstream name, but it sounds very generic for something that is in fact very, very specific. Maybe ofed-perftest ? Or rdma-perftest ? Do you have some suggestion ?
package/perftest/Config.in line 3
Quoted 5 lines
package/perftest/Config.in new file +4
-0+++ b/package/perftest/perftest.mk@@ -0,0 +1,19 @@ +################################################################################ +# +# PERFTEST
Lower case.
Quoted 4 lines
package/perftest/Config.in new file +4
-0+# +################################################################################ + +PERFTEST_VERSION = 3.4-0.9.g98a9a17
package/perftest/Config.in line 17
Quoted 10 lines
package/perftest/Config.in new file +10
-0+PERFTEST_SOURCE = perftest-$(PERFTEST_VERSION).tar.gz +PERFTEST_SITE = https://www.openfabrics.org/downloads/perftest +PERFTEST_INSTALL_STAGING = YES + +# autogen.sh is because autotools stuff lives in other directories and +# even AUTORECONF with _OPTS doesn't do it properly. +define PERFTEST_RUN_AUTOGEN + cd $(@D) && PATH=$(BR_PATH) ./autogen.sh +endef +PERFTEST_POST_PATCH_HOOKS += PERFTEST_RUN_AUTOGEN
Same comment as above: this doesn't work, because there is no dependency on host-autoconf, host-automake and host-libtool. In addition, the tarball you are downloading already contains the configure script pre-generated, so it doesn't seem really useful to autoreconf this package.
Could you fix the above issues and submit an updated patch series?
Thanks a lot!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/1 buildroot: adding perftest and necessary libraries
Hello Thomas,
?s 2:37 PM de 4/29/2017, Thomas Petazzoni escreveu:
Quoted 14 lines
Hello,
Quoted 11 lines · Joao Pinto
This patch adds the tool perftest, which a collection of tests written using Infiniband verbs intended for use as a performance micro-benchmark. The tests can measure the latency and bandwidth of Infiniband fabrics. It also adds 3 necessary libraries:
a) libibverbs (library that allows userspace processes to use RDMA "verbs")
b) librdmacm (library that allows applications to set up reliable connected and unreliable datagram transfers when using RDMA adapters)
c) libibumad (library that provides userspace Infiniband Management Datagram (uMAD) functions which sit on top of the uMAD modules in the kernel)
Quoted 8 lines
Quoted 1 line
Signed-off-by Joao Pinto <[email protected]>Thanks for this, but it should be split in four patches, one for each package you're adding. Patches should be in the right order, so that if we apply only the first patches, nothing breaks.
Also, please add yourself for those packages in the DEVELOPERS file.
(...) snip
Quoted 10 lines
package/perftest/perftest.mk line 17
Quoted 2 lines
package/perftest/perftest.mk new file +2
-0+endef +PERFTEST_POST_PATCH_HOOKS += PERFTEST_RUN_AUTOGENSame comment as above: this doesn't work, because there is no dependency on host-autoconf, host-automake and host-libtool. In addition, the tarball you are downloading already contains the configure script pre-generated, so it doesn't seem really useful to autoreconf this package.
Could you fix the above issues and submit an updated patch series?
Of course I will check them out and send a v2 soon. Tahnks for the feedback.
Quoted 5 lines
Thanks a lot!
Thomas
Joao