mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] Added sockperf benchmarking utility
@ 2023-02-08 11:05 Sven Püschel
  0 siblings, 0 replies; only message in thread
From: Sven Püschel @ 2023-02-08 11:05 UTC (permalink / raw)
  To: ptxdist; +Cc: Sven Püschel

Signed-off-by: Sven Püschel <s.pueschel@pengutronix.de>
---
 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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-08 11:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-08 11:05 [ptxdist] [PATCH] Added sockperf benchmarking utility Sven Püschel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox