]> git.lttng.org Git - urcu.git/commitdiff
Fix: Add failover for platforms without nproc
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 22 Jun 2016 19:16:18 +0000 (15:16 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 22 Jun 2016 19:26:33 +0000 (15:26 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
configure.ac
tests/regression/regression_tests.in

index cf9964b45a2a489427483dc1647abb0a2f196fec..8eec26951e47dce19691843c4b44807c531215a5 100644 (file)
@@ -51,6 +51,16 @@ AC_PROG_CC_STDC
 AC_PROG_AWK
 AC_PROG_MAKE_SET
 AC_CHECK_PROGS(NPROC, [nproc gnproc])
+AC_CHECK_PROGS(GETCONF, [getconf])
+AS_IF([test "x$NPROC" != "x"],
+       [NPROC_CMD=$NPROC],
+       [AS_IF([test "x$GETCONF" != "x"],
+               [NPROC_CMD="$GETCONF _NPROCESSORS_ONLN"],
+               [NPROC_CMD="echo 1"]
+       )]
+)
+AC_SUBST([NPROC_CMD], [$NPROC_CMD])
+
 LT_INIT
 
 # Checks for typedefs, structures, and compiler characteristics.
index a66da24d0493551a782d7fdbb82b7dee587be14d..26df1109e375c7f36ad867a5afb37c1f6d42f938 100644 (file)
@@ -1,61 +1,61 @@
 ./test_urcu_fork
-./rcutorture_urcu `@NPROC@` perf 1 callrcu_global
-./rcutorture_urcu_signal `@NPROC@` perf 1 callrcu_global
-./rcutorture_urcu_mb `@NPROC@` perf 1 callrcu_global
-./rcutorture_urcu_bp `@NPROC@` perf 1 callrcu_global
-./rcutorture_urcu_qsbr `@NPROC@` perf 1 callrcu_global
-./rcutorture_urcu `@NPROC@` rperf 1 callrcu_global
-./rcutorture_urcu_signal `@NPROC@` rperf 1 callrcu_global
-./rcutorture_urcu_mb `@NPROC@` rperf 1 callrcu_global
-./rcutorture_urcu_bp `@NPROC@` rperf 1 callrcu_global
-./rcutorture_urcu_qsbr `@NPROC@` rperf 1 callrcu_global
-./rcutorture_urcu `@NPROC@` uperf 1 callrcu_global
-./rcutorture_urcu_signal `@NPROC@` uperf 1 callrcu_global
-./rcutorture_urcu_mb `@NPROC@` uperf 1 callrcu_global
-./rcutorture_urcu_bp `@NPROC@` uperf 1 callrcu_global
-./rcutorture_urcu_qsbr `@NPROC@` uperf 1 callrcu_global
-./rcutorture_urcu `@NPROC@` stress 1 callrcu_global
-./rcutorture_urcu_signal `@NPROC@` stress 1 callrcu_global
-./rcutorture_urcu_mb `@NPROC@` stress 1 callrcu_global
-./rcutorture_urcu_bp `@NPROC@` stress 1 callrcu_global
-./rcutorture_urcu_qsbr `@NPROC@` stress 1 callrcu_global
-./rcutorture_urcu `@NPROC@` perf 1 callrcu_percpu
-./rcutorture_urcu_signal `@NPROC@` perf 1 callrcu_percpu
-./rcutorture_urcu_mb `@NPROC@` perf 1 callrcu_percpu
-./rcutorture_urcu_bp `@NPROC@` perf 1 callrcu_percpu
-./rcutorture_urcu_qsbr `@NPROC@` perf 1 callrcu_percpu
-./rcutorture_urcu `@NPROC@` rperf 1 callrcu_percpu
-./rcutorture_urcu_signal `@NPROC@` rperf 1 callrcu_percpu
-./rcutorture_urcu_mb `@NPROC@` rperf 1 callrcu_percpu
-./rcutorture_urcu_bp `@NPROC@` rperf 1 callrcu_percpu
-./rcutorture_urcu_qsbr `@NPROC@` rperf 1 callrcu_percpu
-./rcutorture_urcu `@NPROC@` uperf 1 callrcu_percpu
-./rcutorture_urcu_signal `@NPROC@` uperf 1 callrcu_percpu
-./rcutorture_urcu_mb `@NPROC@` uperf 1 callrcu_percpu
-./rcutorture_urcu_bp `@NPROC@` uperf 1 callrcu_percpu
-./rcutorture_urcu_qsbr `@NPROC@` uperf 1 callrcu_percpu
-./rcutorture_urcu `@NPROC@` stress 1 callrcu_percpu
-./rcutorture_urcu_signal `@NPROC@` stress 1 callrcu_percpu
-./rcutorture_urcu_mb `@NPROC@` stress 1 callrcu_percpu
-./rcutorture_urcu_bp `@NPROC@` stress 1 callrcu_percpu
-./rcutorture_urcu_qsbr `@NPROC@` stress 1 callrcu_percpu
-./rcutorture_urcu `@NPROC@` perf 1 callrcu_perthread
-./rcutorture_urcu_signal `@NPROC@` perf 1 callrcu_perthread
-./rcutorture_urcu_mb `@NPROC@` perf 1 callrcu_perthread
-./rcutorture_urcu_bp `@NPROC@` perf 1 callrcu_perthread
-./rcutorture_urcu_qsbr `@NPROC@` perf 1 callrcu_perthread
-./rcutorture_urcu `@NPROC@` rperf 1 callrcu_perthread
-./rcutorture_urcu_signal `@NPROC@` rperf 1 callrcu_perthread
-./rcutorture_urcu_mb `@NPROC@` rperf 1 callrcu_perthread
-./rcutorture_urcu_bp `@NPROC@` rperf 1 callrcu_perthread
-./rcutorture_urcu_qsbr `@NPROC@` rperf 1 callrcu_perthread
-./rcutorture_urcu `@NPROC@` uperf 1 callrcu_perthread
-./rcutorture_urcu_signal `@NPROC@` uperf 1 callrcu_perthread
-./rcutorture_urcu_mb `@NPROC@` uperf 1 callrcu_perthread
-./rcutorture_urcu_bp `@NPROC@` uperf 1 callrcu_perthread
-./rcutorture_urcu_qsbr `@NPROC@` uperf 1 callrcu_perthread
-./rcutorture_urcu `@NPROC@` stress 1 callrcu_perthread
-./rcutorture_urcu_signal `@NPROC@` stress 1 callrcu_perthread
-./rcutorture_urcu_mb `@NPROC@` stress 1 callrcu_perthread
-./rcutorture_urcu_bp `@NPROC@` stress 1 callrcu_perthread
-./rcutorture_urcu_qsbr `@NPROC@` stress 1 callrcu_perthread
+./rcutorture_urcu `@NPROC_CMD@` perf 1 callrcu_global
+./rcutorture_urcu_signal `@NPROC_CMD@` perf 1 callrcu_global
+./rcutorture_urcu_mb `@NPROC_CMD@` perf 1 callrcu_global
+./rcutorture_urcu_bp `@NPROC_CMD@` perf 1 callrcu_global
+./rcutorture_urcu_qsbr `@NPROC_CMD@` perf 1 callrcu_global
+./rcutorture_urcu `@NPROC_CMD@` rperf 1 callrcu_global
+./rcutorture_urcu_signal `@NPROC_CMD@` rperf 1 callrcu_global
+./rcutorture_urcu_mb `@NPROC_CMD@` rperf 1 callrcu_global
+./rcutorture_urcu_bp `@NPROC_CMD@` rperf 1 callrcu_global
+./rcutorture_urcu_qsbr `@NPROC_CMD@` rperf 1 callrcu_global
+./rcutorture_urcu `@NPROC_CMD@` uperf 1 callrcu_global
+./rcutorture_urcu_signal `@NPROC_CMD@` uperf 1 callrcu_global
+./rcutorture_urcu_mb `@NPROC_CMD@` uperf 1 callrcu_global
+./rcutorture_urcu_bp `@NPROC_CMD@` uperf 1 callrcu_global
+./rcutorture_urcu_qsbr `@NPROC_CMD@` uperf 1 callrcu_global
+./rcutorture_urcu `@NPROC_CMD@` stress 1 callrcu_global
+./rcutorture_urcu_signal `@NPROC_CMD@` stress 1 callrcu_global
+./rcutorture_urcu_mb `@NPROC_CMD@` stress 1 callrcu_global
+./rcutorture_urcu_bp `@NPROC_CMD@` stress 1 callrcu_global
+./rcutorture_urcu_qsbr `@NPROC_CMD@` stress 1 callrcu_global
+./rcutorture_urcu `@NPROC_CMD@` perf 1 callrcu_percpu
+./rcutorture_urcu_signal `@NPROC_CMD@` perf 1 callrcu_percpu
+./rcutorture_urcu_mb `@NPROC_CMD@` perf 1 callrcu_percpu
+./rcutorture_urcu_bp `@NPROC_CMD@` perf 1 callrcu_percpu
+./rcutorture_urcu_qsbr `@NPROC_CMD@` perf 1 callrcu_percpu
+./rcutorture_urcu `@NPROC_CMD@` rperf 1 callrcu_percpu
+./rcutorture_urcu_signal `@NPROC_CMD@` rperf 1 callrcu_percpu
+./rcutorture_urcu_mb `@NPROC_CMD@` rperf 1 callrcu_percpu
+./rcutorture_urcu_bp `@NPROC_CMD@` rperf 1 callrcu_percpu
+./rcutorture_urcu_qsbr `@NPROC_CMD@` rperf 1 callrcu_percpu
+./rcutorture_urcu `@NPROC_CMD@` uperf 1 callrcu_percpu
+./rcutorture_urcu_signal `@NPROC_CMD@` uperf 1 callrcu_percpu
+./rcutorture_urcu_mb `@NPROC_CMD@` uperf 1 callrcu_percpu
+./rcutorture_urcu_bp `@NPROC_CMD@` uperf 1 callrcu_percpu
+./rcutorture_urcu_qsbr `@NPROC_CMD@` uperf 1 callrcu_percpu
+./rcutorture_urcu `@NPROC_CMD@` stress 1 callrcu_percpu
+./rcutorture_urcu_signal `@NPROC_CMD@` stress 1 callrcu_percpu
+./rcutorture_urcu_mb `@NPROC_CMD@` stress 1 callrcu_percpu
+./rcutorture_urcu_bp `@NPROC_CMD@` stress 1 callrcu_percpu
+./rcutorture_urcu_qsbr `@NPROC_CMD@` stress 1 callrcu_percpu
+./rcutorture_urcu `@NPROC_CMD@` perf 1 callrcu_perthread
+./rcutorture_urcu_signal `@NPROC_CMD@` perf 1 callrcu_perthread
+./rcutorture_urcu_mb `@NPROC_CMD@` perf 1 callrcu_perthread
+./rcutorture_urcu_bp `@NPROC_CMD@` perf 1 callrcu_perthread
+./rcutorture_urcu_qsbr `@NPROC_CMD@` perf 1 callrcu_perthread
+./rcutorture_urcu `@NPROC_CMD@` rperf 1 callrcu_perthread
+./rcutorture_urcu_signal `@NPROC_CMD@` rperf 1 callrcu_perthread
+./rcutorture_urcu_mb `@NPROC_CMD@` rperf 1 callrcu_perthread
+./rcutorture_urcu_bp `@NPROC_CMD@` rperf 1 callrcu_perthread
+./rcutorture_urcu_qsbr `@NPROC_CMD@` rperf 1 callrcu_perthread
+./rcutorture_urcu `@NPROC_CMD@` uperf 1 callrcu_perthread
+./rcutorture_urcu_signal `@NPROC_CMD@` uperf 1 callrcu_perthread
+./rcutorture_urcu_mb `@NPROC_CMD@` uperf 1 callrcu_perthread
+./rcutorture_urcu_bp `@NPROC_CMD@` uperf 1 callrcu_perthread
+./rcutorture_urcu_qsbr `@NPROC_CMD@` uperf 1 callrcu_perthread
+./rcutorture_urcu `@NPROC_CMD@` stress 1 callrcu_perthread
+./rcutorture_urcu_signal `@NPROC_CMD@` stress 1 callrcu_perthread
+./rcutorture_urcu_mb `@NPROC_CMD@` stress 1 callrcu_perthread
+./rcutorture_urcu_bp `@NPROC_CMD@` stress 1 callrcu_perthread
+./rcutorture_urcu_qsbr `@NPROC_CMD@` stress 1 callrcu_perthread
This page took 0.032794 seconds and 4 git commands to generate.