This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "".
The branch, master has been updated
via 8ddca7c5d2d1f6b4311501e3ce6eef6d22e40591 (commit)
from 5622f689653013b317842386a1aed81dd81fe749 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8ddca7c5d2d1f6b4311501e3ce6eef6d22e40591
Author: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(a)linaro.org>
Date: Thu Apr 20 03:00:05 2017 +0300
test: tm: use script instead of binary when calling traffic manager test
Since 51e3b8776b78180741fa57a621f9d13b9ae8bbfb tm test received wrapper
script checking if it is run under Travis CI. However linux-generic
testsuite was not updated to call script instead of binary, resulting in
test failures.
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(a)linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/test/linux-generic/Makefile.am b/test/linux-generic/Makefile.am
index 0522550a..38516a43 100644
--- a/test/linux-generic/Makefile.am
+++ b/test/linux-generic/Makefile.am
@@ -30,7 +30,7 @@ TESTS = validation/api/pktio/pktio_run.sh \
$(ALL_API_VALIDATION_DIR)/thread/thread_main$(EXEEXT) \
$(ALL_API_VALIDATION_DIR)/time/time_main$(EXEEXT) \
$(ALL_API_VALIDATION_DIR)/timer/timer_main$(EXEEXT) \
- $(ALL_API_VALIDATION_DIR)/traffic_mngr/traffic_mngr_main$(EXEEXT) \
+ $(ALL_API_VALIDATION_DIR)/traffic_mngr/traffic_mngr.sh \
$(ALL_API_VALIDATION_DIR)/shmem/shmem_main$(EXEEXT) \
$(ALL_API_VALIDATION_DIR)/system/system_main$(EXEEXT) \
ring/ring_main$(EXEEXT)
-----------------------------------------------------------------------
Summary of changes:
test/linux-generic/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "".
The branch, api-next has been updated
via cba5ed063304a619bd709a9f37400884dce90485 (commit)
from c4c5fbb7ab395443d53efed0741136d92ef13d7a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit cba5ed063304a619bd709a9f37400884dce90485
Author: Honnappa Nagarahalli <honnappa.nagarahalli(a)linaro.org>
Date: Thu Apr 6 23:07:04 2017 -0500
helper: cuckoo: add queue size config to cuckoo table
Some queue implementations in ODP take queue size input. Cuckoo table is
modified to provide the queue size input while creating the queue.
Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli(a)linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/helper/cuckootable.c b/helper/cuckootable.c
index 80ff4989..0d46300e 100644
--- a/helper/cuckootable.c
+++ b/helper/cuckootable.c
@@ -256,6 +256,7 @@ odph_cuckoo_table_create(
/* initialize free_slots queue */
odp_queue_param_init(&qparam);
qparam.type = ODP_QUEUE_TYPE_PLAIN;
+ qparam.size = capacity;
snprintf(queue_name, sizeof(queue_name), "fs_%s", name);
queue = odp_queue_create(queue_name, &qparam);
-----------------------------------------------------------------------
Summary of changes:
helper/cuckootable.c | 1 +
1 file changed, 1 insertion(+)
hooks/post-receive
--
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "".
The branch, master has been updated
via 5622f689653013b317842386a1aed81dd81fe749 (commit)
via 2e8f024440a1e770068b1e9a9d50770ab166e40d (commit)
via 51e3b8776b78180741fa57a621f9d13b9ae8bbfb (commit)
from d20f3a639d236066cbd76514df5c4faaa0ae17e9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5622f689653013b317842386a1aed81dd81fe749
Author: Bogdan Pricope <bogdan.pricope(a)linaro.org>
Date: Tue Apr 11 14:25:56 2017 +0300
example: generator: flush output messages
Signed-off-by: Bogdan Pricope <bogdan.pricope(a)linaro.org>
Reviewed-and-tested-by: Yi He <yi.he(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c
index 63e3f2b5..ede1cdf2 100644
--- a/example/generator/odp_generator.c
+++ b/example/generator/odp_generator.c
@@ -464,6 +464,7 @@ static int create_pktio(const char *dev, odp_pool_t pool,
" default pktio%02" PRIu64 "\n",
odp_pktio_to_u64(itf->pktio), dev,
odp_pktio_to_u64(itf->pktio));
+ fflush(NULL);
return 0;
}
@@ -773,6 +774,7 @@ static void print_global_stats(int num_workers)
pkts_snd, odp_atomic_load_u64(&counters.tx_drops),
pps_snd, maximum_pps_snd,
pkts_rcv, pps_rcv, maximum_pps_rcv);
+ fflush(NULL);
}
}
@@ -855,6 +857,7 @@ int main(int argc, char *argv[])
printf("num worker threads: %i\n", num_workers);
printf("first CPU: %i\n", odp_cpumask_first(&cpumask));
printf("cpu mask: %s\n", cpumaskstr);
+ fflush(NULL);
/* ping mode need two workers */
if (args->appl.mode == APPL_MODE_PING) {
commit 2e8f024440a1e770068b1e9a9d50770ab166e40d
Author: Bogdan Pricope <bogdan.pricope(a)linaro.org>
Date: Tue Apr 11 14:25:55 2017 +0300
example: generator: fix stop criteria - number of packets sent
Signed-off-by: Bogdan Pricope <bogdan.pricope(a)linaro.org>
Reviewed-and-tested-by: Yi He <yi.he(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c
index 95fb5432..63e3f2b5 100644
--- a/example/generator/odp_generator.c
+++ b/example/generator/odp_generator.c
@@ -513,8 +513,8 @@ static int gen_send_thread(void *arg)
for (;;) {
if (args->appl.number != -1 &&
- odp_atomic_fetch_add_u64(&counters.cnt, 1) >=
- (unsigned int)args->appl.number)
+ odp_atomic_fetch_add_u64(&counters.cnt, pkt_array_size) >=
+ (unsigned int)args->appl.number)
break;
if (args->appl.mode == APPL_MODE_UDP) {
commit 51e3b8776b78180741fa57a621f9d13b9ae8bbfb
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Fri Mar 31 23:39:39 2017 +0300
test: tm: skip tm result under travis run
tm test fails time to time in Travis environment. Because
of we can not control that machine we can not do things like
taskset and core isolation there. So simple run test and ignore
it's result. Threat only segfault as actual error. Linaro CI
will still do full test.
https://bugs.linaro.org/show_bug.cgi?id=2881
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
diff --git a/test/common_plat/validation/api/traffic_mngr/Makefile.am b/test/common_plat/validation/api/traffic_mngr/Makefile.am
index 35e689a0..a012c1b3 100644
--- a/test/common_plat/validation/api/traffic_mngr/Makefile.am
+++ b/test/common_plat/validation/api/traffic_mngr/Makefile.am
@@ -1,10 +1,18 @@
include ../Makefile.inc
+TESTS_ENVIRONMENT += TEST_DIR=${builddir}
+
+TESTSCRIPTS = traffic_mngr.sh
+TEST_EXTENSIONS = .sh
+
+TESTS = $(TESTSCRIPTS)
+
noinst_LTLIBRARIES = libtesttraffic_mngr.la
libtesttraffic_mngr_la_SOURCES = traffic_mngr.c
-test_PROGRAMS = traffic_mngr_main$(EXEEXT)
+bin_PROGRAMS = traffic_mngr_main$(EXEEXT)
dist_traffic_mngr_main_SOURCES = traffic_mngr_main.c
traffic_mngr_main_LDADD = libtesttraffic_mngr.la -lm $(LIBCUNIT_COMMON) $(LIBODP)
-EXTRA_DIST = traffic_mngr.h
+EXTRA_DIST = traffic_mngr.h $(TESTSCRIPTS)
+dist_check_SCRIPTS = $(TESTSCRIPTS)
diff --git a/test/common_plat/validation/api/traffic_mngr/traffic_mngr.sh b/test/common_plat/validation/api/traffic_mngr/traffic_mngr.sh
new file mode 100755
index 00000000..a7d54162
--- /dev/null
+++ b/test/common_plat/validation/api/traffic_mngr/traffic_mngr.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# Copyright (c) 2017, Linaro Limited
+# All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+# directory where test binaries have been built
+TEST_DIR="${TEST_DIR:-$(dirname $0)}"
+
+# exit codes expected by automake for skipped tests
+TEST_SKIPPED=77
+
+${TEST_DIR}/traffic_mngr_main${EXEEXT}
+ret=$?
+
+SIGSEGV=139
+
+if [ "${TRAVIS}" = "true" ] && [ $ret -ne 0 ] && [ $ret -ne ${SIGSEGV} ]; then
+ echo "SKIP: skip due to not isolated environment"
+ exit ${TEST_SKIPPED}
+fi
+
+exit $ret
-----------------------------------------------------------------------
Summary of changes:
example/generator/odp_generator.c | 7 ++++--
.../validation/api/traffic_mngr/Makefile.am | 12 +++++++++--
.../validation/api/traffic_mngr/traffic_mngr.sh | 25 ++++++++++++++++++++++
3 files changed, 40 insertions(+), 4 deletions(-)
create mode 100755 test/common_plat/validation/api/traffic_mngr/traffic_mngr.sh
hooks/post-receive
--
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "".
The branch, master has been updated
via d20f3a639d236066cbd76514df5c4faaa0ae17e9 (commit)
from 8eba3e76f32bb2d17b88ba13f633606fef61efe8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d20f3a639d236066cbd76514df5c4faaa0ae17e9
Author: Brian Brooks <brian.brooks(a)arm.com>
Date: Tue Apr 4 13:47:59 2017 -0500
test: odp_scheduling: handle dequeueing from a concurrent queue
Signed-off-by: Ola Liljedahl <ola.liljedahl(a)arm.com>
Reviewed-by: Brian Brooks <brian.brooks(a)arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli(a)arm.com>
Reviewed-by: Kevin Wang <kevin.wang(a)arm.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/test/common_plat/performance/odp_scheduling.c b/test/common_plat/performance/odp_scheduling.c
index c74a0713..38e76257 100644
--- a/test/common_plat/performance/odp_scheduling.c
+++ b/test/common_plat/performance/odp_scheduling.c
@@ -273,7 +273,7 @@ static int test_plain_queue(int thr, test_globals_t *globals)
test_message_t *t_msg;
odp_queue_t queue;
uint64_t c1, c2, cycles;
- int i;
+ int i, j;
/* Alloc test message */
buf = odp_buffer_alloc(globals->pool);
@@ -307,7 +307,15 @@ static int test_plain_queue(int thr, test_globals_t *globals)
return -1;
}
- ev = odp_queue_deq(queue);
+ /* When enqueue and dequeue are decoupled (e.g. not using a
+ * common lock), an enqueued event may not be immediately
+ * visible to dequeue. So we just try again for a while. */
+ for (j = 0; j < 100; j++) {
+ ev = odp_queue_deq(queue);
+ if (ev != ODP_EVENT_INVALID)
+ break;
+ odp_cpu_pause();
+ }
buf = odp_buffer_from_event(ev);
-----------------------------------------------------------------------
Summary of changes:
test/common_plat/performance/odp_scheduling.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
hooks/post-receive
--