* [Buildroot] [PATCH next 1/4] lttng-tools: bump version to 2.9.0
@ 2016-11-30 17:04 Vicente Olivert Riera
2016-11-30 17:04 ` [Buildroot] [PATCH next 2/4] lttng-modules: " Vicente Olivert Riera
` (4 more replies)
0 siblings, 5 replies; 8+ messages in thread
From: Vicente Olivert Riera @ 2016-11-30 17:04 UTC (permalink / raw)
To: buildroot
Drop sha256 hash. The combination of md5 and sha1 hashes is enough.
Remove upstream patches:
- 0001-Fix-snapshot-del-output-with-name-on-musl.patch
https://github.com/lttng/lttng-tools/commit/07f5023712313d73ab3feac62390a2d50457b7aa
- 0002-Fix-strerror_r-behavior-is-glibc-specific.patch
https://github.com/lttng/lttng-tools/commit/b6dacfe27a91af50a1f81a2a7eadf4f34ca75769
- 0003-Set-thread-stack-size-to-ulimit-soft-value.patch
https://github.com/lttng/lttng-tools/commit/1a1a34b40ab10a195633b1ed5e2e9b42fdae0a78
Release notes:
https://lists.lttng.org/pipermail/lttng-dev/2016-November/026763.html
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
...Fix-snapshot-del-output-with-name-on-musl.patch | 32 --
...Fix-strerror_r-behavior-is-glibc-specific.patch | 30 --
...et-thread-stack-size-to-ulimit-soft-value.patch | 431 ---------------------
package/lttng-tools/lttng-tools.hash | 9 +-
package/lttng-tools/lttng-tools.mk | 2 +-
5 files changed, 4 insertions(+), 500 deletions(-)
delete mode 100644 package/lttng-tools/0001-Fix-snapshot-del-output-with-name-on-musl.patch
delete mode 100644 package/lttng-tools/0002-Fix-strerror_r-behavior-is-glibc-specific.patch
delete mode 100644 package/lttng-tools/0003-Set-thread-stack-size-to-ulimit-soft-value.patch
diff --git a/package/lttng-tools/0001-Fix-snapshot-del-output-with-name-on-musl.patch b/package/lttng-tools/0001-Fix-snapshot-del-output-with-name-on-musl.patch
deleted file mode 100644
index 102a02b..0000000
--- a/package/lttng-tools/0001-Fix-snapshot-del-output-with-name-on-musl.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From: mjeanson at efficios.com Michael Jeanson
-Date: Wed, 15 Jun 2016 17:18:02 -0400
-Subject: [lttng-dev] [PATCH] Fix: snapshot del-output with name on musl
-
-Some implementations of strtol() like the one in musl will
-return EINVAL in perror when no valid number was found in
-the string.
-
-Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
-[Philippe: grabbed from the mailing list:
- https://lists.lttng.org/pipermail/lttng-dev/2016-June/026192.html
- and adapted to 2.8.2.]
-Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
----
- src/bin/lttng/commands/snapshot.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/bin/lttng/commands/snapshot.c b/src/bin/lttng/commands/snapshot.c
-index d948226..00aa5b7 100644
---- a/src/bin/lttng/commands/snapshot.c
-+++ b/src/bin/lttng/commands/snapshot.c
-@@ -447,7 +447,7 @@ static int cmd_del_output(int argc, const char **argv)
-
- errno = 0;
- id = strtol(argv[1], &name, 10);
-- if (id == 0 && errno == 0) {
-+ if (id == 0 && (errno == 0 || errno == EINVAL)) {
- if (lttng_opt_mi) {
- ret = mi_del_output(UINT32_MAX, name);
- } else {
---
-2.7.4
diff --git a/package/lttng-tools/0002-Fix-strerror_r-behavior-is-glibc-specific.patch b/package/lttng-tools/0002-Fix-strerror_r-behavior-is-glibc-specific.patch
deleted file mode 100644
index e9ba74f..0000000
--- a/package/lttng-tools/0002-Fix-strerror_r-behavior-is-glibc-specific.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From fc743b22fc26eab9f9dbf48e4505ed2394924bba Mon Sep 17 00:00:00 2001
-From: Michael Jeanson <mjeanson@efficios.com>
-Date: Mon, 13 Jun 2016 18:44:17 -0400
-Subject: [PATCH lttng-tools] Fix: strerror_r behavior is glibc specific
-
-Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
-[Philippe: grabbed from the mailing list:
- https://lists.lttng.org/pipermail/lttng-dev/2016-June/026194.html
-]
-Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
----
- src/common/error.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/common/error.h b/src/common/error.h
-index 0fbd3a2..e8c811e 100644
---- a/src/common/error.h
-+++ b/src/common/error.h
-@@ -198,7 +198,7 @@ static inline void __lttng_print_check_abort(enum lttng_error_level type)
-
- #define _PERROR(fmt, args...) _ERRMSG("PERROR", PRINT_ERR, fmt, ## args)
-
--#if !defined(__linux__) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE))
-+#if !defined(__GLIBC__) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE))
-
- /*
- * Version using XSI strerror_r.
---
-2.7.4
-
diff --git a/package/lttng-tools/0003-Set-thread-stack-size-to-ulimit-soft-value.patch b/package/lttng-tools/0003-Set-thread-stack-size-to-ulimit-soft-value.patch
deleted file mode 100644
index c0dd067..0000000
--- a/package/lttng-tools/0003-Set-thread-stack-size-to-ulimit-soft-value.patch
+++ /dev/null
@@ -1,431 +0,0 @@
-From 451f4d875537c073a966d6ccfb2fe08a497fbd7b Mon Sep 17 00:00:00 2001
-From: Michael Jeanson <mjeanson@efficios.com>
-Date: Wed, 15 Jun 2016 11:01:08 -0500
-Subject: [PATCH] Set thread stack size to ulimit soft value
-
-Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
-[Philippe: grabbed from the mailing list:
- https://lists.lttng.org/pipermail/lttng-dev/2016-June/026196.html
-]
-Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
----
- src/bin/lttng-consumerd/lttng-consumerd.c | 17 ++++++----
- src/bin/lttng-relayd/live.c | 10 +++---
- src/bin/lttng-relayd/live.h | 2 +-
- src/bin/lttng-relayd/main.c | 14 +++++---
- src/bin/lttng-sessiond/main.c | 27 +++++++++------
- src/common/utils.c | 56 +++++++++++++++++++++++++++++++
- src/common/utils.h | 1 +
- 7 files changed, 99 insertions(+), 28 deletions(-)
-
-diff --git a/src/bin/lttng-consumerd/lttng-consumerd.c b/src/bin/lttng-consumerd/lttng-consumerd.c
-index 00660fc..2f1d01c 100644
---- a/src/bin/lttng-consumerd/lttng-consumerd.c
-+++ b/src/bin/lttng-consumerd/lttng-consumerd.c
-@@ -57,6 +57,8 @@
- static pthread_t channel_thread, data_thread, metadata_thread,
- sessiond_thread, metadata_timer_thread, health_thread;
-
-+static pthread_attr_t *tattr;
-+
- /* to count the number of times the user pressed ctrl+c */
- static int sigintcount = 0;
-
-@@ -351,6 +353,9 @@ int main(int argc, char **argv)
- }
- }
-
-+ /* Get stacksize limit */
-+ tattr = get_pthread_attr_stacksize();
-+
- /*
- * Starting from here, we can create threads. This needs to be after
- * lttng_daemonize due to RCU.
-@@ -498,7 +503,7 @@ int main(int argc, char **argv)
- }
-
- /* Create thread to manage the client socket */
-- ret = pthread_create(&health_thread, NULL,
-+ ret = pthread_create(&health_thread, tattr,
- thread_manage_health, (void *) NULL);
- if (ret) {
- errno = ret;
-@@ -517,7 +522,7 @@ int main(int argc, char **argv)
- cmm_smp_mb(); /* Read ready before following operations */
-
- /* Create thread to manage channels */
-- ret = pthread_create(&channel_thread, NULL,
-+ ret = pthread_create(&channel_thread, tattr,
- consumer_thread_channel_poll,
- (void *) ctx);
- if (ret) {
-@@ -528,7 +533,7 @@ int main(int argc, char **argv)
- }
-
- /* Create thread to manage the polling/writing of trace metadata */
-- ret = pthread_create(&metadata_thread, NULL,
-+ ret = pthread_create(&metadata_thread, tattr,
- consumer_thread_metadata_poll,
- (void *) ctx);
- if (ret) {
-@@ -539,7 +544,7 @@ int main(int argc, char **argv)
- }
-
- /* Create thread to manage the polling/writing of trace data */
-- ret = pthread_create(&data_thread, NULL, consumer_thread_data_poll,
-+ ret = pthread_create(&data_thread, tattr, consumer_thread_data_poll,
- (void *) ctx);
- if (ret) {
- errno = ret;
-@@ -549,7 +554,7 @@ int main(int argc, char **argv)
- }
-
- /* Create the thread to manage the receive of fd */
-- ret = pthread_create(&sessiond_thread, NULL,
-+ ret = pthread_create(&sessiond_thread, tattr,
- consumer_thread_sessiond_poll,
- (void *) ctx);
- if (ret) {
-@@ -563,7 +568,7 @@ int main(int argc, char **argv)
- * Create the thread to manage the UST metadata periodic timer and
- * live timer.
- */
-- ret = pthread_create(&metadata_timer_thread, NULL,
-+ ret = pthread_create(&metadata_timer_thread, tattr,
- consumer_timer_thread, (void *) ctx);
- if (ret) {
- errno = ret;
-diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c
-index e2096ec..32efab1 100644
---- a/src/bin/lttng-relayd/live.c
-+++ b/src/bin/lttng-relayd/live.c
-@@ -2147,13 +2147,13 @@ int relayd_live_join(void)
- /*
- * main
- */
--int relayd_live_create(struct lttng_uri *uri)
-+int relayd_live_create(struct lttng_uri *uri, const pthread_attr_t *tattr)
- {
- int ret = 0, retval = 0;
- void *status;
- int is_root;
-
-- if (!uri) {
-+ if (!uri || !tattr) {
- retval = -1;
- goto exit_init_data;
- }
-@@ -2186,7 +2186,7 @@ int relayd_live_create(struct lttng_uri *uri)
- }
-
- /* Setup the dispatcher thread */
-- ret = pthread_create(&live_dispatcher_thread, NULL,
-+ ret = pthread_create(&live_dispatcher_thread, tattr,
- thread_dispatcher, (void *) NULL);
- if (ret) {
- errno = ret;
-@@ -2196,7 +2196,7 @@ int relayd_live_create(struct lttng_uri *uri)
- }
-
- /* Setup the worker thread */
-- ret = pthread_create(&live_worker_thread, NULL,
-+ ret = pthread_create(&live_worker_thread, tattr,
- thread_worker, NULL);
- if (ret) {
- errno = ret;
-@@ -2206,7 +2206,7 @@ int relayd_live_create(struct lttng_uri *uri)
- }
-
- /* Setup the listener thread */
-- ret = pthread_create(&live_listener_thread, NULL,
-+ ret = pthread_create(&live_listener_thread, tattr,
- thread_listener, (void *) NULL);
- if (ret) {
- errno = ret;
-diff --git a/src/bin/lttng-relayd/live.h b/src/bin/lttng-relayd/live.h
-index 2b8a3a0..6cd85e9 100644
---- a/src/bin/lttng-relayd/live.h
-+++ b/src/bin/lttng-relayd/live.h
-@@ -24,7 +24,7 @@
-
- #include "lttng-relayd.h"
-
--int relayd_live_create(struct lttng_uri *live_uri);
-+int relayd_live_create(struct lttng_uri *live_uri, const pthread_attr_t *tattr);
- int relayd_live_stop(void);
- int relayd_live_join(void);
-
-diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c
-index 6ad6566..505e884 100644
---- a/src/bin/lttng-relayd/main.c
-+++ b/src/bin/lttng-relayd/main.c
-@@ -119,6 +119,8 @@ static pthread_t dispatcher_thread;
- static pthread_t worker_thread;
- static pthread_t health_thread;
-
-+static pthread_attr_t *tattr;
-+
- /*
- * last_relay_stream_id_lock protects last_relay_stream_id increment
- * atomicity on 32-bit architectures.
-@@ -2778,6 +2780,8 @@ int main(int argc, char **argv)
- }
- }
-
-+ /* Get stack size limit */
-+ tattr = get_pthread_attr_stacksize();
-
- /* Initialize thread health monitoring */
- health_relayd = health_app_create(NR_HEALTH_RELAYD_TYPES);
-@@ -2840,7 +2844,7 @@ int main(int argc, char **argv)
- }
-
- /* Create thread to manage the client socket */
-- ret = pthread_create(&health_thread, NULL,
-+ ret = pthread_create(&health_thread, tattr,
- thread_manage_health, (void *) NULL);
- if (ret) {
- errno = ret;
-@@ -2850,7 +2854,7 @@ int main(int argc, char **argv)
- }
-
- /* Setup the dispatcher thread */
-- ret = pthread_create(&dispatcher_thread, NULL,
-+ ret = pthread_create(&dispatcher_thread, tattr,
- relay_thread_dispatcher, (void *) NULL);
- if (ret) {
- errno = ret;
-@@ -2860,7 +2864,7 @@ int main(int argc, char **argv)
- }
-
- /* Setup the worker thread */
-- ret = pthread_create(&worker_thread, NULL,
-+ ret = pthread_create(&worker_thread, tattr,
- relay_thread_worker, NULL);
- if (ret) {
- errno = ret;
-@@ -2870,7 +2874,7 @@ int main(int argc, char **argv)
- }
-
- /* Setup the listener thread */
-- ret = pthread_create(&listener_thread, NULL,
-+ ret = pthread_create(&listener_thread, tattr,
- relay_thread_listener, (void *) NULL);
- if (ret) {
- errno = ret;
-@@ -2879,7 +2883,7 @@ int main(int argc, char **argv)
- goto exit_listener_thread;
- }
-
-- ret = relayd_live_create(live_uri);
-+ ret = relayd_live_create(live_uri, tattr);
- if (ret) {
- ERR("Starting live viewer threads");
- retval = -1;
-diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c
-index c8e4e53..b8f1bde 100644
---- a/src/bin/lttng-sessiond/main.c
-+++ b/src/bin/lttng-sessiond/main.c
-@@ -212,6 +212,8 @@ static pthread_t ht_cleanup_thread;
- static pthread_t agent_reg_thread;
- static pthread_t load_session_thread;
-
-+static pthread_attr_t *tattr;
-+
- /*
- * UST registration command queue. This queue is tied with a futex and uses a N
- * wakers / 1 waiter implemented and detailed in futex.c/.h
-@@ -2402,7 +2404,7 @@ static int spawn_consumer_thread(struct consumer_data *consumer_data)
- goto error;
- }
-
-- ret = pthread_create(&consumer_data->thread, NULL, thread_manage_consumer,
-+ ret = pthread_create(&consumer_data->thread, tattr, thread_manage_consumer,
- consumer_data);
- if (ret) {
- errno = ret;
-@@ -5638,6 +5640,9 @@ int main(int argc, char **argv)
- goto exit_create_run_as_worker_cleanup;
- }
-
-+ /* Get stack size limit */
-+ tattr = get_pthread_attr_stacksize();
-+
- /*
- * Starting from here, we can create threads. This needs to be after
- * lttng_daemonize due to RCU.
-@@ -5672,7 +5677,7 @@ int main(int argc, char **argv)
- }
-
- /* Create thread to clean up RCU hash tables */
-- ret = pthread_create(&ht_cleanup_thread, NULL,
-+ ret = pthread_create(&ht_cleanup_thread, tattr,
- thread_ht_cleanup, (void *) NULL);
- if (ret) {
- errno = ret;
-@@ -6044,7 +6049,7 @@ int main(int argc, char **argv)
- load_info->path = opt_load_session_path;
-
- /* Create health-check thread */
-- ret = pthread_create(&health_thread, NULL,
-+ ret = pthread_create(&health_thread, tattr,
- thread_manage_health, (void *) NULL);
- if (ret) {
- errno = ret;
-@@ -6054,7 +6059,7 @@ int main(int argc, char **argv)
- }
-
- /* Create thread to manage the client socket */
-- ret = pthread_create(&client_thread, NULL,
-+ ret = pthread_create(&client_thread, tattr,
- thread_manage_clients, (void *) NULL);
- if (ret) {
- errno = ret;
-@@ -6064,7 +6069,7 @@ int main(int argc, char **argv)
- }
-
- /* Create thread to dispatch registration */
-- ret = pthread_create(&dispatch_thread, NULL,
-+ ret = pthread_create(&dispatch_thread, tattr,
- thread_dispatch_ust_registration, (void *) NULL);
- if (ret) {
- errno = ret;
-@@ -6074,7 +6079,7 @@ int main(int argc, char **argv)
- }
-
- /* Create thread to manage application registration. */
-- ret = pthread_create(®_apps_thread, NULL,
-+ ret = pthread_create(®_apps_thread, tattr,
- thread_registration_apps, (void *) NULL);
- if (ret) {
- errno = ret;
-@@ -6084,7 +6089,7 @@ int main(int argc, char **argv)
- }
-
- /* Create thread to manage application socket */
-- ret = pthread_create(&apps_thread, NULL,
-+ ret = pthread_create(&apps_thread, tattr,
- thread_manage_apps, (void *) NULL);
- if (ret) {
- errno = ret;
-@@ -6094,7 +6099,7 @@ int main(int argc, char **argv)
- }
-
- /* Create thread to manage application notify socket */
-- ret = pthread_create(&apps_notify_thread, NULL,
-+ ret = pthread_create(&apps_notify_thread, tattr,
- ust_thread_manage_notify, (void *) NULL);
- if (ret) {
- errno = ret;
-@@ -6104,7 +6109,7 @@ int main(int argc, char **argv)
- }
-
- /* Create agent registration thread. */
-- ret = pthread_create(&agent_reg_thread, NULL,
-+ ret = pthread_create(&agent_reg_thread, tattr,
- agent_thread_manage_registration, (void *) NULL);
- if (ret) {
- errno = ret;
-@@ -6116,7 +6121,7 @@ int main(int argc, char **argv)
- /* Don't start this thread if kernel tracing is not requested nor root */
- if (is_root && !opt_no_kernel) {
- /* Create kernel thread to manage kernel event */
-- ret = pthread_create(&kernel_thread, NULL,
-+ ret = pthread_create(&kernel_thread, tattr,
- thread_manage_kernel, (void *) NULL);
- if (ret) {
- errno = ret;
-@@ -6127,7 +6132,7 @@ int main(int argc, char **argv)
- }
-
- /* Create session loading thread. */
-- ret = pthread_create(&load_session_thread, NULL, thread_load_session,
-+ ret = pthread_create(&load_session_thread, tattr, thread_load_session,
- load_info);
- if (ret) {
- errno = ret;
-diff --git a/src/common/utils.c b/src/common/utils.c
-index 1e52ae0..593d6cc 100644
---- a/src/common/utils.c
-+++ b/src/common/utils.c
-@@ -31,6 +31,8 @@
- #include <pwd.h>
- #include <sys/file.h>
- #include <unistd.h>
-+#include <stdbool.h>
-+#include <sys/resource.h>
-
- #include <common/common.h>
- #include <common/runas.h>
-@@ -1383,3 +1385,57 @@ int utils_show_man_page(int section, const char *page_name)
- section_string, page_name, NULL);
- return ret;
- }
-+
-+static bool pthread_ss_done = false;
-+static pthread_attr_t *tattr = NULL;
-+static pthread_attr_t tattr_value;
-+
-+LTTNG_HIDDEN
-+pthread_attr_t *get_pthread_attr_stacksize() {
-+ int ret = 0;
-+ size_t ptstacksize;
-+ struct rlimit rlim;
-+
-+ /* Return cached value */
-+ if (pthread_ss_done) {
-+ goto end;
-+ }
-+
-+ /* Get stack size limits */
-+ ret = getrlimit(RLIMIT_STACK, &rlim);
-+ if (ret < 0) {
-+ PERROR("getrlimit");
-+ goto end;
-+ }
-+ DBG("Stack size limits: soft %lld, hard %lld bytes",
-+ (long long) rlim.rlim_cur,
-+ (long long) rlim.rlim_max);
-+
-+ /* Get default thread stack size */
-+ ret = pthread_attr_getstacksize(&tattr_value, &ptstacksize);
-+ if (ret < 0) {
-+ PERROR("pthread_attr_getstacksize");
-+ goto end;
-+ }
-+ DBG("Default pthread stack size is %zu bytes", ptstacksize);
-+
-+ /* Check if default thread stack size respects ulimits */
-+ if (ptstacksize < rlim.rlim_cur) {
-+ DBG("Your libc doesn't honor stack size limits, setting thread stack size to soft limit (%lld bytes)", (long long) rlim.rlim_cur);
-+
-+ /* Create pthread_attr_t struct with ulimit stack size */
-+ ret = pthread_attr_setstacksize(&tattr_value, rlim.rlim_cur);
-+ if (ret < 0) {
-+ PERROR("pthread_attr_setstacksize");
-+ goto end;
-+ }
-+
-+ /* Set pointer */
-+ tattr = &tattr_value;
-+ }
-+
-+ /* Enable cached value */
-+ pthread_ss_done = true;
-+end:
-+ return tattr;
-+}
-diff --git a/src/common/utils.h b/src/common/utils.h
-index 7285f5c..568c123 100644
---- a/src/common/utils.h
-+++ b/src/common/utils.h
-@@ -60,5 +60,6 @@ int utils_create_lock_file(const char *filepath);
- int utils_recursive_rmdir(const char *path);
- int utils_truncate_stream_file(int fd, off_t length);
- int utils_show_man_page(int section, const char *page_name);
-+pthread_attr_t *get_pthread_attr_stacksize();
-
- #endif /* _COMMON_UTILS_H */
---
-2.7.4
-
diff --git a/package/lttng-tools/lttng-tools.hash b/package/lttng-tools/lttng-tools.hash
index 267da80..729ccf2 100644
--- a/package/lttng-tools/lttng-tools.hash
+++ b/package/lttng-tools/lttng-tools.hash
@@ -1,6 +1,3 @@
-# From http://lttng.org/files/lttng-tools/lttng-tools-2.8.2.tar.bz2.{md5,sha1}
-md5 cac8d64111711ae1b632d0dc12fe92c1 lttng-tools-2.8.2.tar.bz2
-sha1 870874ba9644691de8e564a1fa1459aa5fef42ba lttng-tools-2.8.2.tar.bz2
-
-# Locally generated
-sha256 a07e00e9519dad2577d9330bcaf040ab3dc1b289fbcb8c702c39d520422e7565 lttng-tools-2.8.2.tar.bz2
+# From http://lttng.org/files/lttng-tools/lttng-tools-2.9.0.tar.bz2.{md5,sha1}
+md5 75b5feb18aa2a136ebf70a14d2a5a6e5 lttng-tools-2.9.0.tar.bz2
+sha1 299158fd8614e45ee596d793696feb86cdea34b2 lttng-tools-2.9.0.tar.bz2
diff --git a/package/lttng-tools/lttng-tools.mk b/package/lttng-tools/lttng-tools.mk
index 0591633..66ac687 100644
--- a/package/lttng-tools/lttng-tools.mk
+++ b/package/lttng-tools/lttng-tools.mk
@@ -4,7 +4,7 @@
#
################################################################################
-LTTNG_TOOLS_VERSION = 2.8.2
+LTTNG_TOOLS_VERSION = 2.9.0
LTTNG_TOOLS_SITE = http://lttng.org/files/lttng-tools
LTTNG_TOOLS_SOURCE = lttng-tools-$(LTTNG_TOOLS_VERSION).tar.bz2
LTTNG_TOOLS_LICENSE = GPLv2+, LGPLv2.1+ (include/lttng/*, src/lib/lttng-ctl/*)
--
2.10.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH next 2/4] lttng-modules: bump version to 2.9.0
2016-11-30 17:04 [Buildroot] [PATCH next 1/4] lttng-tools: bump version to 2.9.0 Vicente Olivert Riera
@ 2016-11-30 17:04 ` Vicente Olivert Riera
2016-11-30 17:04 ` [Buildroot] [PATCH next 3/4] lttng-babeltrace: bump version to 1.5.0 Vicente Olivert Riera
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Vicente Olivert Riera @ 2016-11-30 17:04 UTC (permalink / raw)
To: buildroot
Release notes:
https://lists.lttng.org/pipermail/lttng-dev/2016-November/026760.html
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
package/lttng-modules/lttng-modules.hash | 6 +++---
package/lttng-modules/lttng-modules.mk | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/package/lttng-modules/lttng-modules.hash b/package/lttng-modules/lttng-modules.hash
index ce725ec..d8314f6 100644
--- a/package/lttng-modules/lttng-modules.hash
+++ b/package/lttng-modules/lttng-modules.hash
@@ -1,3 +1,3 @@
-# From http://lttng.org/files/lttng-modules/lttng-modules-2.8.3.tar.bz2.{md5,sha1}
-md5 424354c4834d20235dacd9a1fd7653b6 lttng-modules-2.8.3.tar.bz2
-sha1 862705784a54962f70226004f1fd0bf77f73f10f lttng-modules-2.8.3.tar.bz2
+# From http://lttng.org/files/lttng-modules/lttng-modules-2.9.0.tar.bz2.{md5,sha1}
+md5 717df375ccb6f32bb297cc2f2e692bbf lttng-modules-2.9.0.tar.bz2
+sha1 819ee1c2a5a821b7fdc1c2fc102ef3079c32aad7 lttng-modules-2.9.0.tar.bz2
diff --git a/package/lttng-modules/lttng-modules.mk b/package/lttng-modules/lttng-modules.mk
index 9ecf572..aa0ac30 100644
--- a/package/lttng-modules/lttng-modules.mk
+++ b/package/lttng-modules/lttng-modules.mk
@@ -4,7 +4,7 @@
#
################################################################################
-LTTNG_MODULES_VERSION = 2.8.3
+LTTNG_MODULES_VERSION = 2.9.0
LTTNG_MODULES_SITE = http://lttng.org/files/lttng-modules
LTTNG_MODULES_SOURCE = lttng-modules-$(LTTNG_MODULES_VERSION).tar.bz2
LTTNG_MODULES_LICENSE = LGPLv2.1/GPLv2 (kernel modules), MIT (lib/bitfield.h, lib/prio_heap/*)
--
2.10.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH next 3/4] lttng-babeltrace: bump version to 1.5.0
2016-11-30 17:04 [Buildroot] [PATCH next 1/4] lttng-tools: bump version to 2.9.0 Vicente Olivert Riera
2016-11-30 17:04 ` [Buildroot] [PATCH next 2/4] lttng-modules: " Vicente Olivert Riera
@ 2016-11-30 17:04 ` Vicente Olivert Riera
2016-12-03 13:35 ` Thomas Petazzoni
2016-11-30 17:04 ` [Buildroot] [PATCH next 4/4] lttng-libust: bump version to 2.9.0 Vicente Olivert Riera
` (2 subsequent siblings)
4 siblings, 1 reply; 8+ messages in thread
From: Vicente Olivert Riera @ 2016-11-30 17:04 UTC (permalink / raw)
To: buildroot
Drop sha256 hash. The combination of md5 and sha1 hashes is enough.
Release notes:
https://lists.lttng.org/pipermail/lttng-dev/2016-November/026762.html
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
package/lttng-babeltrace/lttng-babeltrace.hash | 9 +++------
package/lttng-babeltrace/lttng-babeltrace.mk | 2 +-
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/package/lttng-babeltrace/lttng-babeltrace.hash b/package/lttng-babeltrace/lttng-babeltrace.hash
index bca0bdb..7f91b8b 100644
--- a/package/lttng-babeltrace/lttng-babeltrace.hash
+++ b/package/lttng-babeltrace/lttng-babeltrace.hash
@@ -1,6 +1,3 @@
-# From http://www.efficios.com/files/babeltrace/babeltrace-1.4.0.tar.bz2.{md5,sha1}
-md5 fa99064048af5c9c6ff00e489ac809c2 babeltrace-1.4.0.tar.bz2
-sha1 3b162480ee883625e8581bf163817f78a4b6487b babeltrace-1.4.0.tar.bz2
-
-# Locally generated
-sha256 9469eeb22617cd12668683b04c27003e5337e9ac66ade914988df3642fc0d0e4 babeltrace-1.4.0.tar.bz2
+# From http://www.efficios.com/files/babeltrace/babeltrace-1.5.0.tar.bz2.{md5,sha1}
+md5 43696383e44d1b85173db7cbd0335f06 babeltrace-1.5.0.tar.bz2
+sha1 13f106951c418632a2155ebe3cea51fa4929e748 babeltrace-1.5.0.tar.bz2
diff --git a/package/lttng-babeltrace/lttng-babeltrace.mk b/package/lttng-babeltrace/lttng-babeltrace.mk
index 59327db..7d4b520 100644
--- a/package/lttng-babeltrace/lttng-babeltrace.mk
+++ b/package/lttng-babeltrace/lttng-babeltrace.mk
@@ -5,7 +5,7 @@
################################################################################
LTTNG_BABELTRACE_SITE = http://www.efficios.com/files/babeltrace
-LTTNG_BABELTRACE_VERSION = 1.4.0
+LTTNG_BABELTRACE_VERSION = 1.5.0
LTTNG_BABELTRACE_SOURCE = babeltrace-$(LTTNG_BABELTRACE_VERSION).tar.bz2
LTTNG_BABELTRACE_LICENSE = MIT, LGPLv2.1 (include/babeltrace/list.h), GPLv2 (test code)
LTTNG_BABELTRACE_LICENSE_FILES = mit-license.txt gpl-2.0.txt LICENSE
--
2.10.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH next 4/4] lttng-libust: bump version to 2.9.0
2016-11-30 17:04 [Buildroot] [PATCH next 1/4] lttng-tools: bump version to 2.9.0 Vicente Olivert Riera
2016-11-30 17:04 ` [Buildroot] [PATCH next 2/4] lttng-modules: " Vicente Olivert Riera
2016-11-30 17:04 ` [Buildroot] [PATCH next 3/4] lttng-babeltrace: bump version to 1.5.0 Vicente Olivert Riera
@ 2016-11-30 17:04 ` Vicente Olivert Riera
2016-11-30 17:53 ` [Buildroot] [PATCH next 1/4] lttng-tools: " Baruch Siach
2016-11-30 21:09 ` Thomas Petazzoni
4 siblings, 0 replies; 8+ messages in thread
From: Vicente Olivert Riera @ 2016-11-30 17:04 UTC (permalink / raw)
To: buildroot
Drop sha256 hash. The combination of md5 and sha1 hashes is enough.
Add a patch that fixes a build failure due to using the compiler of the
host machine. The patch has been submitted as a pull request:
https://github.com/lttng/lttng-ust/pull/41
Release notes:
https://lists.lttng.org/pipermail/lttng-dev/2016-November/026761.html
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
...s-Makefile.am-define-C-and-C-compilers-fo.patch | 49 ++++++++++++++++++++++
package/lttng-libust/lttng-libust.hash | 9 ++--
package/lttng-libust/lttng-libust.mk | 2 +-
3 files changed, 53 insertions(+), 7 deletions(-)
create mode 100644 package/lttng-libust/0002-doc-examples-Makefile.am-define-C-and-C-compilers-fo.patch
diff --git a/package/lttng-libust/0002-doc-examples-Makefile.am-define-C-and-C-compilers-fo.patch b/package/lttng-libust/0002-doc-examples-Makefile.am-define-C-and-C-compilers-fo.patch
new file mode 100644
index 0000000..5172dbb
--- /dev/null
+++ b/package/lttng-libust/0002-doc-examples-Makefile.am-define-C-and-C-compilers-fo.patch
@@ -0,0 +1,49 @@
+From f54894580da85e33f934c5c9bf5ab32d3fcce18b Mon Sep 17 00:00:00 2001
+From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
+Date: Wed, 30 Nov 2016 16:52:51 +0000
+Subject: [PATCH] doc/examples/Makefile.am: define C and C++ compilers for
+ CMake
+
+This prevents build failures when cross-compiling.
+
+If we don't define the compiler, it will use the one from the host
+machine. For instance "/usr/bin/c++", which is incorrect.
+
+The failure looks like this:
+
+.............................................................
+[ 10%] Building CXX object CMakeFiles/tracepoint-provider.dir/tracepoint-provider.cpp.o
+/usr/bin/c++ -Dtracepoint_provider_EXPORTS -I/br/output/build/lttng-libust-2.9.0/doc/examples/cmake-multiple-shared-libraries/. -isystem /br/output/build/lttng-libust-2.9.0/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -o CMakeFiles/tracepoint-provider.dir/tracepoint-provider.cpp.o -c /br/output/build/lttng-libust-2.9.0/doc/examples/cmake-multiple-shared-libraries/tracepoint-provider.cpp
+In file included from /br/output/build/lttng-libust-2.9.0/include/lttng/tracepoint.h:29:0,
+ from /br/output/build/lttng-libust-2.9.0/doc/examples/cmake-multiple-shared-libraries/tracepoint-provider.h:32,
+ from /br/output/build/lttng-libust-2.9.0/doc/examples/cmake-multiple-shared-libraries/tracepoint-provider.cpp:26:
+/br/output/build/lttng-libust-2.9.0/include/lttng/tracepoint-rcu.h:26:27: fatal error: urcu/compiler.h: No such file or directory
+ #include <urcu/compiler.h>
+ ^
+compilation terminated.
+.............................................................
+
+Pull request URL: https://github.com/lttng/lttng-ust/pull/41
+
+Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
+---
+ doc/examples/Makefile.am | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am
+index 424b844..5bc1f4c 100644
+--- a/doc/examples/Makefile.am
++++ b/doc/examples/Makefile.am
+@@ -152,7 +152,9 @@ all-local:
+ cmake \
+ -DCMAKE_INCLUDE_PATH="$(abs_top_srcdir)/include;$(abs_top_builddir)/include" \
+ -DCMAKE_LIBRARY_PATH="$(abs_top_builddir)/liblttng-ust/.libs" \
++ -DCMAKE_C_COMPILER="$(CC)" \
+ -DCMAKE_C_FLAGS="$(CFLAGS) $(CPPFLAGS)" \
++ -DCMAKE_CXX_COMPILER="$(CXX)" \
+ -DCMAKE_CXX_FLAGS="$(CXXFLAGS) $(CPPFLAGS)" \
+ -DCMAKE_EXE_LINKER_FLAGS="$(LDFLAGS)" \
+ .. && \
+--
+2.10.1
+
diff --git a/package/lttng-libust/lttng-libust.hash b/package/lttng-libust/lttng-libust.hash
index a4a2907..e080361 100644
--- a/package/lttng-libust/lttng-libust.hash
+++ b/package/lttng-libust/lttng-libust.hash
@@ -1,6 +1,3 @@
-# From http://lttng.org/files/lttng-ust/lttng-ust-2.8.1.tar.bz2.{md5,sha1}
-md5 be505077245dc05f93370a565eec15f4 lttng-ust-2.8.1.tar.bz2
-sha1 8bebdcbcb453d2643fb226dbe92de61764f1ee3b lttng-ust-2.8.1.tar.bz2
-
-# Locally generated
-sha256 6e41349107e83e7b43c69ed358e48788ca2fd095bad61737b850e3f3d2c0508a lttng-ust-2.8.1.tar.bz2
+# From http://lttng.org/files/lttng-ust/lttng-ust-2.9.0.tar.bz2.{md5,sha1}
+md5 77f3378ba37a36801420bce87b702e9c lttng-ust-2.9.0.tar.bz2
+sha1 9937eae64540821b8597cce081e92be76e6b5568 lttng-ust-2.9.0.tar.bz2
diff --git a/package/lttng-libust/lttng-libust.mk b/package/lttng-libust/lttng-libust.mk
index 7a83f46..23cc745 100644
--- a/package/lttng-libust/lttng-libust.mk
+++ b/package/lttng-libust/lttng-libust.mk
@@ -5,7 +5,7 @@
################################################################################
LTTNG_LIBUST_SITE = http://lttng.org/files/lttng-ust
-LTTNG_LIBUST_VERSION = 2.8.1
+LTTNG_LIBUST_VERSION = 2.9.0
LTTNG_LIBUST_SOURCE = lttng-ust-$(LTTNG_LIBUST_VERSION).tar.bz2
LTTNG_LIBUST_LICENSE = LGPLv2.1, MIT (system headers), GPLv2 (liblttng-ust-ctl/ustctl.c used by lttng-sessiond)
LTTNG_LIBUST_LICENSE_FILES = COPYING
--
2.10.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH next 1/4] lttng-tools: bump version to 2.9.0
2016-11-30 17:04 [Buildroot] [PATCH next 1/4] lttng-tools: bump version to 2.9.0 Vicente Olivert Riera
` (2 preceding siblings ...)
2016-11-30 17:04 ` [Buildroot] [PATCH next 4/4] lttng-libust: bump version to 2.9.0 Vicente Olivert Riera
@ 2016-11-30 17:53 ` Baruch Siach
2016-11-30 21:03 ` Thomas Petazzoni
2016-11-30 21:09 ` Thomas Petazzoni
4 siblings, 1 reply; 8+ messages in thread
From: Baruch Siach @ 2016-11-30 17:53 UTC (permalink / raw)
To: buildroot
Hi Vicente,
On Wed, Nov 30, 2016 at 05:04:42PM +0000, Vicente Olivert Riera wrote:
> Drop sha256 hash. The combination of md5 and sha1 hashes is enough.
I don't think so. Neither md5 nor sha1 is considered cryptographically secure.
Their combination is probably better than either alone. But sha256 is even
better. Not only because of its larger hash value, but also because the
algorithm itself. Why drop it?
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH next 1/4] lttng-tools: bump version to 2.9.0
2016-11-30 17:53 ` [Buildroot] [PATCH next 1/4] lttng-tools: " Baruch Siach
@ 2016-11-30 21:03 ` Thomas Petazzoni
0 siblings, 0 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2016-11-30 21:03 UTC (permalink / raw)
To: buildroot
Hello,
On Wed, 30 Nov 2016 19:53:52 +0200, Baruch Siach wrote:
> On Wed, Nov 30, 2016 at 05:04:42PM +0000, Vicente Olivert Riera wrote:
> > Drop sha256 hash. The combination of md5 and sha1 hashes is enough.
>
> I don't think so. Neither md5 nor sha1 is considered cryptographically secure.
> Their combination is probably better than either alone. But sha256 is even
> better. Not only because of its larger hash value, but also because the
> algorithm itself. Why drop it?
We had a quick discussion on IRC, where Vicente asked about this, and
both Peter and myself gave our feeling. Our feeling is that the
combination of two "weak" hashes is good enough for what Buildroot uses
hashes for. If no hash is provided by upstream or only one weak hash,
then having a sha256 hash is what we prefer. But when there's already
two "weak hashes" provided by upstream, we believe it's good enough.
Finding a collision is md5 is doable. Finding a collision in sha1 is
harder, but apparently in the range of possible. But creating a
collision that matches both is most likely really difficult to
achieve.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH next 1/4] lttng-tools: bump version to 2.9.0
2016-11-30 17:04 [Buildroot] [PATCH next 1/4] lttng-tools: bump version to 2.9.0 Vicente Olivert Riera
` (3 preceding siblings ...)
2016-11-30 17:53 ` [Buildroot] [PATCH next 1/4] lttng-tools: " Baruch Siach
@ 2016-11-30 21:09 ` Thomas Petazzoni
4 siblings, 0 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2016-11-30 21:09 UTC (permalink / raw)
To: buildroot
Hello,
On Wed, 30 Nov 2016 17:04:42 +0000, Vicente Olivert Riera wrote:
> Drop sha256 hash. The combination of md5 and sha1 hashes is enough.
>
> Remove upstream patches:
>
> - 0001-Fix-snapshot-del-output-with-name-on-musl.patch
> https://github.com/lttng/lttng-tools/commit/07f5023712313d73ab3feac62390a2d50457b7aa
>
> - 0002-Fix-strerror_r-behavior-is-glibc-specific.patch
> https://github.com/lttng/lttng-tools/commit/b6dacfe27a91af50a1f81a2a7eadf4f34ca75769
>
> - 0003-Set-thread-stack-size-to-ulimit-soft-value.patch
> https://github.com/lttng/lttng-tools/commit/1a1a34b40ab10a195633b1ed5e2e9b42fdae0a78
>
> Release notes:
> https://lists.lttng.org/pipermail/lttng-dev/2016-November/026763.html
>
> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> ---
> ...Fix-snapshot-del-output-with-name-on-musl.patch | 32 --
> ...Fix-strerror_r-behavior-is-glibc-specific.patch | 30 --
> ...et-thread-stack-size-to-ulimit-soft-value.patch | 431 ---------------------
> package/lttng-tools/lttng-tools.hash | 9 +-
> package/lttng-tools/lttng-tools.mk | 2 +-
> 5 files changed, 4 insertions(+), 500 deletions(-)
> delete mode 100644 package/lttng-tools/0001-Fix-snapshot-del-output-with-name-on-musl.patch
> delete mode 100644 package/lttng-tools/0002-Fix-strerror_r-behavior-is-glibc-specific.patch
> delete mode 100644 package/lttng-tools/0003-Set-thread-stack-size-to-ulimit-soft-value.patch
All four applied to next. For the last patch, I was worried that CMake
might have been mandatory. But the configure script properly checks if
cmake is available or not, and apparently acts properly if it's not
available, so it looks good.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH next 3/4] lttng-babeltrace: bump version to 1.5.0
2016-11-30 17:04 ` [Buildroot] [PATCH next 3/4] lttng-babeltrace: bump version to 1.5.0 Vicente Olivert Riera
@ 2016-12-03 13:35 ` Thomas Petazzoni
0 siblings, 0 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2016-12-03 13:35 UTC (permalink / raw)
To: buildroot
Hello,
On Wed, 30 Nov 2016 17:04:44 +0000, Vicente Olivert Riera wrote:
> Drop sha256 hash. The combination of md5 and sha1 hashes is enough.
>
> Release notes:
> https://lists.lttng.org/pipermail/lttng-dev/2016-November/026762.html
>
> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> ---
> package/lttng-babeltrace/lttng-babeltrace.hash | 9 +++------
> package/lttng-babeltrace/lttng-babeltrace.mk | 2 +-
> 2 files changed, 4 insertions(+), 7 deletions(-)
This was apparently not tested at all: one of the patches fails to
apply, see
http://autobuild.buildroot.net/results/98a/98a42516fa7e2c79e5529d1b5a8d44fcd60934c7/build-end.log.
Could you have a look?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-12-03 13:35 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-30 17:04 [Buildroot] [PATCH next 1/4] lttng-tools: bump version to 2.9.0 Vicente Olivert Riera
2016-11-30 17:04 ` [Buildroot] [PATCH next 2/4] lttng-modules: " Vicente Olivert Riera
2016-11-30 17:04 ` [Buildroot] [PATCH next 3/4] lttng-babeltrace: bump version to 1.5.0 Vicente Olivert Riera
2016-12-03 13:35 ` Thomas Petazzoni
2016-11-30 17:04 ` [Buildroot] [PATCH next 4/4] lttng-libust: bump version to 2.9.0 Vicente Olivert Riera
2016-11-30 17:53 ` [Buildroot] [PATCH next 1/4] lttng-tools: " Baruch Siach
2016-11-30 21:03 ` Thomas Petazzoni
2016-11-30 21:09 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox