lttng-modules: Upgrade to 2.7 release
PATCH v3 1/4 lttng-modules: Upgrade to 2.7 release
---
Changes in v3: None
Changes in v2: None
meta/recipes-kernel/lttng/lttng-modules_git.bb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
meta/recipes-kernel/lttng/lttng-modules_git.bb +4 -4
@@ -2,18 +2,18 @@ SECTION = "devel" SUMMARY = "Linux Trace Toolkit KERNEL MODULE" DESCRIPTION = "The lttng-modules 2.0 package contains the kernel tracer modules" LICENSE = "LGPLv2.1 & GPLv2 & MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=1412caf5a1aa90d6a48588a4794c0eac \ +LIC_FILES_CHKSUM = "file://LICENSE;md5=362844633a08753bd96ab322a6c7f9f6 \ file://gpl-2.0.txt;md5=751419260aa954499f7abaabaa882bbe \ file://lgpl-2.1.txt;md5=243b725d71bb5df4a1e5920b344b86ad" inherit module -SRCREV = "7a88f8b50696dd71e80c08661159caf8e119bf51" -PV = "2.6.2+git${SRCPV}" +SRCREV = "4247236df9113aca059d79c78d85779c1ff4edb0" +PV = "2.7.0+git${SRCPV}" COMPATIBLE_HOST = '(x86_64|i.86|powerpc|aarch64|mips|arm).*-linux' -SRC_URI = "git://git.lttng.org/lttng-modules.git;branch=stable-2.6" +SRC_URI = "git://git.lttng.org/lttng-modules.git;branch=stable-2.7" export INSTALL_MOD_DIR="kernel/lttng-modules"
Signature · 1 line
2.6.2
PATCH v3 2/4 lttng-tools: Drop unused patch
The runtest.patch is unused, so there is no reason to keep it on the tree.
---
Changes in v3:
- New patch
Changes in v2: None
.../recipes-kernel/lttng/lttng-tools/runtest.patch | 52 ---------------------- 1 file changed, 52 deletions(-) delete mode 100644 meta/recipes-kernel/lttng/lttng-tools/runtest.patch
meta/recipes-kernel/lttng/lttng-tools/runtest.patch deleted +0 -52
@@ -1,52 +0,0 @@ -diff --git a/Makefile.am b/Makefile.am -index 584f59b..c2bcabd 100644 ---- a/Makefile.am -+++ b/Makefile.am -@@ -12,3 +12,9 @@ dist_doc_DATA = LICENSE \ - dist_noinst_DATA = CodingStyle - - EXTRA_DIST = extras/lttng-bash_completion gpl-2.0.txt lgpl-2.1.txt -+ -+install-ptest: -+ cp -r $(srcdir)/tests $(DESTDIR) -+ for m in $$(find $(DESTDIR)/tests -name Makefile); do \ -+ sed -i -e 's|^Makefile:|_Makefile:|' $$m; \ -+ done -diff --git a/tests/Makefile.am b/tests/Makefile.am -index 6d5b00d..3774f9d 100644 ---- a/tests/Makefile.am -+++ b/tests/Makefile.am -@@ -1,14 +1,17 @@ - SUBDIRS = utils regression unit stress - --if USE_PYTHON --check-am: -+installcheck-am: - ./run.sh unit_tests - ./run.sh fast_regression -+if USE_PYTHON - ./run.sh with_bindings_regression --else -+endif -+ - check-am: - ./run.sh unit_tests - ./run.sh fast_regression -+if USE_PYTHON -+ ./run.sh with_bindings_regression - endif - - dist_noinst_SCRIPTS = run.sh unit_tests fast_regression long_regression root_regression with_bindings_regression -diff --git a/tests/run.sh b/tests/run.sh -index c6c50fd..6455359 100755 ---- a/tests/run.sh -+++ b/tests/run.sh -@@ -19,4 +19,7 @@ - - [ -z "$1" ] && echo "Error: No testlist. Please specify a testlist to run." && exit 1 - --prove --merge --exec '' - < $1 -+prove --merge -v --exec '' - < $1 | sed \ -+ -e 's|^ok \(.*\)|PASS: \1|' \ -+ -e 's|^not ok \(.*\)|FAIL: \1|' \ -+ | egrep -h 'PASS|FAIL'
Signature · 1 line
2.6.2
PATCH v3 3/4 lttng-tools: Upgrade to 2.7 release
In reply to Otavio Salvador---
Changes in v3:
- Fix ptest packaging (thanks to Ross Borton)
Changes in v2:
- Add PV field (thanks to Nathan Lynch)
...-sessiond-disable-match-app-event-by-name.patch | 58 ---
.../lttng/lttng-tools/extern-decls.patch | 442 ---------------------
...ng-tools-Fix-live-timer-calculation-error.patch | 42 --
.../{lttng-tools_2.6.0.bb => lttng-tools_git.bb} | 14 +-
4 files changed, 4 insertions(+), 552 deletions(-)
delete mode 100644 meta/recipes-kernel/lttng/lttng-tools/0001-Fix-sessiond-disable-match-app-event-by-name.patch
delete mode 100644 meta/recipes-kernel/lttng/lttng-tools/extern-decls.patch
delete mode 100644 meta/recipes-kernel/lttng/lttng-tools/lttng-tools-Fix-live-timer-calculation-error.patch
rename meta/recipes-kernel/lttng/{lttng-tools_2.6.0.bb => lttng-tools_git.bb} (85%)meta/recipes-kernel/lttng/lttng-tools/0001-Fix-sessiond-disable-match-app-event-by-name.patch deleted +0 -58
@@ -1,58 +0,0 @@ -From 700c5a9d4dc7b552926b8ddcbba91cc13312aba0 Mon Sep 17 00:00:00 2001 -From: Jonathan Rajotte <[email protected]> -Date: Wed, 9 Sep 2015 17:08:20 -0400 -Subject: [PATCH] Fix: sessiond: disable: match app event by name -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -The use of a simple lookup and match on event name is insufficient -to identify the corresponding ust app event. - -Fixes #914 - -Signed-off-by: Jonathan Rajotte <[email protected]> -Signed-off-by: Jérémie Galarneau <[email protected]> - -Upstream-Status: Backport - -Signed-off-by: Li Zhou <[email protected]> ---- - src/bin/lttng-sessiond/ust-app.c | 10 +++++----- - 1 file changed, 5 insertions(+), 5 deletions(-) - -diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c -index 4066b06..53a6f93 100644 ---- a/src/bin/lttng-sessiond/ust-app.c -+++ b/src/bin/lttng-sessiond/ust-app.c -@@ -3873,7 +3873,7 @@ int ust_app_disable_event_glb(struct ltt_ust_session *usess, - { - int ret = 0; - struct lttng_ht_iter iter, uiter; -- struct lttng_ht_node_str *ua_chan_node, *ua_event_node; -+ struct lttng_ht_node_str *ua_chan_node; - struct ust_app *app; - struct ust_app_session *ua_sess; - struct ust_app_channel *ua_chan; -@@ -3910,14 +3910,14 @@ int ust_app_disable_event_glb(struct ltt_ust_session *usess, - } - ua_chan = caa_container_of(ua_chan_node, struct ust_app_channel, node); - -- lttng_ht_lookup(ua_chan->events, (void *)uevent->attr.name, &uiter); -- ua_event_node = lttng_ht_iter_get_node_str(&uiter); -- if (ua_event_node == NULL) { -+ ua_event = find_ust_app_event(ua_chan->events, uevent->attr.name, -+ uevent->filter, uevent->attr.loglevel, -+ uevent->exclusion); -+ if (ua_event == NULL) { - DBG2("Event %s not found in channel %s for app pid %d." - "Skipping", uevent->attr.name, uchan->name, app->pid); - continue; - } -- ua_event = caa_container_of(ua_event_node, struct ust_app_event, node); - - ret = disable_ust_app_event(ua_sess, ua_event, app); - if (ret < 0) { --- -1.7.9.5 -
meta/recipes-kernel/lttng/lttng-tools/extern-decls.patch deleted +0 -442
442 lines not on this page · raw message
meta/recipes-kernel/lttng/lttng-tools/lttng-tools-Fix-live-timer-calculation-error.patch deleted +0 -42
42 lines not on this page · raw message
meta/recipes-kernel/lttng/lttng-tools_git.bb renamed from meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb +4 -10
@@ -12,7 +12,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=01d7fc4496aacf37d90df90b90b0cac1 \ DEPENDS = "liburcu popt lttng-ust libxml2" RDEPENDS_${PN}-ptest += "make perl bash" -SRCREV = "d522c1f14285e2e8b10b7c0cd011847696ffe779" +SRCREV = "d71e55a5f1f423eeaa47c08e5797e47ce8e825fb" +PV = "2.7.0+git${SRCPV}" PYTHON_OPTION = "am_cv_python_pyexecdir='${libdir}/python${PYTHON_BASEVERSION}/site-packages' \ am_cv_python_pythondir='${libdir}/python${PYTHON_BASEVERSION}/site-packages' \
@@ -23,13 +24,9 @@ PACKAGECONFIG[python] = "--enable-python-bindings ${PYTHON_OPTION},,python swig- PACKAGECONFIG[lttng-ust] = "--enable-lttng-ust, --disable-lttng-ust, lttng-ust" PACKAGECONFIG[kmod] = "--enable-kmod, --disable-kmod, kmod" -SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.6 \ +SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.7 \ file://runtest-2.4.0.patch \ - file://extern-decls.patch \ - file://run-ptest \ - file://lttng-tools-Fix-live-timer-calculation-error.patch \ - file://0001-Fix-sessiond-disable-match-app-event-by-name.patch \ - " + file://run-ptest" S = "${WORKDIR}/git"
@@ -71,9 +68,6 @@ do_install_ptest () { -i $i done - sed -e "s:src/bin/lttng-sessiond:$bindir:g" \ - -e "s:src/bin/lttng-consumerd:${libexecdir}/libexec/:g" \ - -i ${D}${PTEST_PATH}/tests/regression/run-report.py sed -e "s:src/bin:bin:g" -e "s:lt-::g" \ -i ${D}${PTEST_PATH}/tests/utils/utils.sh sed -e "s:ini_config:\.libs\/ini_config:" \
Signature · 1 line
2.6.2
Re: [PATCH v3 3/4] lttng-tools: Upgrade to 2.7 release
Quoted 3 lines · Otavio Salvador
rename meta/recipes-kernel/lttng/{lttng-tools_2.6.0.bb => lttng-tools_git.bb} (85%)
This now fails on MIPS machines:
runas.c: In function 'reset_sighandler':
runas.c:535:28: error: 'SIGUNUSED' undeclared (first use in this function)
for (sig = SIGHUP; sig <= SIGUNUSED; sig++) {
(http://errors.yoctoproject.org/Errors/Details/22001/)
Ross
Re: [PATCH v3 3/4] lttng-tools: Upgrade to 2.7 release
Quoted 8 lines · Ross
Quoted 3 lines · Otavio Salvador
rename meta/recipes-kernel/lttng/{lttng-tools_2.6.0.bb =>lttng-tools_git.bb} (85%)
Quoted 7 lines
This now fails on MIPS machines:
runas.c: In function 'reset_sighandler':
runas.c:535:28: error: 'SIGUNUSED' undeclared (first use in this function)
for (sig = SIGHUP; sig <= SIGUNUSED; sig++) {
I am testing a fix for it, I will sent v4 once it is confirmed.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
PATCH v3 4/4 lttng-ust: Upgrade to 2.7 release
In reply to Otavio Salvador---
Changes in v3: None
Changes in v2: None
...ttng-ust-Fix-live-timer-calculation-error.patch | 42 ---------------------- meta/recipes-kernel/lttng/lttng-ust_git.bb | 10 +++--- 2 files changed, 4 insertions(+), 48 deletions(-) delete mode 100644 meta/recipes-kernel/lttng/lttng-ust/lttng-ust-Fix-live-timer-calculation-error.patch
meta/recipes-kernel/lttng/lttng-ust/lttng-ust-Fix-live-timer-calculation-error.patch deleted +0 -42
@@ -1,42 +0,0 @@ -From 6d02a6c1aeb1d050ffe7c6624bab9acfa76fc05f Mon Sep 17 00:00:00 2001 -From: Mikael Beckius <[email protected]> -Date: Tue, 12 May 2015 11:04:34 +0200 -Subject: [PATCH] lttng-ust:Fix live timer calculation error - -There is an calculation error for live timer. Variable chan->switch_timer_interval is -based on microsecond, and it is not right to assign chan->switch_timer_interval mod -1000000 to var tv_nsec which is based on nanosecond. - -Upstream-Status: Pending - -Signed-off-by: Mikael Beckius <[email protected]> -Signed-off-by: Jianchuan Wang <[email protected]> ---- - libringbuffer/ring_buffer_frontend.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/libringbuffer/ring_buffer_frontend.c b/libringbuffer/ring_buffer_frontend.c -index eb4e486..e0377a3 100644 ---- a/libringbuffer/ring_buffer_frontend.c -+++ b/libringbuffer/ring_buffer_frontend.c -@@ -528,7 +528,7 @@ void lib_ring_buffer_channel_switch_timer_start(struct channel *chan) - } - - its.it_value.tv_sec = chan->switch_timer_interval / 1000000; -- its.it_value.tv_nsec = chan->switch_timer_interval % 1000000; -+ its.it_value.tv_nsec = (chan->switch_timer_interval % 1000000) * 1000; - its.it_interval.tv_sec = its.it_value.tv_sec; - its.it_interval.tv_nsec = its.it_value.tv_nsec; - -@@ -582,7 +582,7 @@ void lib_ring_buffer_channel_read_timer_start(struct channel *chan) - } - - its.it_value.tv_sec = chan->read_timer_interval / 1000000; -- its.it_value.tv_nsec = chan->read_timer_interval % 1000000; -+ its.it_value.tv_nsec = (chan->read_timer_interval % 1000000) * 1000; - its.it_interval.tv_sec = its.it_value.tv_sec; - its.it_interval.tv_nsec = its.it_value.tv_nsec; - --- -1.9.1 -
meta/recipes-kernel/lttng/lttng-ust_git.bb +4 -6
@@ -18,14 +18,12 @@ RPROVIDES_${PN} = "lttng2-ust" RREPLACES_${PN} = "lttng2-ust" RCONFLICTS_${PN} = "lttng2-ust" -SRCREV = "c49ee9040ada6984c880756614e8a6f7fd645bd6" +SRCREV = "826c6c686f16b9aeb3100f3f880d630911691cf1" PE = "2" -PV = "2.6.2+git${SRCPV}" +PV = "2.7.0+git${SRCPV}" -SRC_URI = "git://git.lttng.org/lttng-ust.git;branch=stable-2.6 \ - file://lttng-ust-doc-examples-disable.patch \ - file://lttng-ust-Fix-live-timer-calculation-error.patch \ - " +SRC_URI = "git://git.lttng.org/lttng-ust.git;branch=stable-2.7 \ + file://lttng-ust-doc-examples-disable.patch" S = "${WORKDIR}/git"
Signature · 1 line
2.6.2