Quantcast

ports/168339: [patch] sysutils/userspace-rcu update to 0.7.2

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

ports/168339: [patch] sysutils/userspace-rcu update to 0.7.2

Hirohisa Yamaguchi

>Number:         168339
>Category:       ports
>Synopsis:       [patch] sysutils/userspace-rcu update to 0.7.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:      
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 25 17:20:05 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Hirohisa Yamaguchi
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
<organization of PR author (multiple lines)>
>Environment:
System: FreeBSD calliope.****.org 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 [hidden email]:/usr/obj/usr/src/sys/GENERIC amd64

>Description:
        The new version of sysutils/userspace-rcu 0.7.2 is available

        Release announcement: http://lists.lttng.org/pipermail/lttng-dev/2012-May/017975.html
>How-To-Repeat:
        N/A
>Fix:

        The patch follows:


diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/Makefile ports/sysutils/userspace-rcu/Makefile
--- ports.org/sysutils/userspace-rcu/Makefile 2012-03-07 05:35:34.000000000 +0900
+++ ports/sysutils/userspace-rcu/Makefile 2012-05-26 00:23:57.000000000 +0900
@@ -6,7 +6,7 @@
 #
 
 PORTNAME= userspace-rcu
-PORTVERSION= 0.6.4
+PORTVERSION= 0.7.2
 CATEGORIES= sysutils
 MASTER_SITES= http://lttng.org/files/urcu/
 
@@ -14,14 +14,36 @@ MAINTAINER= [hidden email]
 COMMENT= A read-copy-update data synchronization library
 
 LICENSE= LGPL21
+LICENSE_FILE= ${WRKSRC}/LICENSE
 
+OPTIONS= UNIPROCESSOR "Disable SMP support" off
+
+GNU_CONFIGURE= yes
+MAKE_ARGS+= pkgconfigdir="${PREFIX}/libdata/pkgconfig"
+MAKE_JOBS_SAFE= yes
 USE_BZIP2= yes
-HAS_CONFIGURE= yes
 USE_LDCONFIG= yes
 
