mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Clemens Gruber <clemens.gruber@pqgruber.com>
To: ptxdist@pengutronix.de
Cc: Clemens Gruber <clemens.gruber@pqgruber.com>
Subject: [ptxdist] [PATCH 18/18] netperf: new package
Date: Mon, 19 Dec 2016 21:36:31 +0100	[thread overview]
Message-ID: <20161219203631.29275-19-clemens.gruber@pqgruber.com> (raw)
In-Reply-To: <20161219203631.29275-1-clemens.gruber@pqgruber.com>

Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
---
 patches/netperf-2.7.0/0001-fix-inlining.patch | 46 ++++++++++++++++
 patches/netperf-2.7.0/series                  |  4 ++
 rules/netperf.in                              |  9 ++++
 rules/netperf.make                            | 75 +++++++++++++++++++++++++++
 4 files changed, 134 insertions(+)
 create mode 100644 patches/netperf-2.7.0/0001-fix-inlining.patch
 create mode 100644 patches/netperf-2.7.0/series
 create mode 100644 rules/netperf.in
 create mode 100644 rules/netperf.make

diff --git a/patches/netperf-2.7.0/0001-fix-inlining.patch b/patches/netperf-2.7.0/0001-fix-inlining.patch
new file mode 100644
index 000000000..1e6689da7
--- /dev/null
+++ b/patches/netperf-2.7.0/0001-fix-inlining.patch
@@ -0,0 +1,46 @@
+From 68cfbafb9f239950065e6a0ed7ca60c12668740f Mon Sep 17 00:00:00 2001
+From: Clemens Gruber <clemens.gruber@pqgruber.com>
+Date: Thu, 15 Dec 2016 16:14:01 +0100
+Subject: [PATCH] fix inlining
+
+Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
+---
+ src/netlib.c | 14 +-------------
+ 1 file changed, 1 insertion(+), 13 deletions(-)
+
+diff --git a/src/netlib.c b/src/netlib.c
+index f3a3fe5e00ab..4465d0f1b5f3 100644
+--- a/src/netlib.c
++++ b/src/netlib.c
+@@ -3997,11 +3997,7 @@ void demo_stream_setup(uint32_t a, uint32_t b) {
+   }
+ }
+ 
+-#ifdef WIN32
+-__forceinline void demo_interval_display(double actual_interval)
+-#else
+-  inline void demo_interval_display(double actual_interval)
+-#endif
++void demo_interval_display(double actual_interval)
+ {
+   static int count = 0;
+   struct timeval now;
+@@ -4060,15 +4056,7 @@ __forceinline void demo_interval_display(double actual_interval)
+    important compilers have supported such a construct so it should
+    not be a big deal. raj 2012-01-23 */
+ 
+-#ifdef WIN32
+-/* It would seem that the Microsoft compiler will not inline across
+-   source files. So there is little point in having an inline
+-   directive in that situation.  Of course that makes me wonder if an
+-   inline directive has to appear in netlib.h... */
+ void demo_interval_tick(uint32_t units)
+-#else
+-  inline void demo_interval_tick(uint32_t units)
+-#endif
+ {
+   double actual_interval = 0.0;
+ 
+-- 
+2.10.2
+
diff --git a/patches/netperf-2.7.0/series b/patches/netperf-2.7.0/series
new file mode 100644
index 000000000..54488afdf
--- /dev/null
+++ b/patches/netperf-2.7.0/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-fix-inlining.patch
+# ce464498af68ff457cdb324c32f1c72b  - git-ptx-patches magic
diff --git a/rules/netperf.in b/rules/netperf.in
new file mode 100644
index 000000000..893852696
--- /dev/null
+++ b/rules/netperf.in
@@ -0,0 +1,9 @@
+## SECTION=networking
+
+config NETPERF
+	bool
+	prompt "netperf"
+	select LIBC_M
+	help
+	  netperf is a benchmark that can be used to measure the
+	  performance of many different types of networking.
diff --git a/rules/netperf.make b/rules/netperf.make
new file mode 100644
index 000000000..a317fe529
--- /dev/null
+++ b/rules/netperf.make
@@ -0,0 +1,75 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Clemens Gruber <clemens.gruber@pqgruber.com>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_NETPERF) += netperf
+
+#
+# Paths and names
+#
+NETPERF_VERSION	:= 2.7.0
+NETPERF_MD5	:= ad1c5342d61f297c417a93133aeba65a
+NETPERF		:= netperf-$(NETPERF_VERSION)
+NETPERF_SUFFIX	:= tar.bz2
+NETPERF_URL	:= ftp://ftp.netperf.org/netperf/$(NETPERF).$(NETPERF_SUFFIX)
+NETPERF_SOURCE	:= $(SRCDIR)/$(NETPERF).$(NETPERF_SUFFIX)
+NETPERF_DIR	:= $(BUILDDIR)/$(NETPERF)
+NETPERF_LICENSE	:= HP
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+NETPERF_CONF_TOOL	:= autoconf
+NETPERF_CONF_OPT	:= \
+	$(CROSS_AUTOCONF_USR) \
+	$(GLOBAL_LARGE_FILE_OPTION) \
+	--disable-histogram \
+	--disable-dirty \
+	--enable-demo \
+	--disable-unixdomain \
+	--disable-dlpi \
+	--disable-dccp \
+	--enable-omni \
+	--disable-xti \
+	--disable-sdp \
+	--disable-exs \
+	--disable-sctp \
+	--disable-intervals \
+	--disable-spin \
+	--enable-burst \
+	--enable-cpuutil=procstat
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/netperf.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, netperf)
+	@$(call install_fixup, netperf, PRIORITY, optional)
+	@$(call install_fixup, netperf, SECTION, base)
+	@$(call install_fixup, netperf, AUTHOR, "Clemens Gruber <clemens.gruber@pqgruber.com>")
+	@$(call install_fixup, netperf, DESCRIPTION, missing)
+
+	@$(call install_alternative, netperf, 0, 0, 0755, /usr/bin/netperf)
+	@$(call install_alternative, netperf, 0, 0, 0755, /usr/bin/netserver)
+
+	@$(call install_finish, netperf)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2016-12-19 20:39 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-19 20:36 [ptxdist] [PATCH 00/18] Patchset for ptxdist Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 01/18] nettle: update 2.7.1 -> 3.3 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 02/18] iputils: update s20121221 -> s20161105 Clemens Gruber
2017-01-05 15:45   ` Michael Olbrich
2016-12-19 20:36 ` [ptxdist] [PATCH 03/18] collectd: update 5.4.1 -> 5.7.0 and add sensors support Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 04/18] dbus: bump version 1.10.10 -> 1.10.14 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 05/18] file: update 5.24 -> 5.29 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 06/18] glib: bump version 2.50.1 -> 2.50.2 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 07/18] iperf: update 2.0.5 -> 2.0.9 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 08/18] iproute2: update 4.8.0 -> 4.9.0 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 09/18] projectroot: Fix HTML syntax in examples Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 10/18] rrdtool: update 1.4.9 -> 1.6.0 and make more modular Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 11/18] sqlite: update 3.14.1 -> 3.15.2 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 12/18] systemd-bootchart: bump version 230 -> 231 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 13/18] tmux: update 1.9a -> 2.3 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 14/18] u-boot-tools: bump version 2016.07 -> 2016.11 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 15/18] util-linux-ng: update 2.28.2 -> 2.29 and fix URL deduction Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 16/18] picocom: bump version 1.7 -> 2.2 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 17/18] libgcrypt: update 1.7.3 -> 1.7.5 Clemens Gruber
2017-01-05 16:26   ` Michael Olbrich
2016-12-19 20:36 ` Clemens Gruber [this message]
2017-01-05 16:50 ` [ptxdist] [PATCH 00/18] Patchset for ptxdist Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161219203631.29275-19-clemens.gruber@pqgruber.com \
    --to=clemens.gruber@pqgruber.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox