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 5930362eaf96ea150987c4e4e69b17f09a8a8f3a (commit)
from 810bc2ee9b5285e1692a6b0c7457ca503f381e1e (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 5930362eaf96ea150987c4e4e69b17f09a8a8f3a
Author: Matias Elo <matias.elo(a)nokia.com>
Date: Fri Nov 1 15:22:59 2019 +0200
linux-gen: shm: improve memory allocation error messages
Include page type (normal/huge) and filename in error messages.
Signed-off-by: Matias Elo <matias.elo(a)nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen(a)nokia.com>
diff --git a/platform/linux-generic/odp_ishm.c b/platform/linux-generic/odp_ishm.c
index cd483d146..41f3979bf 100644
--- a/platform/linux-generic/odp_ishm.c
+++ b/platform/linux-generic/odp_ishm.c
@@ -681,8 +681,8 @@ static int create_file(int block_index, huge_flag_t huge, uint64_t len,
fd = open(filename, oflag, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
if (fd < 0) {
if (huge != HUGE)
- ODP_ERR("open failed for %s: %s.\n",
- filename, strerror(errno));
+ ODP_ERR("Normal page open failed: file=%s, "
+ "err=\"%s\"\n", filename, strerror(errno));
return -1;
}
@@ -694,8 +694,9 @@ static int create_file(int block_index, huge_flag_t huge, uint64_t len,
}
if (ret == -1) {
- ODP_ERR("memory allocation failed: fd=%d, err=%s.\n",
- fd, strerror(errno));
+ ODP_ERR("%s memory allocation failed: fd=%d, file=%s, "
+ "err=\"%s\"\n", (huge == HUGE) ? "Huge page" :
+ "Normal page", fd, filename, strerror(errno));
close(fd);
unlink(filename);
return -1;
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/odp_ishm.c | 9 +++++----
1 file changed, 5 insertions(+), 4 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 dda80b5e5e143ff05ed0f8b0ce0f502be71eaa8b (commit)
from 50c2f41996707fb112feff9f044feddbbe762b78 (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 dda80b5e5e143ff05ed0f8b0ce0f502be71eaa8b
Author: Matias Elo <matias.elo(a)nokia.com>
Date: Fri Oct 18 10:24:05 2019 +0300
configure: disable static test applications without static odp lib
Trying to build static test applications without static ODP library would
fail.
Signed-off-by: Matias Elo <matias.elo(a)nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen(a)nokia.com>
diff --git a/configure.ac b/configure.ac
index 76e736c50..81123cbc6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -294,6 +294,9 @@ AC_ARG_ENABLE([static-applications],
[disable static linking of examples and tests]
[ with ODP])], [],
[enable_static_applications=yes])
+AS_IF([test "x$enable_static" != "xno" -a "x$enable_static_applications" != "xno"],
+ [enable_static_applications=yes], [enable_static_applications=no])
+
AM_CONDITIONAL([STATIC_APPS], [test "x$enable_static_applications" != "xno"])
if test "x$DPDK_SHARED" = "xyes" -a "x$enable_static_applications" != "xno" ;
then
-----------------------------------------------------------------------
Summary of changes:
configure.ac | 3 +++
1 file changed, 3 insertions(+)
hooks/post-receive
--