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 e01d879bd344f89d25568d93531d457e87e80f6f (commit)
from b35abec0dbb6fbbe747e1c66223d92fc921279bb (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 e01d879bd344f89d25568d93531d457e87e80f6f
Author: Xuelin Shi <forrest.shi(a)linaro.org>
Date: Mon Oct 24 15:02:19 2016 +0800
linux-generic: fix ISO C compiling issue with -Werror=pedantic
ISO C does not allow extra ‘;’ outside of a function.
Signed-off-by: Xuelin Shi <forrest.shi(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/platform/linux-generic/include/odp/api/plat/atomic_types.h b/platform/linux-generic/include/odp/api/plat/atomic_types.h
index 3bb2bbd..33a0565 100644
--- a/platform/linux-generic/include/odp/api/plat/atomic_types.h
+++ b/platform/linux-generic/include/odp/api/plat/atomic_types.h
@@ -32,7 +32,7 @@ struct odp_atomic_u64_s {
* data types. We use a spin lock to ensure atomicity. */
char lock; /**< Spin lock (if needed) used to ensure atomic access */
#endif
-} ODP_ALIGNED(sizeof(uint64_t)); /* Enforce alignement! */;
+} ODP_ALIGNED(sizeof(uint64_t)); /* Enforce alignement! */
/**
* @internal
@@ -40,7 +40,7 @@ struct odp_atomic_u64_s {
*/
struct odp_atomic_u32_s {
uint32_t v; /**< Actual storage for the atomic variable */
-} ODP_ALIGNED(sizeof(uint32_t)); /* Enforce alignement! */;
+} ODP_ALIGNED(sizeof(uint32_t)); /* Enforce alignement! */
#if __GCC_ATOMIC_LLONG_LOCK_FREE < 2
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/include/odp/api/plat/atomic_types.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 eebd6b0bb6cc1f724d8f78c1c419031004adc3e4 (commit)
from 44df10d424bcd3c74b1d662b40e74b8fdbd031a4 (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 eebd6b0bb6cc1f724d8f78c1c419031004adc3e4
Author: Mike Holmes <mike.holmes(a)linaro.org>
Date: Fri Oct 21 14:40:17 2016 -0400
configure: the version cannot use a script
Use of a script in the autotools breaks github CI
Define the API version in configure and reuse it in the code
Benefits:
removes dependence on scripts to build
removes scripts and the make file from odp/scripts
removes generated .scmversion file
places api versioning right next to lib versioning in the configure.ac
allows github to auto build odp repos
Signed-off-by: Mike Holmes <mike.holmes(a)linaro.org>
Reviewed-by: Brian Brooks <brian.brooks(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/.gitignore b/.gitignore
index d4e7d02..fbc0eab 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,7 +12,6 @@
.deps/
.dirstamp
.libs/
-.scmversion
CUnit-Memory-Dump.xml
ID
Makefile
diff --git a/Makefile.am b/Makefile.am
index 625748a..2a9a658 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,9 +11,8 @@ SUBDIRS = @platform_with_platform@ \
test \
helper/test \
doc \
- example \
- scripts
+ example
@DX_RULES@
-EXTRA_DIST = bootstrap $(DX_CONFIG) CHANGELOG config/README .scmversion
+EXTRA_DIST = bootstrap $(DX_CONFIG) CHANGELOG config/README
diff --git a/configure.ac b/configure.ac
index f081c51..ab19084 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,23 @@
AC_PREREQ([2.5])
-AC_INIT([OpenDataPlane], m4_esyscmd(./scripts/git_hash.sh .), [lng-odp(a)lists.linaro.org])
+##########################################################################
+# Set correct API version
+##########################################################################
+m4_define([odpapi_generation_version], [1])
+m4_define([odpapi_major_version], [11])
+m4_define([odpapi_minor_version], [0])
+m4_define([odpapi_point_version], [0])
+m4_define([odpapi_version],
+ [odpapi_generation_version.odpapi_major_version.odpapi_minor_version.odpapi_point_version])
+AC_INIT([OpenDataPlane],[odpapi_version],[lng-odp(a)lists.linaro.org])
+
+ODP_VERSION_API_GENERATION=odpapi_generation_version
+AC_SUBST(ODP_VERSION_API_GENERATION)
+ODP_VERSION_API_MAJOR=odpapi_major_version
+AC_SUBST(ODP_VERSION_API_MAJOR)
+ODP_VERSION_API_MINOR=odpapi_minor_version
+AC_SUBST(ODP_VERSION_API_MINOR)
+AC_CONFIG_FILES([include/odp/api/spec/version.h])
+
AM_INIT_AUTOMAKE([1.9 tar-pax subdir-objects])
AC_CONFIG_SRCDIR([helper/config.h.in])
AM_CONFIG_HEADER([helper/config.h])
@@ -271,7 +289,6 @@ AC_CONFIG_FILES([Makefile
helper/test/Makefile
pkgconfig/libodp-linux.pc
pkgconfig/libodphelper-linux.pc
- scripts/Makefile
])
AC_SEARCH_LIBS([timer_create],[rt posix4])
diff --git a/include/odp/api/spec/.gitignore b/include/odp/api/spec/.gitignore
new file mode 100644
index 0000000..6702033
--- /dev/null
+++ b/include/odp/api/spec/.gitignore
@@ -0,0 +1 @@
+version.h
diff --git a/include/odp/api/spec/version.h b/include/odp/api/spec/version.h.in
similarity index 93%
rename from include/odp/api/spec/version.h
rename to include/odp/api/spec/version.h.in
index aa3f3ab..4b16dcc 100644
--- a/include/odp/api/spec/version.h
+++ b/include/odp/api/spec/version.h.in
@@ -37,7 +37,7 @@ extern "C" {
* very significant changes to the API. APIs with different
* versions are likely not backward compatible.
*/
-#define ODP_VERSION_API_GENERATION 1
+#define ODP_VERSION_API_GENERATION @ODP_VERSION_API_GENERATION@
/**
* ODP API major version
@@ -45,7 +45,7 @@ extern "C" {
* Introduction of major new features or changes. APIs with different major
* versions are likely not backward compatible.
*/
-#define ODP_VERSION_API_MAJOR 10
+#define ODP_VERSION_API_MAJOR @ODP_VERSION_API_MAJOR@
/**
* ODP API minor version
@@ -54,7 +54,7 @@ extern "C" {
* to the API. For an API with common generation and major version, but with
* different minor numbers the two versions are backward compatible.
*/
-#define ODP_VERSION_API_MINOR 1
+#define ODP_VERSION_API_MINOR @ODP_VERSION_API_MINOR@
/**
* ODP API version string
diff --git a/platform/Makefile.inc b/platform/Makefile.inc
index a44f88f..432d1fd 100644
--- a/platform/Makefile.inc
+++ b/platform/Makefile.inc
@@ -10,8 +10,7 @@ lib_LTLIBRARIES = $(LIB)/libodp-linux.la
AM_LDFLAGS += -version-number '$(ODP_LIBSO_VERSION)'
-GIT_DESC = `$(top_srcdir)/scripts/get_impl_str.sh $(top_srcdir)`
-AM_CFLAGS += "-DGIT_HASH=$(GIT_DESC)"
+AM_CFLAGS += "-DGIT_HASH=$(VERSION)"
AM_CFLAGS += $(VISIBILITY_CFLAGS)
#The implementation will need to retain the deprecated implementation
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
deleted file mode 100644
index 189b3ef..0000000
--- a/scripts/Makefile.am
+++ /dev/null
@@ -1 +0,0 @@
-EXTRA_DIST = get_impl_str.sh git_hash.sh
diff --git a/scripts/get_impl_str.sh b/scripts/get_impl_str.sh
deleted file mode 100755
index d765a53..0000000
--- a/scripts/get_impl_str.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/bash
-
-if [ -z ${1} ]; then
- echo "should be called with a path"
- exit
-fi
-ROOTDIR=${1}
-
-CUSTOM_STR=${CUSTOM_STR:-https://git.linaro.org/lng/odp.git}
-
-echo -n "'${CUSTOM_STR}' ($(cat ${ROOTDIR}/.scmversion))"
diff --git a/scripts/git_hash.sh b/scripts/git_hash.sh
deleted file mode 100755
index 336eb01..0000000
--- a/scripts/git_hash.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-
-if [ -z ${1} ]; then
- echo "should be called with a path"
- exit
-fi
-ROOTDIR=${1}
-
-if [ -d ${ROOTDIR}/.git ]; then
- hash=$(git --git-dir=${ROOTDIR}/.git describe --match 'v[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*'\
- | tr -d "\n")
- if [[ $(git --git-dir=${ROOTDIR}/.git diff --shortstat 2> /dev/null \
- | tail -n1) != "" ]]; then
- dirty=.dirty
- fi
-
- echo -n "${hash}${dirty}">${ROOTDIR}/.scmversion
-
- sed -i "s|-|.git|" ${ROOTDIR}/.scmversion
- sed -i "s|-|.|g" ${ROOTDIR}/.scmversion
- sed -i "s|^v||g" ${ROOTDIR}/.scmversion
-elif [ ! -d ${ROOTDIR}/.git -a ! -f ${ROOTDIR}/.scmversion ]; then
- echo -n "File ROOTDIR/.scmversion not found, "
- echo "and not inside a git repository"
- echo "Bailing out! Not recoverable!"
- exit 1
-fi
-
-cat ${ROOTDIR}/.scmversion
-----------------------------------------------------------------------
Summary of changes:
.gitignore | 1 -
Makefile.am | 5 ++--
configure.ac | 21 +++++++++++++++--
include/odp/api/spec/.gitignore | 1 +
include/odp/api/spec/{version.h => version.h.in} | 6 ++---
platform/Makefile.inc | 3 +--
scripts/Makefile.am | 1 -
scripts/get_impl_str.sh | 11 ---------
scripts/git_hash.sh | 29 ------------------------
9 files changed, 26 insertions(+), 52 deletions(-)
create mode 100644 include/odp/api/spec/.gitignore
rename include/odp/api/spec/{version.h => version.h.in} (93%)
delete mode 100644 scripts/Makefile.am
delete mode 100755 scripts/get_impl_str.sh
delete mode 100755 scripts/git_hash.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 e89d5d15852b9a64e3aaf115b59c87d07092717d (commit)
from aaca222d10a3829e4c982a1b4842b0be11860b7d (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 e89d5d15852b9a64e3aaf115b59c87d07092717d
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Fri Oct 14 14:51:25 2016 +0300
test: skip pktio_perf tests on 1 and 2 cpus machines
Make check should skip the test instead of failing it.
Test splits RX and TX cores for packet processing. Core
0 bind to control thread. So running machine should have
at least 2 worker threads which is not enough on 1 and 2
cpus machine. CUnit uses special value 77 to mark test as
SKIPPED and not fail on it.
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Reviewed-by: Mike Holmes <mike.holmes(a)linaro.org>
diff --git a/test/common_plat/performance/odp_pktio_perf.c b/test/common_plat/performance/odp_pktio_perf.c
index f041b13..483f067 100644
--- a/test/common_plat/performance/odp_pktio_perf.c
+++ b/test/common_plat/performance/odp_pktio_perf.c
@@ -34,6 +34,8 @@
#include <inttypes.h>
#include <test_debug.h>
+#define TEST_SKIP 77
+
#define PKT_BUF_NUM 8192
#define MAX_NUM_IFACES 2
#define TEST_HDR_MAGIC 0x92749451
@@ -558,7 +560,7 @@ static int setup_txrx_masks(odp_cpumask_t *thd_mask_tx,
gbl_args->args.cpu_count);
if (num_workers < 2) {
LOG_ERR("Need at least two cores\n");
- return -1;
+ return TEST_SKIP;
}
if (gbl_args->args.num_tx_workers) {
@@ -659,7 +661,7 @@ static int run_test_single(odp_cpumask_t *thd_mask_tx,
static int run_test(void)
{
- int ret = 1;
+ int ret;
int i;
odp_cpumask_t txmask, rxmask;
test_status_t status = {
@@ -669,8 +671,9 @@ static int run_test(void)
.warmup = 1,
};
- if (setup_txrx_masks(&txmask, &rxmask) != 0)
- return -1;
+ ret = setup_txrx_masks(&txmask, &rxmask);
+ if (ret)
+ return ret;
printf("Starting test with params:\n");
printf("\tTransmit workers: \t%d\n", odp_cpumask_count(&txmask));
@@ -691,8 +694,11 @@ static int run_test(void)
run_test_single(&txmask, &rxmask, &status);
status.warmup = 0;
- while (ret > 0)
+ while (1) {
ret = run_test_single(&txmask, &rxmask, &status);
+ if (ret <= 0)
+ break;
+ }
return ret;
}
-----------------------------------------------------------------------
Summary of changes:
test/common_plat/performance/odp_pktio_perf.c | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
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 28d95ca27265aeaf95f06bcc7b937263f96fd826 (commit)
from 6b806e0dc32f28e7c8a15ef4fbb3a3fa215bb0f3 (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 28d95ca27265aeaf95f06bcc7b937263f96fd826
Author: Christophe Milard <christophe.milard(a)linaro.org>
Date: Wed Oct 19 16:30:13 2016 +0200
test: drv: shm: decrease test memory requirement
The memory consumption is proporsional to the number of ODP threads
available. The test failed on systems with large number of CPU, due
to outage ot pre-allocaed address space. This patch shrinks the test
requirement.
Signed-off-by: Christophe Milard <christophe.milard(a)linaro.org>
Reviewed-and-tested-by: Matias Elo <matias.elo(a)nokia.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/test/common_plat/validation/drv/drvshmem/drvshmem.c b/test/common_plat/validation/drv/drvshmem/drvshmem.c
index 5e6d2e5..559c55d 100644
--- a/test/common_plat/validation/drv/drvshmem/drvshmem.c
+++ b/test/common_plat/validation/drv/drvshmem/drvshmem.c
@@ -16,7 +16,7 @@
#define TEST_SHARE_BAR (0xf0f0f0f)
#define SMALL_MEM 10
#define MEDIUM_MEM 4096
-#define BIG_MEM 16777216
+#define BIG_MEM 65536
#define STRESS_SIZE 32 /* power of 2 and <=256 */
#define STRESS_RANDOM_SZ 5
#define STRESS_ITERATION 5000
-----------------------------------------------------------------------
Summary of changes:
test/common_plat/validation/drv/drvshmem/drvshmem.c | 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, master has been updated
via aaca222d10a3829e4c982a1b4842b0be11860b7d (commit)
via 25f82fc54a78100098eae5b22719571b6991c955 (commit)
from ce4fec46c1f6821afb5d0ef9c3099cd094153fd9 (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 aaca222d10a3829e4c982a1b4842b0be11860b7d
Author: Brian Brooks <brian.brooks(a)linaro.org>
Date: Mon Jul 18 13:16:46 2016 -0400
timer: add missing atomic decrement
Signed-off-by: Brian Brooks <brian.brooks(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/platform/linux-generic/odp_timer.c b/platform/linux-generic/odp_timer.c
index b26ac6b..ee4c4c0 100644
--- a/platform/linux-generic/odp_timer.c
+++ b/platform/linux-generic/odp_timer.c
@@ -316,6 +316,8 @@ static void odp_timer_pool_del(odp_timer_pool *tp)
int rc = odp_shm_free(tp->shm);
if (rc != 0)
ODP_ABORT("Failed to free shared memory (%d)\n", rc);
+
+ odp_atomic_sub_u32(&num_timer_pools, 1);
}
static inline odp_timer_t timer_alloc(odp_timer_pool *tp,
commit 25f82fc54a78100098eae5b22719571b6991c955
Author: Brian Brooks <brian.brooks(a)linaro.org>
Date: Mon Jul 18 13:16:45 2016 -0400
example: odp_timer_simple: decrease timer pool resolution
POSIX timer overruns are experienced on Linux generic platforms
when resolution is less than one millisecond. Decrease resolution
from 10 microseconds to 10 milliseconds so this example program
works as intended on generic Linux platforms.
Signed-off-by: Brian Brooks <brian.brooks(a)linaro.org>
Reviewed-by: Kevin Wang <kevin.wang(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/example/timer/odp_timer_simple.c b/example/timer/odp_timer_simple.c
index 98c08ce..70804bb 100644
--- a/example/timer/odp_timer_simple.c
+++ b/example/timer/odp_timer_simple.c
@@ -61,8 +61,8 @@ int main(int argc ODP_UNUSED, char *argv[] ODP_UNUSED)
/*
* Create pool of timeouts
*/
- tparams.res_ns = 10 * ODP_TIME_USEC_IN_NS;
- tparams.min_tmo = 10 * ODP_TIME_USEC_IN_NS;
+ tparams.res_ns = 10 * ODP_TIME_MSEC_IN_NS;
+ tparams.min_tmo = 10 * ODP_TIME_MSEC_IN_NS;
tparams.max_tmo = 1 * ODP_TIME_SEC_IN_NS;
tparams.num_timers = 1; /* One timer per worker */
tparams.priv = 0; /* Shared */
-----------------------------------------------------------------------
Summary of changes:
example/timer/odp_timer_simple.c | 4 ++--
platform/linux-generic/odp_timer.c | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
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 6b806e0dc32f28e7c8a15ef4fbb3a3fa215bb0f3 (commit)
via ce4fec46c1f6821afb5d0ef9c3099cd094153fd9 (commit)
via 7af8b884256bbab5070996d7897216ae77b758fe (commit)
via f73250fc93346412b526c97de3554ddc9186d7c0 (commit)
via 79833e86ea0be9e1f337dd4baff096bce7067b51 (commit)
via bf9380296de8cd62c0a8569c1fc775869b8501ab (commit)
via f83b71e6a9c685227615455df1f9e4fefeff19ae (commit)
via a8e5a8f6853ddc998430d112c22994928ddb4070 (commit)
via 09abf90268a0a5a2daf7c7e0ae37a2d7c35e87c5 (commit)
via 88df2613cb91022233f9ec973f6ef338eb060f17 (commit)
via bc65897481d8ce89a55257b22bf93d05abf74f70 (commit)
via e858d688c3ad3ce0d0b3ea22539cac8e6ec844b7 (commit)
via 93718d4ead55bfbaa8e564c24d1f3b76e60235ce (commit)
via 582065e74e2375b5c81ac8fcec9eb02f541f42ff (commit)
via 5f4f2e0da6e04637b6b4bd7aa6bb4d4d32680525 (commit)
via 92336dd2808af4826371d467588dcb81daafe4cf (commit)
via 7bb62b522a5f89d6d19a4c77254222b1c07ab44b (commit)
via 566492d067083e870548c78a89f8c65b02ecde89 (commit)
from cf6425f16f8ee554815f6697a231e398ddb0546c (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 6b806e0dc32f28e7c8a15ef4fbb3a3fa215bb0f3
Merge: cf6425f ce4fec4
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Fri Oct 21 11:25:41 2016 +0300
Merge branch 'master' into api-next
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --cc platform/linux-generic/include/odp_config_internal.h
index 7d5dbeb,b7ff610..e1bab20
--- a/platform/linux-generic/include/odp_config_internal.h
+++ b/platform/linux-generic/include/odp_config_internal.h
@@@ -111,21 -111,13 +111,28 @@@ extern "C"
#define ODP_CONFIG_SHM_BLOCKS (ODP_CONFIG_POOLS + 48)
/*
- * Maximum event burst size
+ * Size of the virtual address space pre-reserver for ISHM
+ *
+ * This is just virtual space preallocation size, not memory allocation.
+ * This address space is used by ISHM to map things at a common address in
+ * all ODP threads (when the _ODP_ISHM_SINGLE_VA flag is used).
+ * In bytes.
+ */
+#define ODP_CONFIG_ISHM_VA_PREALLOC_SZ (536870912L)
+
+/* Maximum number of shared memory blocks available on the driver interface.
+ *
+ * This the the number of separate SHM areas that can be reserved concurrently
+ */
+#define ODPDRV_CONFIG_SHM_BLOCKS 48
+
++/* Maximum event burst size
+ *
+ * This controls the burst size on various enqueue, dequeue, etc calls. Large
+ * burst size improves throughput, but may degrade QoS (increase latency).
+ */
+ #define CONFIG_BURST_SIZE 16
+
#ifdef __cplusplus
}
#endif
-----------------------------------------------------------------------
Summary of changes:
configure.ac | 26 +-
platform/linux-generic/.gitignore | 2 +-
platform/linux-generic/Makefile.am | 3 +-
platform/linux-generic/include/odp/api/atomic.h | 4 +-
platform/linux-generic/include/odp/api/byteorder.h | 4 +-
.../api/plat/{inlines.h.in => static_inline.h.in} | 19 +-
.../odp/api/plat/ticketlock_inlines.h} | 56 +-
platform/linux-generic/include/odp/api/std_clib.h | 4 +-
platform/linux-generic/include/odp/api/sync.h | 4 +-
.../linux-generic/include/odp_buffer_internal.h | 7 +
.../linux-generic/include/odp_config_internal.h | 7 +
platform/linux-generic/include/odp_internal.h | 1 -
.../linux-generic/include/odp_packet_io_queue.h | 3 +-
platform/linux-generic/include/odp_pool_internal.h | 24 +-
.../linux-generic/include/odp_queue_internal.h | 15 +-
platform/linux-generic/include/odp_schedule_if.h | 3 -
.../linux-generic/include/odp_schedule_internal.h | 2 +-
platform/linux-generic/m4/configure.m4 | 2 +-
platform/linux-generic/odp_atomic.c | 2 +-
platform/linux-generic/odp_byteorder.c | 2 +-
platform/linux-generic/odp_init.c | 7 +-
platform/linux-generic/odp_queue.c | 271 ++++----
platform/linux-generic/odp_schedule.c | 1 -
platform/linux-generic/odp_schedule_ordered.c | 37 +-
platform/linux-generic/odp_schedule_sp.c | 12 -
platform/linux-generic/odp_std_clib.c | 2 +-
platform/linux-generic/odp_sync.c | 2 +-
platform/linux-generic/odp_ticketlock.c | 68 +-
platform/linux-generic/odp_timer.c | 2 +-
platform/linux-generic/odp_traffic_mngr.c | 3 +-
platform/linux-generic/pktio/ipc.c | 7 +-
test/common_plat/performance/.gitignore | 1 +
test/common_plat/performance/Makefile.am | 5 +
test/common_plat/performance/odp_l2fwd_run.sh | 4 +-
test/common_plat/performance/odp_sched_latency.c | 767 +++++++++++++++++++++
..._scheduling_run.sh => odp_sched_latency_run.sh} | 11 +-
36 files changed, 1055 insertions(+), 335 deletions(-)
rename platform/linux-generic/include/odp/api/plat/{inlines.h.in => static_inline.h.in} (58%)
copy platform/linux-generic/{odp_ticketlock.c => include/odp/api/plat/ticketlock_inlines.h} (71%)
create mode 100644 test/common_plat/performance/odp_sched_latency.c
copy test/common_plat/performance/{odp_scheduling_run.sh => odp_sched_latency_run.sh} (51%)
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 ce4fec46c1f6821afb5d0ef9c3099cd094153fd9 (commit)
from 7af8b884256bbab5070996d7897216ae77b758fe (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 ce4fec46c1f6821afb5d0ef9c3099cd094153fd9
Author: Brian Brooks <brian.brooks(a)linaro.org>
Date: Thu Oct 13 16:18:44 2016 -0500
timers: fix off by one tick in timer expiration processing
A timer pool's tick starts at t0 (zero). Once the first period has passed,
the timer pool is scanned for any timers that have expired since t0 + 1.
Current code does an atomic fetch increment on the tick, but uses the
previous tick during timer expiration processing. What is needed is the
previous tick + 1.
The observable effect without this patch is that timers are expired one tick
period (timer resolution) later than they should be.
Fixes https://bugs.linaro.org/show_bug.cgi?id=2552
Signed-off-by: Brian Brooks <brian.brooks(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/platform/linux-generic/odp_timer.c b/platform/linux-generic/odp_timer.c
index becea9d..b26ac6b 100644
--- a/platform/linux-generic/odp_timer.c
+++ b/platform/linux-generic/odp_timer.c
@@ -691,7 +691,7 @@ static void timer_notify(odp_timer_pool *tp)
prev_tick = odp_atomic_fetch_inc_u64(&tp->cur_tick);
/* Scan timer array, looking for timers to expire */
- (void)odp_timer_pool_expire(tp, prev_tick);
+ (void)odp_timer_pool_expire(tp, prev_tick + 1);
/* Else skip scan of timers. cur_tick was updated and next itimer
* invocation will process older expiration ticks as well */
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/odp_timer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--