From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 08 Feb 2023 12:05:56 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pPiGz-000UCc-QF for lore@lore.pengutronix.de; Wed, 08 Feb 2023 12:05:56 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1pPiGw-00027d-TY; Wed, 08 Feb 2023 12:05:54 +0100 Received: from luzerne.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::52]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1pPiGW-00027H-1m; Wed, 08 Feb 2023 12:05:28 +0100 From: =?UTF-8?q?Sven=20P=C3=BCschel?= To: ptxdist@pengutronix.de Date: Wed, 8 Feb 2023 12:05:10 +0100 Message-Id: <20230208110510.171839-1-s.pueschel@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH] Added sockperf benchmarking utility X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: =?UTF-8?q?Sven=20P=C3=BCschel?= Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Signed-off-by: Sven PĆ¼schel --- rules/sockperf.in | 8 +++++++ rules/sockperf.make | 58 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 rules/sockperf.in create mode 100644 rules/sockperf.make diff --git a/rules/sockperf.in b/rules/sockperf.in new file mode 100644 index 000000000..91851c2ed --- /dev/null +++ b/rules/sockperf.in @@ -0,0 +1,8 @@ +## SECTION=test_suites + +config SOCKPERF + tristate + select GCCLIBS_CXX + prompt "sockperf" + help + Network benchmarking utility over socket API diff --git a/rules/sockperf.make b/rules/sockperf.make new file mode 100644 index 000000000..e7394cfe4 --- /dev/null +++ b/rules/sockperf.make @@ -0,0 +1,58 @@ +# -*-makefile-*- +# +# Copyright (C) 2023 by Mellanox Technologies Ltd. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_SOCKPERF) += sockperf + +# +# Paths and names +# +SOCKPERF_VERSION := 3.10 +SOCKPERF_MD5 := c589f072adf8c00eb95ef83c2d371f28 +SOCKPERF := sockperf-$(SOCKPERF_VERSION) +SOCKPERF_SUFFIX := tar.gz +SOCKPERF_URL := https://github.com/Mellanox/sockperf/archive/refs/tags/$(SOCKPERF_VERSION).$(SOCKPERF_SUFFIX) +SOCKPERF_SOURCE := $(SRCDIR)/$(SOCKPERF).$(SOCKPERF_SUFFIX) +SOCKPERF_DIR := $(BUILDDIR)/$(SOCKPERF) +SOCKPERF_LICENSE := BSD-3-Clause +SOCKPERF_LICENSE_FILES := file://copying;md5=13ab6d8129b2b03a18ec815d88b545ce + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +SOCKPERF_CONF_TOOL := autoconf + +$(STATEDIR)/sockperf.prepare: + @$(call targetinfo) + @$(call world/execute, SOCKPERF, ./autogen.sh) + @$(call world/prepare, SOCKPERF) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/sockperf.targetinstall: + @$(call targetinfo) + + @$(call install_init, sockperf) + @$(call install_fixup, sockperf,PRIORITY,optional) + @$(call install_fixup, sockperf,SECTION,base) + @$(call install_fixup, sockperf,AUTHOR,"Mellanox Technologies Ltd.") + @$(call install_fixup, sockperf,DESCRIPTION,missing) + + @$(call install_copy, sockperf, 0, 0, 0755, -, /usr/bin/sockperf) + + @$(call install_finish, sockperf) + + @$(call touch) + +# vim: syntax=make -- 2.30.2