[oe] [meta-oe][PATCH] iperf: Upgrade to version 2.0.5
This version provides better ethernet performance Patch is required for man page portion of build Signed-off-by: Lauren Post lauren.p...@freescale.com --- .../iperf/iperf-2.0.4/000-Iperf_Fix-CPU-Usage.diff | 164 -- .../001-cast-to-max_size_t-instead-of-int.patch| 14 -- .../003-fix-hyphen-used-as-minus-sign.patch| 178 .../iperf/iperf-2.0.4/004-svn-r43-ro.patch | 117 - .../iperf-2.0.4/005-iperf-die-on-bind-fail.patch | 15 -- .../006-iperf-die-on-connect-fail.patch| 15 -- .../iperf-2.0.4/007-iperf-reporter-deadlock.patch | 68 .../iperf/iperf-2.0.4/008-numofreport.patch| 15 -- .../iperf/iperf-2.0.4/009-delayloop.patch | 22 --- .../iperf/iperf-2.0.5/iperf-2.0.5_ManPage.patch|8 + meta-oe/recipes-benchmark/iperf/iperf_2.0.4.bb | 46 - meta-oe/recipes-benchmark/iperf/iperf_2.0.5.bb | 18 ++ 12 files changed, 26 insertions(+), 654 deletions(-) delete mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.4/000-Iperf_Fix-CPU-Usage.diff delete mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.4/001-cast-to-max_size_t-instead-of-int.patch delete mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.4/003-fix-hyphen-used-as-minus-sign.patch delete mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.4/004-svn-r43-ro.patch delete mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.4/005-iperf-die-on-bind-fail.patch delete mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.4/006-iperf-die-on-connect-fail.patch delete mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.4/007-iperf-reporter-deadlock.patch delete mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.4/008-numofreport.patch delete mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.4/009-delayloop.patch create mode 100755 meta-oe/recipes-benchmark/iperf/iperf-2.0.5/iperf-2.0.5_ManPage.patch delete mode 100644 meta-oe/recipes-benchmark/iperf/iperf_2.0.4.bb create mode 100644 meta-oe/recipes-benchmark/iperf/iperf_2.0.5.bb diff --git a/meta-oe/recipes-benchmark/iperf/iperf-2.0.4/000-Iperf_Fix-CPU-Usage.diff b/meta-oe/recipes-benchmark/iperf/iperf-2.0.4/000-Iperf_Fix-CPU-Usage.diff deleted file mode 100644 index 7e89953..000 --- a/meta-oe/recipes-benchmark/iperf/iperf-2.0.4/000-Iperf_Fix-CPU-Usage.diff +++ /dev/null @@ -1,164 +0,0 @@ -[Thread]: Replace thread_rest() with condition variables - -This applies the patch by Ingo Molnar from - - http://marc.info/?l=linux-kernelm=119088670113210w=2 - -by reverting previous changes that coincided with changes made by this -patch. Other than that, the patch is the original from the above URL. - -Gerrit - compat/Thread.c |6 -- - src/Reporter.c | 37 + - src/main.cpp|2 ++ - 3 files changed, 11 insertions(+), 34 deletions(-) - -rover: changed two remaining thread_rest. - a/compat/Thread.c -+++ b/compat/Thread.c -@@ -405,12 +405,6 @@ int thread_numuserthreads( void ) { - void thread_rest ( void ) { - #if defined( HAVE_THREAD ) - #if defined( HAVE_POSIX_THREAD ) --#if defined( _POSIX_PRIORITY_SCHEDULING ) --sched_yield(); --#else --usleep( 0 ); --#endif -- - #else // Win32 - SwitchToThread( ); - #endif a/src/Reporter.c -+++ b/src/Reporter.c -@@ -110,9 +110,8 @@ - - char buffer[64]; // Buffer for printing - ReportHeader *ReportRoot = NULL; --int threadWait = 0; --int threadSleeping = 0; - extern Condition ReportCond; -+extern Condition ReportDoneCond; - int reporter_process_report ( ReportHeader *report ); - void process_report ( ReportHeader *report ); - int reporter_handle_packet( ReportHeader *report ); -@@ -340,7 +339,7 @@ - // item - while ( index == 0 ) { - Condition_Signal( ReportCond ); --thread_rest(); -+Condition_Wait( ReportDoneCond ); - index = agent-reporterindex; - } - agent-agentindex = 0; -@@ -348,11 +347,9 @@ - // Need to make sure that reporter is not about to be lapped - while ( index - 1 == agent-agentindex ) { - Condition_Signal( ReportCond ); --thread_rest(); -+Condition_Wait( ReportDoneCond ); - index = agent-reporterindex; - } -- if (threadSleeping) -- Condition_Signal( ReportCond ); - - // Put the information there - memcpy( agent-data + agent-agentindex, packet, sizeof(ReportStruct) ); -@@ -382,9 +379,6 @@ - packet-packetLen = 0; - ReportPacket( agent, packet ); - packet-packetID = agent-report.cntDatagrams; -- if (threadSleeping) -- Condition_Signal( ReportCond ); -- - } - } - -@@ -396,11 +390,8 @@ - void EndReport( ReportHeader *agent ) { - if ( agent != NULL ) { - int index = agent-reporterindex; -- if (threadSleeping) --
Re: [oe] [meta-oe][PATCH] iperf: Upgrade to version 2.0.5
Please ignore this recipe for right now. I need to send a new version of this patch that includes my massaged version of the 003-fix-hyphen-used-as-minus-sign patch. -Original Message- From: Franklin S. Cooper Jr [mailto:fcooperj...@gmail.com] Sent: Saturday, October 06, 2012 2:07 PM To: openembedded-devel@lists.openembedded.org Cc: Cooper Jr., Franklin Subject: [meta-oe][PATCH] iperf: Upgrade to version 2.0.5 * Upgrade to version 2.0.5. * Below patches used in version 2.0.4 are no longer needed: 004-svn-r43-ro.patch (already applied) 006-iperf-die-on-connect-fail.patch (already applied) 009-delayloop.patch (equivalent solution already exists) * Patch 000-Iperf_Fix-CPU-Usage.diff has been updated to apply to version 2.0.5 Signed-off-by: Franklin S. Cooper Jr fcoo...@ti.com --- .../iperf/iperf-2.0.4/000-Iperf_Fix-CPU-Usage.diff | 164 .../iperf/iperf-2.0.4/004-svn-r43-ro.patch | 117 -- .../006-iperf-die-on-connect-fail.patch| 15 -- .../iperf/iperf-2.0.4/009-delayloop.patch | 22 --- .../iperf/iperf-2.0.5/000-Iperf_Fix-CPU-Usage.diff | 45 ++ .../001-cast-to-max_size_t-instead-of-int.patch|0 .../003-fix-hyphen-used-as-minus-sign.patch|0 .../005-iperf-die-on-bind-fail.patch |0 .../007-iperf-reporter-deadlock.patch |0 .../008-numofreport.patch |0 .../iperf/{iperf_2.0.4.bb = iperf_2.0.5.bb} | 10 +- 11 files changed, 49 insertions(+), 324 deletions(-) delete mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.4/000-Iperf_Fix-CPU-Usage.diff delete mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.4/004-svn-r43-ro.patch delete mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.4/006-iperf-die-on-connect-fail.patch delete mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.4/009-delayloop.patch create mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.5/000-Iperf_Fix-CPU-Usage.diff rename meta-oe/recipes-benchmark/iperf/{iperf-2.0.4 = iperf-2.0.5}/001-cast-to-max_size_t-instead-of-int.patch (100%) rename meta-oe/recipes-benchmark/iperf/{iperf-2.0.4 = iperf-2.0.5}/003-fix-hyphen-used-as-minus-sign.patch (100%) rename meta-oe/recipes-benchmark/iperf/{iperf-2.0.4 = iperf-2.0.5}/005-iperf-die-on-bind-fail.patch (100%) rename meta-oe/recipes-benchmark/iperf/{iperf-2.0.4 = iperf-2.0.5}/007-iperf-reporter-deadlock.patch (100%) rename meta-oe/recipes-benchmark/iperf/{iperf-2.0.4 = iperf-2.0.5}/008-numofreport.patch (100%) rename meta-oe/recipes-benchmark/iperf/{iperf_2.0.4.bb = iperf_2.0.5.bb} (79%) diff --git a/meta-oe/recipes-benchmark/iperf/iperf-2.0.4/000-Iperf_Fix-CPU-Usage.diff b/meta-oe/recipes-benchmark/iperf/iperf-2.0.4/000-Iperf_Fix-CPU-Usage.diff deleted file mode 100644 index 7e89953..000 --- a/meta-oe/recipes-benchmark/iperf/iperf-2.0.4/000-Iperf_Fix-CPU-Usage.diff +++ /dev/null @@ -1,164 +0,0 @@ -[Thread]: Replace thread_rest() with condition variables - -This applies the patch by Ingo Molnar from - - http://marc.info/?l=linux-kernelm=119088670113210w=2 - -by reverting previous changes that coincided with changes made by this -patch. Other than that, the patch is the original from the above URL. - -Gerrit - compat/Thread.c |6 -- - src/Reporter.c | 37 + - src/main.cpp|2 ++ - 3 files changed, 11 insertions(+), 34 deletions(-) - -rover: changed two remaining thread_rest. - a/compat/Thread.c -+++ b/compat/Thread.c -@@ -405,12 +405,6 @@ int thread_numuserthreads( void ) { - void thread_rest ( void ) { - #if defined( HAVE_THREAD ) - #if defined( HAVE_POSIX_THREAD ) --#if defined( _POSIX_PRIORITY_SCHEDULING ) --sched_yield(); --#else --usleep( 0 ); --#endif -- - #else // Win32 - SwitchToThread( ); - #endif a/src/Reporter.c -+++ b/src/Reporter.c -@@ -110,9 +110,8 @@ - - char buffer[64]; // Buffer for printing - ReportHeader *ReportRoot = NULL; --int threadWait = 0; --int threadSleeping = 0; - extern Condition ReportCond; -+extern Condition ReportDoneCond; - int reporter_process_report ( ReportHeader *report ); - void process_report ( ReportHeader *report ); - int reporter_handle_packet( ReportHeader *report ); -@@ -340,7 +339,7 @@ - // item - while ( index == 0 ) { - Condition_Signal( ReportCond ); --thread_rest(); -+Condition_Wait( ReportDoneCond ); - index = agent-reporterindex; - } - agent-agentindex = 0; -@@ -348,11 +347,9 @@ - // Need to make sure that reporter is not about to be lapped - while ( index - 1 == agent-agentindex ) { - Condition_Signal( ReportCond ); --thread_rest(); -+Condition_Wait( ReportDoneCond ); - index = agent-reporterindex; - } -- if (threadSleeping
Re: [oe] [meta-oe][PATCH] iperf: Upgrade to version 2.0.5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Op 06-10-12 21:07, Franklin S. Cooper Jr schreef: * Upgrade to version 2.0.5. * Below patches used in version 2.0.4 are no longer needed: 004-svn-r43-ro.patch (already applied) 006-iperf-die-on-connect-fail.patch (already applied) 009-delayloop.patch (equivalent solution already exists) * Patch 000-Iperf_Fix-CPU-Usage.diff has been updated to apply to version 2.0.5 Signed-off-by: Franklin S. Cooper Jr fcoo...@ti.com --- a/meta-oe/recipes-benchmark/iperf/iperf_2.0.4.bb +++ b/meta-oe/recipes-benchmark/iperf/iperf_2.0.5.bb @@ -4,22 +4,20 @@ SECTION = console/network LICENSE = NewBSD LIC_FILES_CHKSUM = file://COPYING;md5=e8478eae9f479e39bc34975193360298 +PR = r0 + *deep sigh* Remove that. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) Comment: GPGTools - http://gpgtools.org iD8DBQFQc+lEMkyGM64RGpERAlVzAKCSUhWw5mn54/cnKPRMUPjgFCPlvACeP1TK 0HBNGUfRIEwnXFC9zuqZgEE= =rxrK -END PGP SIGNATURE- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
[oe] [meta-oe][PATCH] iperf: Upgrade to version 2.0.5
* Upgrade to version 2.0.5. * Below patches used in version 2.0.4 are no longer needed: 004-svn-r43-ro.patch (already applied) 006-iperf-die-on-connect-fail.patch (already applied) 009-delayloop.patch (equivalent solution already exists) * Patch 000-Iperf_Fix-CPU-Usage.diff has been updated to apply to version 2.0.5 Signed-off-by: Franklin S. Cooper Jr fcoo...@ti.com --- .../iperf/iperf-2.0.4/000-Iperf_Fix-CPU-Usage.diff | 164 .../iperf/iperf-2.0.4/004-svn-r43-ro.patch | 117 -- .../006-iperf-die-on-connect-fail.patch| 15 -- .../iperf/iperf-2.0.4/009-delayloop.patch | 22 --- .../iperf/iperf-2.0.5/000-Iperf_Fix-CPU-Usage.diff | 45 ++ .../001-cast-to-max_size_t-instead-of-int.patch|0 .../003-fix-hyphen-used-as-minus-sign.patch|0 .../005-iperf-die-on-bind-fail.patch |0 .../007-iperf-reporter-deadlock.patch |0 .../008-numofreport.patch |0 .../iperf/{iperf_2.0.4.bb = iperf_2.0.5.bb} | 10 +- 11 files changed, 49 insertions(+), 324 deletions(-) delete mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.4/000-Iperf_Fix-CPU-Usage.diff delete mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.4/004-svn-r43-ro.patch delete mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.4/006-iperf-die-on-connect-fail.patch delete mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.4/009-delayloop.patch create mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.5/000-Iperf_Fix-CPU-Usage.diff rename meta-oe/recipes-benchmark/iperf/{iperf-2.0.4 = iperf-2.0.5}/001-cast-to-max_size_t-instead-of-int.patch (100%) rename meta-oe/recipes-benchmark/iperf/{iperf-2.0.4 = iperf-2.0.5}/003-fix-hyphen-used-as-minus-sign.patch (100%) rename meta-oe/recipes-benchmark/iperf/{iperf-2.0.4 = iperf-2.0.5}/005-iperf-die-on-bind-fail.patch (100%) rename meta-oe/recipes-benchmark/iperf/{iperf-2.0.4 = iperf-2.0.5}/007-iperf-reporter-deadlock.patch (100%) rename meta-oe/recipes-benchmark/iperf/{iperf-2.0.4 = iperf-2.0.5}/008-numofreport.patch (100%) rename meta-oe/recipes-benchmark/iperf/{iperf_2.0.4.bb = iperf_2.0.5.bb} (79%) diff --git a/meta-oe/recipes-benchmark/iperf/iperf-2.0.4/000-Iperf_Fix-CPU-Usage.diff b/meta-oe/recipes-benchmark/iperf/iperf-2.0.4/000-Iperf_Fix-CPU-Usage.diff deleted file mode 100644 index 7e89953..000 --- a/meta-oe/recipes-benchmark/iperf/iperf-2.0.4/000-Iperf_Fix-CPU-Usage.diff +++ /dev/null @@ -1,164 +0,0 @@ -[Thread]: Replace thread_rest() with condition variables - -This applies the patch by Ingo Molnar from - - http://marc.info/?l=linux-kernelm=119088670113210w=2 - -by reverting previous changes that coincided with changes made by this -patch. Other than that, the patch is the original from the above URL. - -Gerrit - compat/Thread.c |6 -- - src/Reporter.c | 37 + - src/main.cpp|2 ++ - 3 files changed, 11 insertions(+), 34 deletions(-) - -rover: changed two remaining thread_rest. - a/compat/Thread.c -+++ b/compat/Thread.c -@@ -405,12 +405,6 @@ int thread_numuserthreads( void ) { - void thread_rest ( void ) { - #if defined( HAVE_THREAD ) - #if defined( HAVE_POSIX_THREAD ) --#if defined( _POSIX_PRIORITY_SCHEDULING ) --sched_yield(); --#else --usleep( 0 ); --#endif -- - #else // Win32 - SwitchToThread( ); - #endif a/src/Reporter.c -+++ b/src/Reporter.c -@@ -110,9 +110,8 @@ - - char buffer[64]; // Buffer for printing - ReportHeader *ReportRoot = NULL; --int threadWait = 0; --int threadSleeping = 0; - extern Condition ReportCond; -+extern Condition ReportDoneCond; - int reporter_process_report ( ReportHeader *report ); - void process_report ( ReportHeader *report ); - int reporter_handle_packet( ReportHeader *report ); -@@ -340,7 +339,7 @@ - // item - while ( index == 0 ) { - Condition_Signal( ReportCond ); --thread_rest(); -+Condition_Wait( ReportDoneCond ); - index = agent-reporterindex; - } - agent-agentindex = 0; -@@ -348,11 +347,9 @@ - // Need to make sure that reporter is not about to be lapped - while ( index - 1 == agent-agentindex ) { - Condition_Signal( ReportCond ); --thread_rest(); -+Condition_Wait( ReportDoneCond ); - index = agent-reporterindex; - } -- if (threadSleeping) -- Condition_Signal( ReportCond ); - - // Put the information there - memcpy( agent-data + agent-agentindex, packet, sizeof(ReportStruct) ); -@@ -382,9 +379,6 @@ - packet-packetLen = 0; - ReportPacket( agent, packet ); - packet-packetID = agent-report.cntDatagrams; -- if (threadSleeping) -- Condition_Signal( ReportCond ); -- - } - } - -@@ -396,11 +390,8 @@ - void EndReport(