-post-patch:
- @${REINPLACE_CMD} \
- -e 's,^\(pkgconfigdir = \).(libdir),\1${PREFIX}/libdata,' \
- ${WRKSRC}/Makefile.in
+PORTDOCS= ChangeLog README cds-api.txt rcu-api.txt uatomic-api.txt
+
+pre-configure:
+.if defined(NOPORTDOCS)
+ ${REINPLACE_CMD} -e '/^SUBDIRS /s/ doc//' \
+ -e '/^install-data-am: /s/ install-dist_docDATA//' ${WRKSRC}/Makefile.in
+.endif
+
+regression-test: build
+ ${DO_NADA}
+# cd ${WRKSRC}; ${MAKE} check
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 802514
+EXTRA_PATCHES+= ${FILESDIR}/extrapatch-rculfhash-mm-mmap.c
+.endif
+
+.if defined(WITH_UNIPROCESSOR)
+CONFIGURE_ARGS+= --disable-smp-support
+.endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/distinfo ports/sysutils/userspace-rcu/distinfo
--- ports.org/sysutils/userspace-rcu/distinfo 2012-03-07 05:35:34.000000000 +0900
+++ ports/sysutils/userspace-rcu/distinfo 2012-05-26 00:24:03.000000000 +0900
@@ -1,2 +1,2 @@
-SHA256 (userspace-rcu-0.6.4.tar.bz2) = 2914637c60027ea52974aa7fa8ee7f2a3a0067502bbaebe01de14d6988aa8882
-SIZE (userspace-rcu-0.6.4.tar.bz2) = 325414
+SHA256 (userspace-rcu-0.7.2.tar.bz2) = 1e9d70bcf5f552ebf47dec67ac94d998389863375974a1a6bfa833e669b12950
+SIZE (userspace-rcu-0.7.2.tar.bz2) = 385386
diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/extrapatch-rculfhash-mm-mmap.c ports/sysutils/userspace-rcu/files/extrapatch-rculfhash-mm-mmap.c
--- ports.org/sysutils/userspace-rcu/files/extrapatch-rculfhash-mm-mmap.c 1970-01-01 09:00:00.000000000 +0900
+++ ports/sysutils/userspace-rcu/files/extrapatch-rculfhash-mm-mmap.c 2012-05-25 23:49:33.000000000 +0900
@@ -0,0 +1,13 @@
+--- ./rculfhash-mm-mmap.c.orig 2012-03-05 05:20:58.000000000 +0900
++++ ./rculfhash-mm-mmap.c 2012-05-25 16:58:11.000000000 +0900
+@@ -24,6 +24,10 @@
+ #include <sys/mman.h>
+ #include "rculfhash-internal.h"
+
++#ifndef MAP_ANONYMOUS
++#define MAP_ANONYMOUS MAP_ANON
++#endif
++
+ /* reserve inaccessible memory space without allocation any memory */
+ static void *memory_map(size_t length)
+ {
diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/patch-tests_runall.sh ports/sysutils/userspace-rcu/files/patch-tests_runall.sh
--- ports.org/sysutils/userspace-rcu/files/patch-tests_runall.sh 1970-01-01 09:00:00.000000000 +0900
+++ ports/sysutils/userspace-rcu/files/patch-tests_runall.sh 2012-03-25 00:34:41.000000000 +0900
@@ -0,0 +1,73 @@
+--- ./tests/runall.sh.orig 2011-09-06 04:24:55.000000000 +0900
++++ ./tests/runall.sh 2012-03-16 18:44:14.000000000 +0900
+@@ -3,7 +3,7 @@
+ #run all tests
+
+ #set to number of active CPUS
+-NUM_CPUS=8
++NUM_CPUS=$(sysctl -n kern.smp.cpus)
+
+ #extra options, e.g. for setting affinity on even CPUs :
+ #EXTRA_OPTS=$(for a in $(seq 0 2 127); do echo -n "-a ${a} "; done)
+@@ -37,14 +37,19 @@
+
+ rm -f batch-rcu.log
+
++exec 3>&1
+ NR_READERS=$((${NUM_CPUS} - ${NR_WRITERS}))
+ for BATCH_SIZE in ${BATCH_ARRAY}; do
+ echo "./runtests-batch.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d 0 -b ${BATCH_SIZE} ${EXTRA_OPTS} | tee -a batch-rcu.log" >> runall.log
+- ./runtests-batch.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d 0 -b ${BATCH_SIZE} ${EXTRA_OPTS} | tee -a batch-rcu.log
++ STATUS=$({ {\
++ ./runtests-batch.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d 0 -b ${BATCH_SIZE} ${EXTRA_OPTS} \
++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
++ | tee -a batch-rcu.log 1>&3 3>&- 4>&-;} 4>&1)
++ if [ $STATUS != 0 ]; then exit 1; fi
+ done
+
+ #setting gc each 32768. ** UPDATE FOR YOUR ARCHITECTURE BASED ON TEST ABOVE **
+-EXTRA_OPTS+="-b 32768"
++EXTRA_OPTS="${EXTRA_OPTS}-b 32768"
+
+ echo Executing update fraction test
+
+@@ -59,7 +64,11 @@
+ NR_READERS=$((${NUM_CPUS} - ${NR_WRITERS}))
+ for WDELAY in ${WDELAY_ARRAY}; do
+ echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} | tee -a update-fraction.log" >> runall.log
+- ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} | tee -a update-fraction.log
++ STATUS=$({ {\
++ ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} \
++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
++ | tee -a update-fraction.log 1>&3 3>&- 4>&-;} 4>&1)
++ if [ $STATUS != 0 ]; then exit 1; fi
+ done
+
+ #Test scalability :
+@@ -74,9 +83,13 @@
+
+ rm -f scalability.log
+
+-for NR_READERS in $(seq 1 ${NUM_CPUS}); do
++for NR_READERS in $(jot ${NUM_CPUS}); do
+ echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS}| tee -a scalability.log" >> runall.log
+- ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS}| tee -a scalability.log
++ STATUS=$({ {\
++ ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} \
++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
++ | tee -a scalability.log 1>&3 3>&- 4>&-;} 4>&1)
++ if [ $STATUS != 0 ]; then exit 1; fi
+ done
+
+
+@@ -97,5 +110,9 @@
+
+ for READERCSLEN in ${READERCSLEN_ARRAY}; do
+ echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -c ${READERCSLEN} | tee -a readercslen.log" >> runall.log
+- ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -c ${READERCSLEN} | tee -a readercslen.log
++ STATUS=$({ {\
++ ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -c ${READERCSLEN} \
++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
++ | tee -a readercslen.log 1>&3 3>&- 4>&-;} 4>&1)
++ if [ $STATUS != 0 ]; then exit 1; fi
+ done
diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase1.sh ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase1.sh
--- ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase1.sh 1970-01-01 09:00:00.000000000 +0900
+++ ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase1.sh 2012-03-17 00:10:20.000000000 +0900
@@ -0,0 +1,30 @@
+--- ./tests/runpaul-phase1.sh.orig 2011-09-06 04:24:55.000000000 +0900
++++ ./tests/runpaul-phase1.sh 2012-03-16 18:46:32.000000000 +0900
+@@ -3,10 +3,10 @@
+ #run all tests
+
+ #set to number of active CPUS
+-NUM_CPUS=64
++NUM_CPUS=$(sysctl -n kern.smp.cpus)
+
+ #extra options, e.g. for setting affinity on even CPUs :
+-EXTRA_OPTS=$(for a in $(seq 0 2 127); do echo -n "-a ${a} "; done)
++EXTRA_OPTS=$(for a in $(jot 64 0 112); do echo -n "-a ${a} "; done)
+
+ #ppc64 striding, use with NUM_CPUS=8
+
+@@ -37,8 +37,13 @@
+
+ rm -f batch-rcu.log
+
++exec 3>&1
+ NR_READERS=$((${NUM_CPUS} - ${NR_WRITERS}))
+ for BATCH_SIZE in ${BATCH_ARRAY}; do
+ echo "./runtests-batch.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d 0 -b ${BATCH_SIZE} ${EXTRA_OPTS} | tee -a batch-rcu.log" >> runall.log
+- ./runtests-batch.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d 0 -b ${BATCH_SIZE} ${EXTRA_OPTS} | tee -a batch-rcu.log
++ STATUS=$({ {\
++ ./runtests-batch.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d 0 -b ${BATCH_SIZE} ${EXTRA_OPTS} \
++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
++ | tee -a batch-rcu.log 1>&3 3>&- 4>&-;} 4>&1)
++ if [ $STATUS != 0 ]; then exit 1; fi
+ done
diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase2.sh ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase2.sh
--- ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase2.sh 1970-01-01 09:00:00.000000000 +0900
+++ ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase2.sh 2012-03-25 00:34:41.000000000 +0900
@@ -0,0 +1,39 @@
+--- ./tests/runpaul-phase2.sh.orig 2011-09-06 04:24:55.000000000 +0900
++++ ./tests/runpaul-phase2.sh 2012-03-16 18:46:11.000000000 +0900
+@@ -3,10 +3,10 @@
+ #run all tests
+
+ #set to number of active CPUS
+-NUM_CPUS=64
++NUM_CPUS=$(sysctl -n kern.smp.cpus)
+
+ #extra options, e.g. for setting affinity on even CPUs :
+-EXTRA_OPTS=$(for a in $(seq 0 2 127); do echo -n "-a ${a} "; done)
++EXTRA_OPTS=$(for a in $(jot 64 0 112); do echo -n "-a ${a} "; done)
+
+ #ppc64 striding, use with NUM_CPUS=8
+
+@@ -28,7 +28,7 @@
+ rm -fr runall.detail.log
+
+ #setting gc each 32768. ** UPDATE FOR YOUR ARCHITECTURE BASED ON PHASE 1 RESULT **
+-EXTRA_OPTS+="-b 32768"
++EXTRA_OPTS="${EXTRA_OPTS}-b 32768"
+
+ echo Executing update fraction test
+
+@@ -40,8 +40,13 @@
+
+ rm -f update-fraction.log
+
++exec 3>&1
+ NR_READERS=$((${NUM_CPUS} - ${NR_WRITERS}))
+ for WDELAY in ${WDELAY_ARRAY}; do
+ echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} | tee -a update-fraction.log" >> runall.log
+- ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} | tee -a update-fraction.log
++ STATUS=$({ {\
++ ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} \
++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
++ | tee -a update-fraction.log 1>&3 3>&- 4>&-;} 4>&1)
++ if [ $STATUS != 0 ]; then exit 1; fi
+ done
diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase3.sh ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase3.sh
--- ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase3.sh 1970-01-01 09:00:00.000000000 +0900
+++ ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase3.sh 2012-03-25 00:34:41.000000000 +0900
@@ -0,0 +1,41 @@
+--- ./tests/runpaul-phase3.sh.orig 2011-09-06 04:24:55.000000000 +0900
++++ ./tests/runpaul-phase3.sh 2012-03-16 18:45:47.000000000 +0900
+@@ -3,10 +3,10 @@
+ #run all tests
+
+ #set to number of active CPUS
+-NUM_CPUS=64
++NUM_CPUS=$(sysctl -n kern.smp.cpus)
+
+ #extra options, e.g. for setting affinity on even CPUs :
+-EXTRA_OPTS=$(for a in $(seq 0 2 127); do echo -n "-a ${a} "; done)
++EXTRA_OPTS=$(for a in $(jot 64 0 112); do echo -n "-a ${a} "; done)
+
+ #ppc64 striding, use with NUM_CPUS=8
+
+@@ -28,7 +28,7 @@
+ rm -fr runall.detail.log
+
+ #setting gc each 32768. ** UPDATE FOR YOUR ARCHITECTURE BASED ON PHASE 1 RESULT **
+-EXTRA_OPTS+="-b 32768"
++EXTRA_OPTS="${EXTRA_OPTS}-b 32768"
+
+ #Test scalability :
+ # x: vary number of readers from 0 to num cpus
+@@ -42,9 +42,14 @@
+
+ rm -f scalability.log
+
+-for NR_READERS in $(seq 1 ${NUM_CPUS}); do
++exec 3>&1
++for NR_READERS in $(jot ${NUM_CPUS}); do
+ echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS}| tee -a scalability.log" >> runall.log
+- ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS}| tee -a scalability.log
++ STATUS=$({ {\
++ ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} \
++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
++ | tee -a scalability.log 1>&3 3>&- 4>&-;} 4>&1)
++ if [ $STATUS != 0 ]; then exit 1; fi
+ done
+
+
diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase4.sh ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase4.sh
--- ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase4.sh 1970-01-01 09:00:00.000000000 +0900
+++ ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase4.sh 2012-02-27 23:35:05.000000000 +0900
@@ -0,0 +1,44 @@
+--- ./tests/runpaul-phase4.sh.orig 2011-09-06 04:24:55.000000000 +0900
++++ ./tests/runpaul-phase4.sh 2012-02-27 17:51:45.000000000 +0900
+@@ -3,7 +3,7 @@
+ #run all tests
+
+ #set to number of active CPUS
+-export NUM_CPUS=8
++export NUM_CPUS=$(sysctl -n kern.smp.cpus)
+
+ #extra options, e.g. for setting affinity on even CPUs :
+ #EXTRA_OPTS=$(for a in $(seq 0 2 127); do echo -n "-a ${a} "; done)
+@@ -13,28 +13,28 @@
+ rm -f *.log
+
+ #stride 1
+-export EXTRA_OPTS=$(for a in $(seq 0 2 15); do echo -n "-a ${a} "; done)
++export EXTRA_OPTS=$(for a in $(jot 8 0 14); do echo -n "-a ${a} "; done)
+ sh subphase4.sh $*
+ mkdir ppc64-8cores-stride1
+ mv *.log ppc64-8cores-stride1/
+
+
+ #stride 2
+-export EXTRA_OPTS=$(for a in $(seq 0 4 31); do echo -n "-a ${a} "; done)
++export EXTRA_OPTS=$(for a in $(jot 8 0 28); do echo -n "-a ${a} "; done)
+ sh subphase4.sh $*
+ mkdir ppc64-8cores-stride2
+ mv *.log ppc64-8cores-stride2/
+
+
+ #stride 4
+-export EXTRA_OPTS=$(for a in $(seq 0 8 63); do echo -n "-a ${a} "; done)
++export EXTRA_OPTS=$(for a in $(jot 8 0 56); do echo -n "-a ${a} "; done)
+ sh subphase4.sh $*
+ mkdir ppc64-8cores-stride4
+ mv *.log ppc64-8cores-stride4/
+
+
+ #stride 8
+-export EXTRA_OPTS=$(for a in $(seq 0 16 127); do echo -n "-a ${a} "; done)
++export EXTRA_OPTS=$(for a in $(jot 8 0 112); do echo -n "-a ${a} "; done)
+ sh subphase4.sh $*
+ mkdir ppc64-8cores-stride8
+ mv *.log ppc64-8cores-stride8/
diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase7.sh ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase7.sh
--- ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase7.sh 1970-01-01 09:00:00.000000000 +0900
+++ ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase7.sh 2012-03-17 00:10:20.000000000 +0900
@@ -0,0 +1,32 @@
+--- ./tests/runpaul-phase7.sh.orig 2011-09-06 04:24:55.000000000 +0900
++++ ./tests/runpaul-phase7.sh 2012-03-16 18:44:54.000000000 +0900
+@@ -3,11 +3,11 @@
+ #run all tests
+
+ #set to number of active CPUS
+-export NUM_CPUS=64
++export NUM_CPUS=$(sysctl -n kern.smp.cpus)
+ #export NUM_CPUS=8
+
+ #extra options, e.g. for setting affinity on even CPUs :
+-EXTRA_OPTS=$(for a in $(seq 0 2 127); do echo -n "-a ${a} "; done)
++EXTRA_OPTS=$(for a in $(jot 64 0 112); do echo -n "-a ${a} "; done)
+ #EXTRA_OPTS=$(for a in $(seq 0 1 7); do echo -n "-a ${a} "; done)
+
+ rm -f *.log
+@@ -28,9 +28,14 @@
+
+ rm -f writercslen.log
+
++exec 3>&1
+ for WRITERCSLEN in ${WRITERCSLEN_ARRAY}; do
+ echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -d ${WDELAY} -e ${WRITERCSLEN} | tee -a writercslen.log" >> runall.log
+- ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -d ${WDELAY} -e ${WRITERCSLEN} | tee -a writercslen.log
++ STATUS=$({ {\
++ ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -d ${WDELAY} -e ${WRITERCSLEN} \
++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
++ | tee -a writercslen.log 1>&3 3>&- 4>&-;} 4>&1)
++ if [ $STATUS != 0 ]; then exit 1; fi
+ done
+
+
diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/patch-tests_runtests-batch.sh ports/sysutils/userspace-rcu/files/patch-tests_runtests-batch.sh
--- ports.org/sysutils/userspace-rcu/files/patch-tests_runtests-batch.sh 1970-01-01 09:00:00.000000000 +0900
+++ ports/sysutils/userspace-rcu/files/patch-tests_runtests-batch.sh 2012-05-25 23:49:33.000000000 +0900
@@ -0,0 +1,10 @@
+--- ./tests/runtests-batch.sh.orig 2011-11-02 09:15:09.000000000 +0900
++++ ./tests/runtests-batch.sh 2012-03-16 18:32:52.000000000 +0900
+@@ -3,6 +3,6 @@
+ #for a in test_urcu_gc test_urcu_gc_mb test_urcu_qsbr_gc; do
+ for a in test_urcu_gc; do
+ echo "./${a} $*" | tee -a runall.detail.log
+- /usr/bin/time --append --output runall.detail.log ./${a} $*
++ /usr/bin/time -a -o runall.detail.log ./${a} $*
+ done
+
diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/patch-tests_runtests.sh ports/sysutils/userspace-rcu/files/patch-tests_runtests.sh
--- ports.org/sysutils/userspace-rcu/files/patch-tests_runtests.sh 1970-01-01 09:00:00.000000000 +0900
+++ ports/sysutils/userspace-rcu/files/patch-tests_runtests.sh 2012-05-25 23:49:33.000000000 +0900
@@ -0,0 +1,10 @@
+--- ./tests/runtests.sh.orig 2011-11-02 09:15:09.000000000 +0900
++++ ./tests/runtests.sh 2012-03-16 18:32:52.000000000 +0900
+@@ -5,6 +5,6 @@
+ test_urcu test_urcu_signal test_urcu_mb test_urcu_qsbr \
+ test_rwlock test_perthreadlock test_mutex; do
+ echo "./${a} $*" | tee -a runall.detail.log
+- /usr/bin/time --append --output runall.detail.log ./${a} $*
++ /usr/bin/time -a -o runall.detail.log ./${a} $*
+ done
+
diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/patch-tests_subphase4.sh ports/sysutils/userspace-rcu/files/patch-tests_subphase4.sh
--- ports.org/sysutils/userspace-rcu/files/patch-tests_subphase4.sh 1970-01-01 09:00:00.000000000 +0900
+++ ports/sysutils/userspace-rcu/files/patch-tests_subphase4.sh 2012-03-25 00:34:41.000000000 +0900
@@ -0,0 +1,64 @@
+--- ./tests/subphase4.sh.orig 2011-09-06 04:24:55.000000000 +0900
++++ ./tests/subphase4.sh 2012-03-16 18:43:10.000000000 +0900
+@@ -37,14 +37,19 @@
+
+ rm -f batch-rcu.log
+
++exec 3>&1
+ NR_READERS=$((${NUM_CPUS} - ${NR_WRITERS}))
+ for BATCH_SIZE in ${BATCH_ARRAY}; do
+ echo "./runtests-batch.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d 0 -b ${BATCH_SIZE} ${EXTRA_OPTS} | tee -a batch-rcu.log" >> runall.log
+- ./runtests-batch.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d 0 -b ${BATCH_SIZE} ${EXTRA_OPTS} | tee -a batch-rcu.log
++ STATUS=$({ {\
++ ./runtests-batch.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d 0 -b ${BATCH_SIZE} ${EXTRA_OPTS} \
++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
++ | tee -a batch-rcu.log 1>&3 3>&- 4>&-;} 4>&1)
++ if [ $STATUS != 0 ]; then exit 1; fi
+ done
+
+ #setting gc each 4096. ** UPDATE FOR YOUR ARCHITECTURE BASED ON TEST ABOVE **
+-EXTRA_OPTS+="-b 32768"
++EXTRA_OPTS="${EXTRA_OPTS}-b 32768"
+
+ echo Executing update fraction test
+
+@@ -59,7 +64,11 @@
+ NR_READERS=$((${NUM_CPUS} - ${NR_WRITERS}))
+ for WDELAY in ${WDELAY_ARRAY}; do
+ echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} | tee -a update-fraction.log" >> runall.log
+- ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} | tee -a update-fraction.log
++ STATUS=$({ {\
++ ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} \
++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
++ | tee -a update-fraction.log 1>&3 3>&- 4>&-;} 4>&1)
++ if [ $STATUS != 0 ]; then exit 1; fi
+ done
+
+ #Test scalability :
+@@ -74,9 +83,13 @@
+
+ rm -f scalability.log
+
+-for NR_READERS in $(seq 1 ${NUM_CPUS}); do
++for NR_READERS in $(jot ${NUM_CPUS}); do
+ echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS}| tee -a scalability.log" >> runall.log
+- ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS}| tee -a scalability.log
++ STATUS=$({ {\
++ ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} \
++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
++ | tee -a scalability.log 1>&3 3>&- 4>&-;} 4>&1)
++ if [ $STATUS != 0 ]; then exit 1; fi
+ done
+
+
+@@ -97,5 +110,9 @@
+
+ for READERCSLEN in ${READERCSLEN_ARRAY}; do
+ echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -c ${READERCSLEN} | tee -a readercslen.log" >> runall.log
+- ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -c ${READERCSLEN} | tee -a readercslen.log
++ STATUS=$({ {\
++ ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -c ${READERCSLEN} \
++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
++ | tee -a readercslen.log 1>&3 3>&- 4>&-;} 4>&1)
++ if [ $STATUS != 0 ]; then exit 1; fi
+ done
diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/pkg-plist ports/sysutils/userspace-rcu/pkg-plist
--- ports.org/sysutils/userspace-rcu/pkg-plist 2012-03-18 06:46:26.000000000 +0900
+++ ports/sysutils/userspace-rcu/pkg-plist 2012-05-25 23:49:33.000000000 +0900
@@ -1,41 +1,45 @@
-include/urcu/urcu_ref.h
+@comment $FreeBSD$
+include/urcu-bp.h
+include/urcu-call-rcu.h
+include/urcu-defer.h
+include/urcu-flavor.h
+include/urcu-pointer.h
+include/urcu-qsbr.h
+include/urcu.h
+include/urcu/arch.h
+include/urcu/arch/generic.h
+include/urcu/cds.h
+include/urcu/compiler.h
 include/urcu/config.h
-include/urcu/uatomic/generic.h
-include/urcu/static/urcu-bp.h
+include/urcu/futex.h
+include/urcu/hlist.h
+include/urcu/list.h
+include/urcu/map/urcu-bp.h
+include/urcu/map/urcu-qsbr.h
+include/urcu/map/urcu.h
+include/urcu/rcuhlist.h
+include/urcu/rculfhash.h
+include/urcu/rculfqueue.h
+include/urcu/rculfstack.h
+include/urcu/rculist.h
+include/urcu/ref.h
 include/urcu/static/rculfqueue.h
-include/urcu/static/urcu.h
-include/urcu/static/urcu-qsbr.h
 include/urcu/static/rculfstack.h
+include/urcu/static/urcu-bp.h
+include/urcu/static/urcu-pointer.h
+include/urcu/static/urcu-qsbr.h
+include/urcu/static/urcu.h
 include/urcu/static/wfqueue.h
 include/urcu/static/wfstack.h
-include/urcu/static/urcu-pointer.h
-include/urcu/futex.h
 include/urcu/system.h
-include/urcu/ref.h
-include/urcu/wfqueue.h
-include/urcu/arch/generic.h
-include/urcu/cds.h
-include/urcu/wfstack.h
-include/urcu/compiler.h
-include/urcu/list.h
+include/urcu/tls-compat.h
+include/urcu/uatomic.h
+include/urcu/uatomic/generic.h
 include/urcu/uatomic_arch.h
-include/urcu/hlist.h
 include/urcu/urcu-futex.h
-include/urcu/rcuhlist.h
-include/urcu/rculfstack.h
-include/urcu/uatomic.h
-include/urcu/rculfqueue.h
-include/urcu/rculist.h
-include/urcu/map/urcu-qsbr.h
-include/urcu/map/urcu.h
-include/urcu/map/urcu-bp.h
-include/urcu/arch.h
-include/urcu-bp.h
-include/urcu-call-rcu.h
-include/urcu-defer.h
-include/urcu-pointer.h
-include/urcu-qsbr.h
-include/urcu.h
+include/urcu/urcu_ref.h
+include/urcu/wfqueue.h
+include/urcu/wfstack.h
 lib/liburcu-bp.a
 lib/liburcu-bp.la
 lib/liburcu-bp.so
@@ -44,6 +48,10 @@ lib/liburcu-cds.a
 lib/liburcu-cds.la
 lib/liburcu-cds.so
 lib/liburcu-cds.so.1
+lib/liburcu-common.a
+lib/liburcu-common.la
+lib/liburcu-common.so
+lib/liburcu-common.so.1
 lib/liburcu-mb.a
 lib/liburcu-mb.la
 lib/liburcu-mb.so
@@ -60,12 +68,12 @@ lib/liburcu.a
 lib/liburcu.la
 lib/liburcu.so
 lib/liburcu.so.1
-libdata/pkgconfig/liburcu-signal.pc
-libdata/pkgconfig/liburcu-qsbr.pc
-libdata/pkgconfig/liburcu.pc
-libdata/pkgconfig/liburcu-mb.pc
 libdata/pkgconfig/liburcu-bp.pc
 libdata/pkgconfig/liburcu-cds.pc
+libdata/pkgconfig/liburcu-mb.pc
+libdata/pkgconfig/liburcu-qsbr.pc
+libdata/pkgconfig/liburcu-signal.pc
+libdata/pkgconfig/liburcu.pc
 @dirrm include/urcu/uatomic
 @dirrm include/urcu/static
 @dirrm include/urcu/map
>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: ports/168339: [patch] sysutils/userspace-rcu update to 0.7.2

Edwin Groothuis-2
Synopsis: [patch] sysutils/userspace-rcu update to 0.7.2

State-Changed-From-To: open->feedback
State-Changed-By: edwin
State-Changed-When: Fri May 25 17:20:48 UTC 2012
State-Changed-Why:
Awaiting maintainers feedback (via the GNATS Auto Assign Tool)

http://www.freebsd.org/cgi/query-pr.cgi?pr=168339
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: ports/168339: [patch] sysutils/userspace-rcu update to 0.7.2

Edwin Groothuis-2
In reply to this post by Hirohisa Yamaguchi
The following reply was made to PR ports/168339; it has been noted by GNATS.

From: Edwin Groothuis <[hidden email]>
To: [hidden email]
Cc: [hidden email]
Subject: Re: ports/168339: [patch] sysutils/userspace-rcu update to 0.7.2
Date: Fri, 25 May 2012 17:20:44 UT

 Maintainer of sysutils/userspace-rcu,
 
 Please note that PR ports/168339 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/168339
 
 --
 Edwin Groothuis via the GNATS Auto Assign Tool
 [hidden email]
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: ports/168339: [patch] sysutils/userspace-rcu update to 0.7.2

Hirohisa Yamaguchi
In reply to this post by Hirohisa Yamaguchi
The following reply was made to PR ports/168339; it has been noted by GNATS.

From: Hirohisa Yamaguchi <[hidden email]>
To: [hidden email]
Cc:  
Subject: Re: ports/168339: [patch] sysutils/userspace-rcu update to 0.7.2
Date: Sat, 26 May 2012 02:57:41 +0900

 --Multipart_Sat_May_26_02:57:39_2012-1
 Content-Type: text/plain; charset=US-ASCII
 
 Hi,
 
 I attach an updated patch which cleaned up some garbages left by
 mistake.
 
 Regards,
 --
 
  Hirohisa Yamaguchi
   [hidden email]
 
 --Multipart_Sat_May_26_02:57:39_2012-1
 Content-Type: application/octet-stream; type=patch
 Content-Disposition: attachment; filename="sysutils_userspace-rcu-0.7.2.patch"
 Content-Transfer-Encoding: 7bit
 
 diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/Makefile ports/sysutils/userspace-rcu/Makefile
 --- ports.org/sysutils/userspace-rcu/Makefile 2012-03-07 05:35:34.000000000 +0900
 +++ ports/sysutils/userspace-rcu/Makefile 2012-05-26 02:08:17.000000000 +0900
 @@ -6,7 +6,7 @@
  #
 
  PORTNAME= userspace-rcu
 -PORTVERSION= 0.6.4
 +PORTVERSION= 0.7.2
  CATEGORIES= sysutils
  MASTER_SITES= http://lttng.org/files/urcu/
 
 @@ -14,14 +14,33 @@ MAINTAINER= [hidden email]
  COMMENT= A read-copy-update data synchronization library
 
  LICENSE= LGPL21
 +LICENSE_FILE= ${WRKSRC}/LICENSE
 
 +OPTIONS= UNIPROCESSOR "Disable SMP support" off
 +
 +GNU_CONFIGURE= yes
 +MAKE_ARGS+= pkgconfigdir="${PREFIX}/libdata/pkgconfig"
 +MAKE_JOBS_SAFE= yes
  USE_BZIP2= yes
 -HAS_CONFIGURE= yes
  USE_LDCONFIG= yes
 
 -post-patch:
 - @${REINPLACE_CMD} \
 - -e 's,^\(pkgconfigdir = \).(libdir),\1${PREFIX}/libdata,' \
 - ${WRKSRC}/Makefile.in
 +PORTDOCS= ChangeLog README cds-api.txt rcu-api.txt uatomic-api.txt
 +
 +.include <bsd.port.pre.mk>
 +
 +.if ${OSVERSION} < 802514
 +EXTRA_PATCHES+= ${FILESDIR}/extrapatch-rculfhash-mm-mmap.c
 +.endif
 +
 +.if defined(WITH_UNIPROCESSOR)
 +CONFIGURE_ARGS+= --disable-smp-support
 +.endif
 +
 +pre-configure:
 +.if defined(NOPORTDOCS)
 + ${REINPLACE_CMD} -e '/^SUBDIRS /s/ doc//' \
 + -e '/^install-data-am: /s/ install-dist_docDATA//' \
 + ${WRKSRC}/Makefile.in
 +.endif
 
 -.include <bsd.port.mk>
 +.include <bsd.port.post.mk>
 diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/distinfo ports/sysutils/userspace-rcu/distinfo
 --- ports.org/sysutils/userspace-rcu/distinfo 2012-03-07 05:35:34.000000000 +0900
 +++ ports/sysutils/userspace-rcu/distinfo 2012-05-26 00:24:03.000000000 +0900
 @@ -1,2 +1,2 @@
 -SHA256 (userspace-rcu-0.6.4.tar.bz2) = 2914637c60027ea52974aa7fa8ee7f2a3a0067502bbaebe01de14d6988aa8882
 -SIZE (userspace-rcu-0.6.4.tar.bz2) = 325414
 +SHA256 (userspace-rcu-0.7.2.tar.bz2) = 1e9d70bcf5f552ebf47dec67ac94d998389863375974a1a6bfa833e669b12950
 +SIZE (userspace-rcu-0.7.2.tar.bz2) = 385386
 diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/extrapatch-rculfhash-mm-mmap.c ports/sysutils/userspace-rcu/files/extrapatch-rculfhash-mm-mmap.c
 --- ports.org/sysutils/userspace-rcu/files/extrapatch-rculfhash-mm-mmap.c 1970-01-01 09:00:00.000000000 +0900
 +++ ports/sysutils/userspace-rcu/files/extrapatch-rculfhash-mm-mmap.c 2012-05-25 23:49:33.000000000 +0900
 @@ -0,0 +1,13 @@
 +--- ./rculfhash-mm-mmap.c.orig 2012-03-05 05:20:58.000000000 +0900
 ++++ ./rculfhash-mm-mmap.c 2012-05-25 16:58:11.000000000 +0900
 +@@ -24,6 +24,10 @@
 + #include <sys/mman.h>
 + #include "rculfhash-internal.h"
 +
 ++#ifndef MAP_ANONYMOUS
 ++#define MAP_ANONYMOUS MAP_ANON
 ++#endif
 ++
 + /* reserve inaccessible memory space without allocation any memory */
 + static void *memory_map(size_t length)
 + {
 diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/patch-tests_runall.sh ports/sysutils/userspace-rcu/files/patch-tests_runall.sh
 --- ports.org/sysutils/userspace-rcu/files/patch-tests_runall.sh 1970-01-01 09:00:00.000000000 +0900
 +++ ports/sysutils/userspace-rcu/files/patch-tests_runall.sh 2012-03-25 00:34:41.000000000 +0900
 @@ -0,0 +1,73 @@
 +--- ./tests/runall.sh.orig 2011-09-06 04:24:55.000000000 +0900
 ++++ ./tests/runall.sh 2012-03-16 18:44:14.000000000 +0900
 +@@ -3,7 +3,7 @@
 + #run all tests
 +
 + #set to number of active CPUS
 +-NUM_CPUS=8
 ++NUM_CPUS=$(sysctl -n kern.smp.cpus)
 +
 + #extra options, e.g. for setting affinity on even CPUs :
 + #EXTRA_OPTS=$(for a in $(seq 0 2 127); do echo -n "-a ${a} "; done)
 +@@ -37,14 +37,19 @@
 +
 + rm -f batch-rcu.log
 +
 ++exec 3>&1
 + NR_READERS=$((${NUM_CPUS} - ${NR_WRITERS}))
 + for BATCH_SIZE in ${BATCH_ARRAY}; do
 + echo "./runtests-batch.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d 0 -b ${BATCH_SIZE} ${EXTRA_OPTS} | tee -a batch-rcu.log" >> runall.log
 +- ./runtests-batch.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d 0 -b ${BATCH_SIZE} ${EXTRA_OPTS} | tee -a batch-rcu.log
 ++ STATUS=$({ {\
 ++ ./runtests-batch.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d 0 -b ${BATCH_SIZE} ${EXTRA_OPTS} \
 ++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
 ++ | tee -a batch-rcu.log 1>&3 3>&- 4>&-;} 4>&1)
 ++ if [ $STATUS != 0 ]; then exit 1; fi
 + done
 +
 + #setting gc each 32768. ** UPDATE FOR YOUR ARCHITECTURE BASED ON TEST ABOVE **
 +-EXTRA_OPTS+="-b 32768"
 ++EXTRA_OPTS="${EXTRA_OPTS}-b 32768"
 +
 + echo Executing update fraction test
 +
 +@@ -59,7 +64,11 @@
 + NR_READERS=$((${NUM_CPUS} - ${NR_WRITERS}))
 + for WDELAY in ${WDELAY_ARRAY}; do
 + echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} | tee -a update-fraction.log" >> runall.log
 +- ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} | tee -a update-fraction.log
 ++ STATUS=$({ {\
 ++ ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} \
 ++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
 ++ | tee -a update-fraction.log 1>&3 3>&- 4>&-;} 4>&1)
 ++ if [ $STATUS != 0 ]; then exit 1; fi
 + done
 +
 + #Test scalability :
 +@@ -74,9 +83,13 @@
 +
 + rm -f scalability.log
 +
 +-for NR_READERS in $(seq 1 ${NUM_CPUS}); do
 ++for NR_READERS in $(jot ${NUM_CPUS}); do
 + echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS}| tee -a scalability.log" >> runall.log
 +- ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS}| tee -a scalability.log
 ++ STATUS=$({ {\
 ++ ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} \
 ++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
 ++ | tee -a scalability.log 1>&3 3>&- 4>&-;} 4>&1)
 ++ if [ $STATUS != 0 ]; then exit 1; fi
 + done
 +
 +
 +@@ -97,5 +110,9 @@
 +
 + for READERCSLEN in ${READERCSLEN_ARRAY}; do
 + echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -c ${READERCSLEN} | tee -a readercslen.log" >> runall.log
 +- ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -c ${READERCSLEN} | tee -a readercslen.log
 ++ STATUS=$({ {\
 ++ ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -c ${READERCSLEN} \
 ++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
 ++ | tee -a readercslen.log 1>&3 3>&- 4>&-;} 4>&1)
 ++ if [ $STATUS != 0 ]; then exit 1; fi
 + done
 diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase1.sh ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase1.sh
 --- ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase1.sh 1970-01-01 09:00:00.000000000 +0900
 +++ ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase1.sh 2012-03-17 00:10:20.000000000 +0900
 @@ -0,0 +1,30 @@
 +--- ./tests/runpaul-phase1.sh.orig 2011-09-06 04:24:55.000000000 +0900
 ++++ ./tests/runpaul-phase1.sh 2012-03-16 18:46:32.000000000 +0900
 +@@ -3,10 +3,10 @@
 + #run all tests
 +
 + #set to number of active CPUS
 +-NUM_CPUS=64
 ++NUM_CPUS=$(sysctl -n kern.smp.cpus)
 +
 + #extra options, e.g. for setting affinity on even CPUs :
 +-EXTRA_OPTS=$(for a in $(seq 0 2 127); do echo -n "-a ${a} "; done)
 ++EXTRA_OPTS=$(for a in $(jot 64 0 112); do echo -n "-a ${a} "; done)
 +
 + #ppc64 striding, use with NUM_CPUS=8
 +
 +@@ -37,8 +37,13 @@
 +
 + rm -f batch-rcu.log
 +
 ++exec 3>&1
 + NR_READERS=$((${NUM_CPUS} - ${NR_WRITERS}))
 + for BATCH_SIZE in ${BATCH_ARRAY}; do
 + echo "./runtests-batch.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d 0 -b ${BATCH_SIZE} ${EXTRA_OPTS} | tee -a batch-rcu.log" >> runall.log
 +- ./runtests-batch.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d 0 -b ${BATCH_SIZE} ${EXTRA_OPTS} | tee -a batch-rcu.log
 ++ STATUS=$({ {\
 ++ ./runtests-batch.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d 0 -b ${BATCH_SIZE} ${EXTRA_OPTS} \
 ++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
 ++ | tee -a batch-rcu.log 1>&3 3>&- 4>&-;} 4>&1)
 ++ if [ $STATUS != 0 ]; then exit 1; fi
 + done
 diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase2.sh ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase2.sh
 --- ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase2.sh 1970-01-01 09:00:00.000000000 +0900
 +++ ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase2.sh 2012-03-25 00:34:41.000000000 +0900
 @@ -0,0 +1,39 @@
 +--- ./tests/runpaul-phase2.sh.orig 2011-09-06 04:24:55.000000000 +0900
 ++++ ./tests/runpaul-phase2.sh 2012-03-16 18:46:11.000000000 +0900
 +@@ -3,10 +3,10 @@
 + #run all tests
 +
 + #set to number of active CPUS
 +-NUM_CPUS=64
 ++NUM_CPUS=$(sysctl -n kern.smp.cpus)
 +
 + #extra options, e.g. for setting affinity on even CPUs :
 +-EXTRA_OPTS=$(for a in $(seq 0 2 127); do echo -n "-a ${a} "; done)
 ++EXTRA_OPTS=$(for a in $(jot 64 0 112); do echo -n "-a ${a} "; done)
 +
 + #ppc64 striding, use with NUM_CPUS=8
 +
 +@@ -28,7 +28,7 @@
 + rm -fr runall.detail.log
 +
 + #setting gc each 32768. ** UPDATE FOR YOUR ARCHITECTURE BASED ON PHASE 1 RESULT **
 +-EXTRA_OPTS+="-b 32768"
 ++EXTRA_OPTS="${EXTRA_OPTS}-b 32768"
 +
 + echo Executing update fraction test
 +
 +@@ -40,8 +40,13 @@
 +
 + rm -f update-fraction.log
 +
 ++exec 3>&1
 + NR_READERS=$((${NUM_CPUS} - ${NR_WRITERS}))
 + for WDELAY in ${WDELAY_ARRAY}; do
 + echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} | tee -a update-fraction.log" >> runall.log
 +- ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} | tee -a update-fraction.log
 ++ STATUS=$({ {\
 ++ ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} \
 ++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
 ++ | tee -a update-fraction.log 1>&3 3>&- 4>&-;} 4>&1)
 ++ if [ $STATUS != 0 ]; then exit 1; fi
 + done
 diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase3.sh ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase3.sh
 --- ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase3.sh 1970-01-01 09:00:00.000000000 +0900
 +++ ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase3.sh 2012-03-25 00:34:41.000000000 +0900
 @@ -0,0 +1,41 @@
 +--- ./tests/runpaul-phase3.sh.orig 2011-09-06 04:24:55.000000000 +0900
 ++++ ./tests/runpaul-phase3.sh 2012-03-16 18:45:47.000000000 +0900
 +@@ -3,10 +3,10 @@
 + #run all tests
 +
 + #set to number of active CPUS
 +-NUM_CPUS=64
 ++NUM_CPUS=$(sysctl -n kern.smp.cpus)
 +
 + #extra options, e.g. for setting affinity on even CPUs :
 +-EXTRA_OPTS=$(for a in $(seq 0 2 127); do echo -n "-a ${a} "; done)
 ++EXTRA_OPTS=$(for a in $(jot 64 0 112); do echo -n "-a ${a} "; done)
 +
 + #ppc64 striding, use with NUM_CPUS=8
 +
 +@@ -28,7 +28,7 @@
 + rm -fr runall.detail.log
 +
 + #setting gc each 32768. ** UPDATE FOR YOUR ARCHITECTURE BASED ON PHASE 1 RESULT **
 +-EXTRA_OPTS+="-b 32768"
 ++EXTRA_OPTS="${EXTRA_OPTS}-b 32768"
 +
 + #Test scalability :
 + # x: vary number of readers from 0 to num cpus
 +@@ -42,9 +42,14 @@
 +
 + rm -f scalability.log
 +
 +-for NR_READERS in $(seq 1 ${NUM_CPUS}); do
 ++exec 3>&1
 ++for NR_READERS in $(jot ${NUM_CPUS}); do
 + echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS}| tee -a scalability.log" >> runall.log
 +- ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS}| tee -a scalability.log
 ++ STATUS=$({ {\
 ++ ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} \
 ++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
 ++ | tee -a scalability.log 1>&3 3>&- 4>&-;} 4>&1)
 ++ if [ $STATUS != 0 ]; then exit 1; fi
 + done
 +
 +
 diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase4.sh ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase4.sh
 --- ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase4.sh 1970-01-01 09:00:00.000000000 +0900
 +++ ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase4.sh 2012-02-27 23:35:05.000000000 +0900
 @@ -0,0 +1,44 @@
 +--- ./tests/runpaul-phase4.sh.orig 2011-09-06 04:24:55.000000000 +0900
 ++++ ./tests/runpaul-phase4.sh 2012-02-27 17:51:45.000000000 +0900
 +@@ -3,7 +3,7 @@
 + #run all tests
 +
 + #set to number of active CPUS
 +-export NUM_CPUS=8
 ++export NUM_CPUS=$(sysctl -n kern.smp.cpus)
 +
 + #extra options, e.g. for setting affinity on even CPUs :
 + #EXTRA_OPTS=$(for a in $(seq 0 2 127); do echo -n "-a ${a} "; done)
 +@@ -13,28 +13,28 @@
 + rm -f *.log
 +
 + #stride 1
 +-export EXTRA_OPTS=$(for a in $(seq 0 2 15); do echo -n "-a ${a} "; done)
 ++export EXTRA_OPTS=$(for a in $(jot 8 0 14); do echo -n "-a ${a} "; done)
 + sh subphase4.sh $*
 + mkdir ppc64-8cores-stride1
 + mv *.log ppc64-8cores-stride1/
 +
 +
 + #stride 2
 +-export EXTRA_OPTS=$(for a in $(seq 0 4 31); do echo -n "-a ${a} "; done)
 ++export EXTRA_OPTS=$(for a in $(jot 8 0 28); do echo -n "-a ${a} "; done)
 + sh subphase4.sh $*
 + mkdir ppc64-8cores-stride2
 + mv *.log ppc64-8cores-stride2/
 +
 +
 + #stride 4
 +-export EXTRA_OPTS=$(for a in $(seq 0 8 63); do echo -n "-a ${a} "; done)
 ++export EXTRA_OPTS=$(for a in $(jot 8 0 56); do echo -n "-a ${a} "; done)
 + sh subphase4.sh $*
 + mkdir ppc64-8cores-stride4
 + mv *.log ppc64-8cores-stride4/
 +
 +
 + #stride 8
 +-export EXTRA_OPTS=$(for a in $(seq 0 16 127); do echo -n "-a ${a} "; done)
 ++export EXTRA_OPTS=$(for a in $(jot 8 0 112); do echo -n "-a ${a} "; done)
 + sh subphase4.sh $*
 + mkdir ppc64-8cores-stride8
 + mv *.log ppc64-8cores-stride8/
 diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase7.sh ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase7.sh
 --- ports.org/sysutils/userspace-rcu/files/patch-tests_runpaul-phase7.sh 1970-01-01 09:00:00.000000000 +0900
 +++ ports/sysutils/userspace-rcu/files/patch-tests_runpaul-phase7.sh 2012-03-17 00:10:20.000000000 +0900
 @@ -0,0 +1,32 @@
 +--- ./tests/runpaul-phase7.sh.orig 2011-09-06 04:24:55.000000000 +0900
 ++++ ./tests/runpaul-phase7.sh 2012-03-16 18:44:54.000000000 +0900
 +@@ -3,11 +3,11 @@
 + #run all tests
 +
 + #set to number of active CPUS
 +-export NUM_CPUS=64
 ++export NUM_CPUS=$(sysctl -n kern.smp.cpus)
 + #export NUM_CPUS=8
 +
 + #extra options, e.g. for setting affinity on even CPUs :
 +-EXTRA_OPTS=$(for a in $(seq 0 2 127); do echo -n "-a ${a} "; done)
 ++EXTRA_OPTS=$(for a in $(jot 64 0 112); do echo -n "-a ${a} "; done)
 + #EXTRA_OPTS=$(for a in $(seq 0 1 7); do echo -n "-a ${a} "; done)
 +
 + rm -f *.log
 +@@ -28,9 +28,14 @@
 +
 + rm -f writercslen.log
 +
 ++exec 3>&1
 + for WRITERCSLEN in ${WRITERCSLEN_ARRAY}; do
 + echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -d ${WDELAY} -e ${WRITERCSLEN} | tee -a writercslen.log" >> runall.log
 +- ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -d ${WDELAY} -e ${WRITERCSLEN} | tee -a writercslen.log
 ++ STATUS=$({ {\
 ++ ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -d ${WDELAY} -e ${WRITERCSLEN} \
 ++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
 ++ | tee -a writercslen.log 1>&3 3>&- 4>&-;} 4>&1)
 ++ if [ $STATUS != 0 ]; then exit 1; fi
 + done
 +
 +
 diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/patch-tests_runtests-batch.sh ports/sysutils/userspace-rcu/files/patch-tests_runtests-batch.sh
 --- ports.org/sysutils/userspace-rcu/files/patch-tests_runtests-batch.sh 1970-01-01 09:00:00.000000000 +0900
 +++ ports/sysutils/userspace-rcu/files/patch-tests_runtests-batch.sh 2012-05-25 23:49:33.000000000 +0900
 @@ -0,0 +1,10 @@
 +--- ./tests/runtests-batch.sh.orig 2011-11-02 09:15:09.000000000 +0900
 ++++ ./tests/runtests-batch.sh 2012-03-16 18:32:52.000000000 +0900
 +@@ -3,6 +3,6 @@
 + #for a in test_urcu_gc test_urcu_gc_mb test_urcu_qsbr_gc; do
 + for a in test_urcu_gc; do
 + echo "./${a} $*" | tee -a runall.detail.log
 +- /usr/bin/time --append --output runall.detail.log ./${a} $*
 ++ /usr/bin/time -a -o runall.detail.log ./${a} $*
 + done
 +
 diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/patch-tests_runtests.sh ports/sysutils/userspace-rcu/files/patch-tests_runtests.sh
 --- ports.org/sysutils/userspace-rcu/files/patch-tests_runtests.sh 1970-01-01 09:00:00.000000000 +0900
 +++ ports/sysutils/userspace-rcu/files/patch-tests_runtests.sh 2012-05-25 23:49:33.000000000 +0900
 @@ -0,0 +1,10 @@
 +--- ./tests/runtests.sh.orig 2011-11-02 09:15:09.000000000 +0900
 ++++ ./tests/runtests.sh 2012-03-16 18:32:52.000000000 +0900
 +@@ -5,6 +5,6 @@
 + test_urcu test_urcu_signal test_urcu_mb test_urcu_qsbr \
 + test_rwlock test_perthreadlock test_mutex; do
 + echo "./${a} $*" | tee -a runall.detail.log
 +- /usr/bin/time --append --output runall.detail.log ./${a} $*
 ++ /usr/bin/time -a -o runall.detail.log ./${a} $*
 + done
 +
 diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/files/patch-tests_subphase4.sh ports/sysutils/userspace-rcu/files/patch-tests_subphase4.sh
 --- ports.org/sysutils/userspace-rcu/files/patch-tests_subphase4.sh 1970-01-01 09:00:00.000000000 +0900
 +++ ports/sysutils/userspace-rcu/files/patch-tests_subphase4.sh 2012-03-25 00:34:41.000000000 +0900
 @@ -0,0 +1,64 @@
 +--- ./tests/subphase4.sh.orig 2011-09-06 04:24:55.000000000 +0900
 ++++ ./tests/subphase4.sh 2012-03-16 18:43:10.000000000 +0900
 +@@ -37,14 +37,19 @@
 +
 + rm -f batch-rcu.log
 +
 ++exec 3>&1
 + NR_READERS=$((${NUM_CPUS} - ${NR_WRITERS}))
 + for BATCH_SIZE in ${BATCH_ARRAY}; do
 + echo "./runtests-batch.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d 0 -b ${BATCH_SIZE} ${EXTRA_OPTS} | tee -a batch-rcu.log" >> runall.log
 +- ./runtests-batch.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d 0 -b ${BATCH_SIZE} ${EXTRA_OPTS} | tee -a batch-rcu.log
 ++ STATUS=$({ {\
 ++ ./runtests-batch.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d 0 -b ${BATCH_SIZE} ${EXTRA_OPTS} \
 ++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
 ++ | tee -a batch-rcu.log 1>&3 3>&- 4>&-;} 4>&1)
 ++ if [ $STATUS != 0 ]; then exit 1; fi
 + done
 +
 + #setting gc each 4096. ** UPDATE FOR YOUR ARCHITECTURE BASED ON TEST ABOVE **
 +-EXTRA_OPTS+="-b 32768"
 ++EXTRA_OPTS="${EXTRA_OPTS}-b 32768"
 +
 + echo Executing update fraction test
 +
 +@@ -59,7 +64,11 @@
 + NR_READERS=$((${NUM_CPUS} - ${NR_WRITERS}))
 + for WDELAY in ${WDELAY_ARRAY}; do
 + echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} | tee -a update-fraction.log" >> runall.log
 +- ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} | tee -a update-fraction.log
 ++ STATUS=$({ {\
 ++ ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} \
 ++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
 ++ | tee -a update-fraction.log 1>&3 3>&- 4>&-;} 4>&1)
 ++ if [ $STATUS != 0 ]; then exit 1; fi
 + done
 +
 + #Test scalability :
 +@@ -74,9 +83,13 @@
 +
 + rm -f scalability.log
 +
 +-for NR_READERS in $(seq 1 ${NUM_CPUS}); do
 ++for NR_READERS in $(jot ${NUM_CPUS}); do
 + echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS}| tee -a scalability.log" >> runall.log
 +- ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS}| tee -a scalability.log
 ++ STATUS=$({ {\
 ++ ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} \
 ++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
 ++ | tee -a scalability.log 1>&3 3>&- 4>&-;} 4>&1)
 ++ if [ $STATUS != 0 ]; then exit 1; fi
 + done
 +
 +
 +@@ -97,5 +110,9 @@
 +
 + for READERCSLEN in ${READERCSLEN_ARRAY}; do
 + echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -c ${READERCSLEN} | tee -a readercslen.log" >> runall.log
 +- ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -c ${READERCSLEN} | tee -a readercslen.log
 ++ STATUS=$({ {\
 ++ ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -c ${READERCSLEN} \
 ++ 3>&- 4>&-; echo $? 1>&4 3>&- 4>&-;} \
 ++ | tee -a readercslen.log 1>&3 3>&- 4>&-;} 4>&1)
 ++ if [ $STATUS != 0 ]; then exit 1; fi
 + done
 diff --exclude=work -Nrpu ports.org/sysutils/userspace-rcu/pkg-plist ports/sysutils/userspace-rcu/pkg-plist
 --- ports.org/sysutils/userspace-rcu/pkg-plist 2012-03-18 06:46:26.000000000 +0900
 +++ ports/sysutils/userspace-rcu/pkg-plist 2012-05-25 23:49:33.000000000 +0900
 @@ -1,41 +1,45 @@
 -include/urcu/urcu_ref.h
 +@comment $FreeBSD$
 +include/urcu-bp.h
 +include/urcu-call-rcu.h
 +include/urcu-defer.h
 +include/urcu-flavor.h
 +include/urcu-pointer.h
 +include/urcu-qsbr.h
 +include/urcu.h
 +include/urcu/arch.h
 +include/urcu/arch/generic.h
 +include/urcu/cds.h
 +include/urcu/compiler.h
  include/urcu/config.h
 -include/urcu/uatomic/generic.h
 -include/urcu/static/urcu-bp.h
 +include/urcu/futex.h
 +include/urcu/hlist.h
 +include/urcu/list.h
 +include/urcu/map/urcu-bp.h
 +include/urcu/map/urcu-qsbr.h
 +include/urcu/map/urcu.h
 +include/urcu/rcuhlist.h
 +include/urcu/rculfhash.h
 +include/urcu/rculfqueue.h
 +include/urcu/rculfstack.h
 +include/urcu/rculist.h
 +include/urcu/ref.h
  include/urcu/static/rculfqueue.h
 -include/urcu/static/urcu.h
 -include/urcu/static/urcu-qsbr.h
  include/urcu/static/rculfstack.h
 +include/urcu/static/urcu-bp.h
 +include/urcu/static/urcu-pointer.h
 +include/urcu/static/urcu-qsbr.h
 +include/urcu/static/urcu.h
  include/urcu/static/wfqueue.h
  include/urcu/static/wfstack.h
 -include/urcu/static/urcu-pointer.h
 -include/urcu/futex.h
  include/urcu/system.h
 -include/urcu/ref.h
 -include/urcu/wfqueue.h
 -include/urcu/arch/generic.h
 -include/urcu/cds.h
 -include/urcu/wfstack.h
 -include/urcu/compiler.h
 -include/urcu/list.h
 +include/urcu/tls-compat.h
 +include/urcu/uatomic.h
 +include/urcu/uatomic/generic.h
  include/urcu/uatomic_arch.h
 -include/urcu/hlist.h
  include/urcu/urcu-futex.h
 -include/urcu/rcuhlist.h
 -include/urcu/rculfstack.h
 -include/urcu/uatomic.h
 -include/urcu/rculfqueue.h
 -include/urcu/rculist.h
 -include/urcu/map/urcu-qsbr.h
 -include/urcu/map/urcu.h
 -include/urcu/map/urcu-bp.h
 -include/urcu/arch.h
 -include/urcu-bp.h
 -include/urcu-call-rcu.h
 -include/urcu-defer.h
 -include/urcu-pointer.h
 -include/urcu-qsbr.h
 -include/urcu.h
 +include/urcu/urcu_ref.h
 +include/urcu/wfqueue.h
 +include/urcu/wfstack.h
  lib/liburcu-bp.a
  lib/liburcu-bp.la
  lib/liburcu-bp.so
 @@ -44,6 +48,10 @@ lib/liburcu-cds.a
  lib/liburcu-cds.la
  lib/liburcu-cds.so
  lib/liburcu-cds.so.1
 +lib/liburcu-common.a
 +lib/liburcu-common.la
 +lib/liburcu-common.so
 +lib/liburcu-common.so.1
  lib/liburcu-mb.a
  lib/liburcu-mb.la
  lib/liburcu-mb.so
 @@ -60,12 +68,12 @@ lib/liburcu.a
  lib/liburcu.la
  lib/liburcu.so
  lib/liburcu.so.1
 -libdata/pkgconfig/liburcu-signal.pc
 -libdata/pkgconfig/liburcu-qsbr.pc
 -libdata/pkgconfig/liburcu.pc
 -libdata/pkgconfig/liburcu-mb.pc
  libdata/pkgconfig/liburcu-bp.pc
  libdata/pkgconfig/liburcu-cds.pc
 +libdata/pkgconfig/liburcu-mb.pc
 +libdata/pkgconfig/liburcu-qsbr.pc
 +libdata/pkgconfig/liburcu-signal.pc
 +libdata/pkgconfig/liburcu.pc
  @dirrm include/urcu/uatomic
  @dirrm include/urcu/static
  @dirrm include/urcu/map
 
 --Multipart_Sat_May_26_02:57:39_2012-1--
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: ports/168339: [patch] sysutils/userspace-rcu update to 0.7.2

