Skip to contentSkip to conversation

netperf: import from oe-classic and upgrade to 2.6.0

PATCH Applied Xin Ouyang 2 participants 3 messages Nov 12, 2012 – Nov 19, 2012

lore
Share & tools
lore

Xin Ouyang

author
#0 lore raw

PATCH v2 1/1 netperf: import from oe-classic and upgrade to 2.6.0

V2 Updates:
* merge two patches into one
* bb recipe: LICENSE back to "netperf"
* initscript: add LSB headers
* initscript: "sed" to replace the hardcodes /usr/sbin to $sbindir.

Xin Ouyang (1):
netperf: import from oe-classic and upgrade to 2.6.0

 .../recipes-support/netperf/files/cpu_set.patch    |   30 ++++++++++
 meta-networking/recipes-support/netperf/files/init |   62 ++++++++++++++++++++
 .../recipes-support/netperf/files/vfork.patch      |   58 ++++++++++++++++++
 .../recipes-support/netperf/netperf_2.6.0.bb       |   57 ++++++++++++++++++
 4 files changed, 207 insertions(+)
 create mode 100644 meta-networking/recipes-support/netperf/files/cpu_set.patch
 create mode 100644 meta-networking/recipes-support/netperf/files/init
 create mode 100644 meta-networking/recipes-support/netperf/files/vfork.patch
 create mode 100644 meta-networking/recipes-support/netperf/netperf_2.6.0.bb
Signature · 1 line
1.7.10.4
author
#1 lore raw

PATCH v2 1/1 netperf: import from oe-classic and upgrade to 2.6.0

---
 .../recipes-support/netperf/files/cpu_set.patch    |   30 ++++++++++
 meta-networking/recipes-support/netperf/files/init |   62 ++++++++++++++++++++
 .../recipes-support/netperf/files/vfork.patch      |   58 ++++++++++++++++++
 .../recipes-support/netperf/netperf_2.6.0.bb       |   57 ++++++++++++++++++
 4 files changed, 207 insertions(+)
 create mode 100644 meta-networking/recipes-support/netperf/files/cpu_set.patch
 create mode 100644 meta-networking/recipes-support/netperf/files/init
 create mode 100644 meta-networking/recipes-support/netperf/files/vfork.patch
 create mode 100644 meta-networking/recipes-support/netperf/netperf_2.6.0.bb
meta-networking/recipes-support/netperf/files/cpu_set.patch new file +30 -0
new file mode 100644
index 0000000..434b790
@@ -0,0 +1,30 @@
+Subject: [PATCH] netperf: fix CPU_SETSIZE to build with eglibc
+
+Upstream-Status: Pending
+
+Signed-off-by: Xin Ouyang <[email protected]>
+---
+ src/netlib.c |    7 ++++++-
+ 1 files changed, 6 insertions(+), 1 deletions(-)
+
+diff --git a/src/netlib.c b/src/netlib.c
+index 206e002..e33aae6 100644
+--- a/src/netlib.c
++++ b/src/netlib.c
+@@ -2265,7 +2265,12 @@ bind_to_specific_processor(int processor_affinity, int use_cpu_map)
+      fall-back on what we had before, which is to use just the size of
+      an unsigned long. raj 2006-09-14 */
+ 
+-#if defined(__CPU_SETSIZE)
++#if defined(CPU_SETSIZE)
++#define NETPERF_CPU_SETSIZE CPU_SETSIZE
++#define NETPERF_CPU_SET(cpu, cpusetp)  CPU_SET(cpu, cpusetp)
++#define NETPERF_CPU_ZERO(cpusetp)      CPU_ZERO (cpusetp)
++  typedef cpu_set_t netperf_cpu_set_t;
++#elif defined(__CPU_SETSIZE)
+ #define NETPERF_CPU_SETSIZE __CPU_SETSIZE
+ #if defined(__CPU_SET_S)
+ #define NETPERF_CPU_SET(cpu, cpusetp)  __CPU_SET_S(cpu, sizeof (cpu_set_t), cpusetp)
+-- 
+1.7.1.1
+
meta-networking/recipes-support/netperf/files/init new file +62 -0

62 lines not on this page · raw message

meta-networking/recipes-support/netperf/files/vfork.patch new file +58 -0

58 lines not on this page · raw message

meta-networking/recipes-support/netperf/netperf_2.6.0.bb new file +57 -0

57 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#2 lore raw
In reply to Xin Ouyang

Merged, thanks.

Quoted 19 lines · [[oe] [PATCH V2][meta-networking] netperf: import from oe-classic and upgrade…

V2 Updates:
* merge two patches into one
* bb recipe: LICENSE back to "netperf"
* initscript: add LSB headers
* initscript: "sed" to replace the hardcodes /usr/sbin to $sbindir.

Xin Ouyang (1):
netperf: import from oe-classic and upgrade to 2.6.0

 .../recipes-support/netperf/files/cpu_set.patch    |   30 ++++++++++
 meta-networking/recipes-support/netperf/files/init |   62 ++++++++++++++++++++
 .../recipes-support/netperf/files/vfork.patch      |   58 ++++++++++++++++++
 .../recipes-support/netperf/netperf_2.6.0.bb       |   57 ++++++++++++++++++
 4 files changed, 207 insertions(+)
 create mode 100644 meta-networking/recipes-support/netperf/files/cpu_set.patch
 create mode 100644 meta-networking/recipes-support/netperf/files/init
 create mode 100644 meta-networking/recipes-support/netperf/files/vfork.patch
 create mode 100644 meta-networking/recipes-support/netperf/netperf_2.6.0.bb
Signature · 2 lines
-Joe MacDonald.
:wq