Leo Vandewoestijne-3
In reply to this post by Hirohisa Yamaguchi
The following reply was made to PR ports/168339; it has been noted by GNATS.

From: Leo Vandewoestijne <[hidden email]>
To: [hidden email]
Cc:  
Subject: Re: ports/168339: [patch] sysutils/userspace-rcu update to 0.7.2
Date: Sat, 26 May 2012 13:08:04 +0000

 Hi Hirohisa Yamaguchi,
 
 Thanks again for your update and working out all the patching.
 But as I found the patching quite intensive, I asked for advice:
 
 > * Leo Vandewoestijne wrote:
 > > Hello Mathieu Desnoyers,
 > >
 > >
 > > I'm Leo Vandewoestijne, port maintainer for Userspace RCU in FreeBSD.
 > >
 > > Version 0.7.2 was released yesterday, and today the new FreeBSD port for it was submitted.
 > > It however got a LOT of patching, and I'm not 100% sure if that doesn't break anything,
 > > while this of course is important, as urcu is a dependancy for the knot-dns nameserver.
 > >
 > > Although a lot, it -to me- seems OK, and I tested it with succes.
 > > But could you please have a look at this contribution of Hirohisa Yamaguchi:
 > > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/168339
 > > (the 2nd patch that is), and please give us your feedback?
 > >
 > > Thanks in advance,
 >
 > Hi Leo,
 >
 > Thanks for getting in touch with me. I would indeed prefer to get the
 > patch upstream and do a new patchlevel release (e.g. 0.7.3) if any
 > change is needed to support FreeBSD. e.g., the change to
 > rculfhash-mm-mmap.c should to submitted upstream.
 >
 > Looking at the patch in the URL you provided, I don't know why the
 > changes to the test programs are required ? Any issue with bash (use of
 > jot instead of seq) ? Also, use of "sysctl -n kern.smp.cpus" does not
 > seem to work on Linux, so finding more portable way to query this might
 > be good if testing on the actual number of CPUs is really required.
 >
 > Of course, the Makefile that contains BSD-specific info, and pkg-list
 > should probably be added in the freebsd-specific package.
 >
 > So please ask the person who provided the patch if he can send me the
 > changes that are required, and if other changes are just cosmetic, and
 > not really needed, I would recommend against putting them in the
 > package. Any difference from upstream that is not required will be a
 > burden on you, the package manager.
 >
 > Thanks!
 >
 >
 > Mathieu
 
 
 So, -to me- the jot/seq issue is clear, and I prefer patching better than making bash a dependency,
 although there's maybe a better way to address it?
 
 Also the "sysctl -n kern.smp.cpus" would be safe in FreeBSD, but in deed might be done more portable?
 
 The NR_READERS makes sense to me, but yes, in overal this is a lot of work to repeat at each new release.
 As they (since 0.7.0) try to support OpenBSD, NetBSD and Darwin it seems they prefer portability anyway
 (and I expect those could also benefit of your adjustments).
 
 So maybe you can get in in touch with the project for the mentioned 0.7.3 ..? That would be nice!
 
 
 As you probably know already Mathieu can be reached at mathieu.desnoyers at efficios.com
 
 
 --
 
 Met vriendelijke groet,
 With kind regards,
 
 
 Leo Vandewoestijne
 
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: ports/168339: [patch] sysutils/userspace-rcu update to 0.7.2

Hirohisa Yamaguchi
In reply to this post by Hirohisa Yamaguchi
The following reply was made to PR ports/168339; it has been noted by GNATS.

From: Hirohisa Yamaguchi <[hidden email]>
To: [hidden email]
Cc: Leo Vandewoestijne <[hidden email]>
Subject: Re: ports/168339: [patch] sysutils/userspace-rcu update to 0.7.2
Date: Sun, 27 May 2012 23:40:09 +0900

 --pgp-sign-Multipart_Sun_May_27_23:40:09_2012-1
 Content-Type: text/plain; charset=US-ASCII
 
 Hi,
 
 As the maintainer suggested, I've sent a mail to the developer
 upstream.
 
 Will you please close this PR, and I'll resubmit a new PR when it's
 ready.
 
 
 Regards,
 --
 
  Hirohisa Yamaguchi
   [hidden email]
 
 --pgp-sign-Multipart_Sun_May_27_23:40:09_2012-1
 Content-Type: application/pgp-signature
 Content-Transfer-Encoding: 7bit
 Content-Description: OpenPGP Digital Signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.19 (FreeBSD)
 
 iQEcBAABAgAGBQJPwjzJAAoJEML/cja+Xi6+ZLsH/13iChAv42gSotDjlugltTat
 6a/aSWjwguVO2doLyMiBKm7+iAtQ2MQehT3OinXhKsdnJoJO0ECv+PD21NxA0myw
 udLY+YypuG19FVlfo+SWqys84ALTNA+TWoWE8W1SZGul+r8zAkKd6djqUn1id+TJ
 bB4xhCW76Qr33Ai2B2unJYViJL2sqWFTvUnvd66unPvUNP9AQzAD0cTr7RXJFQMT
 TYY6y/Gz0BrN7PCcabkOKqaJPGSz+rJQ/4D6uanaydgCaSAkyAfCsHbL0Qvlv7HS
 4hB31rwG5EGemcCFDDDv55pJnzZ9KKoEfL+J8uH22iAQXNGrVHUwh7xkjR5b0M4=
 =ZROk
 -----END PGP SIGNATURE-----
 
 --pgp-sign-Multipart_Sun_May_27_23:40:09_2012-1--
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: ports/168339: [patch] sysutils/userspace-rcu update to 0.7.2

linimon
In reply to this post by Hirohisa Yamaguchi
Synopsis: [patch] sysutils/userspace-rcu update to 0.7.2

State-Changed-From-To: feedback->closed
State-Changed-By: linimon
State-Changed-When: Sun May 27 21:36:05 UTC 2012
State-Changed-Why:
Maintainer has suggested that this patch be sent to upstream instead.

http://www.freebsd.org/cgi/query-pr.cgi?pr=168339
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"
Loading...