summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/lttng
Commit message (Collapse)AuthorAgeFilesLines
* meta: remove consecutive blank linesAlexander Kanavin2025-06-202-2/+0
| | | | | | | | | | | | | | | | | Some of them were introduced by mass-removal of S = WORKDIR/git assignments; rather than try to fix up (or redo) just these, I've run this sed command over the whole tree: sed -i -z -E 's/([ \t\f\v\r]*\n){3,}/\n\n/g' `find . -name *.bb -o -name *.inc` The rationale is that more than one empty line is wasting vertical screen space, and does nothing for readability. (From OE-Core rev: cedc4ff7c9bcfb22a20e43e47f9759f4007a4f1a) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: remove S in recipes that fetch from git via setting ↵Alexander Kanavin2025-06-202-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BB_GIT_DEFAULT_DESTSUFFIX Removing all the S = ${WORKDIR}/git assignments works because BB_GIT_DEFAULT_DESTSUFFIX is set to match S from bitbake.conf (which itself is set to match typical tarball releases). A few recipes are setting S to a sub-directory of the git tree and need to be adjusted accordingly. bzip2 recipe is fetching a tarball and separately cloning tests; adjust the recipe to put the latter into 'bzip2-tests', instead of 'git'. devupstream.bbclass no longer needs to rewrite S, and is adjusted accordingly. Adjust scripts/lib/recipetool/append.py to not hardcode 'git' as unpack destination. Adjust kernel-yocto.bbclass to use the git unpack variable instead of hardcoding 'git' (there's also removal of repetition of string constants and a correction of workdir/unpackdir mismatch in one of the if-else branches). Ensure build-appliance-image recipe does not use 'git' as checkout directory for poky repo, but rather explicitly name it 'poky'. Ensure reproducible.py code that looks for git repositories does not hardcode 'git' but uses the destination set by BB_GIT_DEFAULT_DESTSUFFIX. Ensure recipetool does not write out unneeded S settings into newly created recipes that fetch from git. Adjust selftest to not hardcode 'git' as unpack directory. (From OE-Core rev: f80c07019ddadaf9c5fb890faabfda7920ecd15e) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: upgrade 2.13.18 -> 2.13.19Wang Mingyu2025-06-161-1/+1
| | | | | | | | | | | | | | | | | Changelog: =========== * Fix missing override when CONFIG_COMPAT_OLD_SIGACTION is not defined * fix: writeback: 'balance_dirty_pages' Respect 'CONFIG_CGROUP_WRITEBACK' * Fix: scsi: RESERVE and RELEASE renamed in Linux v6.15-rc1 * Fix: del_timer[_sync] deleted in linux v6.15-rc1 * Fix: Use 'nonseekable_open' for proc files * Fix: trace_balance_dirty_pages in Linux v6.14.2 * fix: version constraint for building lttng-probe-9p (From OE-Core rev: 8f8b8e72ff4ea562630b428ff8ab7f163d0c7084) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: fix compile failed with libxml2 2.14.0+Hongxu Jia2025-05-272-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Description: | In file included from /srv/pokybuild/yocto-worker/qemux86-alt/build/build/tmp/work/core2-32-poky-linux/lttng-tools/2.13.15/recipe-sysroot/usr/include/libxml2/libxml/parser.h:25, | from ../../../../lttng-tools-2.13.15/src/common/config/session-config.c:29: | /srv/pokybuild/yocto-worker/qemux86-alt/build/build/tmp/work/core2-32-poky-linux/lttng-tools/2.13.15/recipe-sysroot/usr/include/libxml2/libxml/encoding.h:173:7: note: declared here | 173 | } input XML_DEPRECATED_MEMBER; | | ^~~~~ | ../../../../lttng-tools-2.13.15/src/common/config/session-config.c:432:15: error: called object is not a function or function pointer | 432 | ret = handler->input(out_str, &out_len, (const xmlChar *) in_str, &in_len); | | ^~~~~~~ | At top level: | cc1: note: unrecognized command-line option '-Wno-incomplete-setjmp-declaration' may have been intended to silence earlier diagnostics According to [1][2], the UTF-8 handler is ``` static xmlCharEncError UTF8ToUTF8(void *vctxt ATTRIBUTE_UNUSED, unsigned char* out, int *outlen, const unsigned char* in, int *inlen, int flush ATTRIBUTE_UNUSED) ``` Update input.func with setting ATTRIBUTE_UNUSED params with NULL and 0 [1] https://gitlab.gnome.org/GNOME/libxml2/-/commit/38f475072aefe032fff1dc058df3e56c1e7062fa [2] https://gitlab.gnome.org/GNOME/libxml2/-/commit/69b83bb68e2a8ed0013f80c51b9a358714b00c9a#478024cc18a2cc8dbaed34076e9775f6827f413d_2188_2201 (From OE-Core rev: 5feba5682a0d07de94f4b13d7ef24d537c624cf4) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* babeltrace2: Update patch to upstreamed version of patchKhem Raj2025-05-191-11/+12
| | | | | | | | | Update to the version of patch that landed upstream (From OE-Core rev: 916dceb531d4bf5a852864af30913c972ea31cf0) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* babeltrace2: upgrade 2.1.0 -> 2.1.1Wang Mingyu2025-05-131-2/+2
| | | | | | | | | | | | | | | | | | Changelog: =========== * src.ctf.lttng-live: remove lttng_live_lazy_msg_init function * src.ctf.lttng-live: fix comment formatting * README.adoc: Update working version to 2.1 * fix: export bt_component_class_sink_simple_borrow * fix: building from the release tarball without flex * doc/api/libbabeltrace2: use '<code>' i.o. '<span>' in '<dt>' * Fix: doc/api/libbabeltrace2/Doxyfile.in: set version to 2.1 * babeltrace2-sink.text.pretty(7): add missing default param. value (From OE-Core rev: 1c0fa9264acd8c97fbdf61d1780e4842fd1e8ab0) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-ust: upgrade 2.13.8 -> 2.13.9Richard Purdie2025-05-054-167/+3
| | | | | | (From OE-Core rev: 23de06c4e28929d540058071384aefa41d48b69a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: fix build failure on genericarm64Mikko Rapeli2025-04-292-0/+36
| | | | | | | | | | | | | Workaround to unblock genericarm64 builds. Upstream is working on a better fix https://bugs.lttng.org/issues/1426 Fixes: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15840 (From OE-Core rev: c57a903b9ac6d3015195a59829c223917e9c41f8) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: Upgrade 2.13.17 -> 2.13.18Richard Purdie2025-04-231-1/+1
| | | | | | | | Includes fixes for 64 bit time on 32 bit platforms. (From OE-Core rev: f50a33c074a2de99c6b4b889c91c673162ec4040) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: 2.13.14 -> 2.13.15Richard Purdie2025-04-236-68/+81
| | | | | | | | Includes fixes for 64 bit time on 32 bit platforms. (From OE-Core rev: bbb542aff833353dd5645e7f4c279ac3625a416f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Update patch statusRichard Purdie2025-03-292-3/+4
| | | | | | | | A couple of patches were merged upstream, mark as such. (From OE-Core rev: ac8557164ed7a4fc2961a7d15aa202a7f38fb4ed) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* babeltrace2: Fix build with clang on 32bit hostsKhem Raj2025-03-242-0/+38
| | | | | | | | | clang-20 unveils more build issues (From OE-Core rev: 7d5dc608ddab89f8d856a8aa39544f2fade55dba) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* babeltrace2: upgrade 2.0.6 -> 2.1.0Bin Lan2025-03-186-41/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refresh 0001-Make-manpages-multilib-identical.patch with correct number and upstream status. Create a new patch 0001-tests-fix-test-applications-in-cpp-common.patch to fix test applications in cpp-common are needed to re-build when running in an embedded environment. 0001-tests-do-not-run-test-applications-from-.libs.patch is deleted for the commit log is not very accurate and the line number is changed, is replaced by 0001-tests-set-the-correct-plugin-directory.patch. Use 0001-tests-set-the-correct-plugin-directory.patch to set the correct directory of plugin shared library. Copy the trace files (*.ref) the metadata files (*.mctf) and json files which are required by test cases from source directory in babeltrace2_2.1.0.bb. Add character set conversion (gconv) for UTF-16/32 encoding for test cases. Set the correct test environment variables in tests/utils/env.sh when running in an embedded environment. Remove "GREP=grep SED=sed PYTHON=python3" from the file run-ptest for these test environment variables are set in tests/utils/env.sh. License-Update: add new license BSD-4-Clause GPL-3.0-or-later CC-BY-SA-4.0 PSF-2.0 Babeltrace 2.1.0 is a major change. Babeltrace 2.1.0 is released after five years of development after the release of Babeltrace 2.0.0. The licenses did change significantly. Changelog: Babeltrace 2.1, MIP 1 is available and adds many functions to support CTF 2 features. The Python bindings wrap all the library changes in the same systematic way as in Babeltrace 2.0. Add type hints to the public API to assist with static analysis of your applications. Details about the 2.1.0 release: https://babeltrace.org/docs/release-notes/babeltrace-2.1.0-release-notes.html (From OE-Core rev: 1a17aec7955cb3ed288519d28ee10858abbba3ae) Signed-off-by: Bin Lan <bin.lan.cn@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: Upgrade 2.13.16 -> 2.13.17Richard Purdie2025-03-172-53/+1
| | | | | | | | Drop patch now applied in the new release. (From OE-Core rev: d6a9a41a2ef2d06aeca7742ecb0a40d45740989b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* babeltrace2: extend to nativesdkChangqing Li2025-03-071-0/+12
| | | | | | | | | | This allows anyone using the SDK to be able to analyze the logs collected on target (From OE-Core rev: 760e6d7467a55aa98316310c68a95b94ccd0bf20) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* babeltrace: extend to nativesdkChangqing Li2025-03-071-0/+2
| | | | | | | | | | This allows anyone using the SDK to be able to analyze the logs collected on target (From OE-Core rev: 5fda2c8ad16ecf65b9e5012f57b03b8c867e2199) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta/meta-selftest: Fix variable assignment whitespaceRichard Purdie2025-02-011-1/+1
| | | | | | | | | | Recipes are much more readable with whitespace around the assignment operators. Fix various assignments in OE-Core to show this is definitely the preferred formatting. (From OE-Core rev: 30ea609d3357fb3de911f2f6a5e6856c151b976a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: disable patching our libtool.m4Ross Burton2025-01-201-0/+2
| | | | | | | | | | | | | | | | | | | | Twelve years ago, libtool on Debian had a patch that meant it failed to cross-compile lttng-tools correctly. The solution at the time was to sed libtool.m4 whilst configure was being ran[1], which (assuming it patches the correct file) results in a re-execution of configure during do_compile. This behaviour is undesired as we don't patch libtool in the way that this fixup is needed (the sed only changes Haiku OS codepaths), so disable it. [1] https://github.com/lttng/lttng-tools/commit/6bd5984c2b1b1037e0345bbac3506b5503fe01bd (From OE-Core rev: 87c1c7aa306759183e1f0b67a813b58eed8fb8ad) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: fix sched_stat_runtime changed in Linux 6.6.66Xiangyu Chen2024-12-232-1/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | The following commit has been backported into the 6.6.y branch. See upstream commit: commit 5fe6ec8f6ab549b6422e41551abb51802bd48bc7 Author: Peter Zijlstra <peterz@infradead.org> Date: Mon Nov 6 13:41:43 2023 +0100 sched: Remove vruntime from trace_sched_stat_runtime() That caused building the lttng-modules report compile error: tracepoint-event-impl.h:133:6: error: conflicting types for 'trace_sched_stat_runtime'; The fix is still pending on lttng review board, backport it to oe-core to de-block the build issue. (From OE-Core rev: 5b973be9a7fbb2694d162ac06b76513525f3deed) Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: Upgrade 2.13.15 -> 2.13.16Richard Purdie2024-12-173-231/+1
| | | | | | | | Drop two patches merged upstream. (From OE-Core rev: 1bc656bac3bccbedde407a52969dfdca7f5a3c2b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-ust: backport patch to fix cmake-multiple-shared-libraries build errorBin Lan2024-11-123-34/+162
| | | | | | | | | | | | | | | | | | | | | | | There are the following error when building doc/examples/cmake-multiple-shared-libraries: ld: warning: liblttng-ust-common.so.1, needed by lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so, not found (try using -rpath or -rpath-link) ld: warning: liblttng-ust-tracepoint.so.1, needed by lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so, not found (try using -rpath or -rpath-link) ld: warning: liblttng-ust-common.so.1, needed by lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so, not found (try using -rpath or -rpath-link) ld: warning: liblttng-ust-tracepoint.so.1, needed by lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so, not found (try using -rpath or -rpath-link) ld: lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so: undefined reference to `lttng_ust_common_alloc_tls' ld: lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so: undefined reference to `lttng_ust_urcu_after_fork_parent' ld: lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so: undefined reference to `lttng_ust_urcu_after_fork_child' ld: lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so: undefined reference to `lttng_ust_urcu_after_fork_parent' ld: lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so: undefined reference to `lttng_ust_tp_probe_unregister_queue_release' ld: lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so: undefined reference to `lttng_ust_cancelstate_disable_pop' collect2: error: ld returned 1 exit status This change set removes the old patch file 0001-Makefile.am-update-rpath-link.patch, adds a new patch file 0001-Fix-Build-examples-when-rpath-is-stripped-from-in-bu.patch. (From OE-Core rev: 89394da1cbe98652e1d0bd59c762ff7da2d6a113) Signed-off-by: Bin Lan <bin.lan.cn@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: fix build for 6.12+Bruce Ashfield2024-11-073-0/+230
| | | | | | | | | | We backport two fixes from the -stable 2.13 lttng branch to fix the build against kernels 6.12+ (From OE-Core rev: f7e9b9b30f0035a139e14210ee416e5cf27f8f1e) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: Upgrade 2.13.14 -> 2.13.15Richard Purdie2024-10-227-482/+1
| | | | | | | | Drop backported patches now not needed in the new version. (From OE-Core rev: f180b28885a67ef2957c5286c99b8b0bfda0d605) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: 2.13.13 -> 2.13.14Richard Purdie2024-09-041-1/+1
| | | | | | (From OE-Core rev: c861c35c10230204b042613b5e53ae50c806b098) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: update 2.13.13 -> 2.13.14Alexander Kanavin2024-08-2812-414/+33
| | | | | | | | | | | Remove backports. License-update: changed file paths. (From OE-Core rev: f565ab9b768c8f59ccb7f3b436de3b7475d1e237) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: backport patches for kernel v6.11Bruce Ashfield2024-08-087-0/+500
| | | | | | | | | | | While we wait for a new lttng-release, we backport 6 patches to fix the build against the 6.11 kernel. (From OE-Core rev: 168e98c7d2118333da9450f069699128892e70db) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* native/nativesdk: Stop overriding unprefixed *FLAGS variablesRichard Purdie2024-07-011-1/+1
| | | | | | | | | | | | | | | | | | | | We're currently encouraging an "arms race" with the FLAGS variables since a recipe might want to set a specific flag for all variants but to do so, += won't work due to the assignment in the native/nativesdk class files. This means recipes are using append. Since the default variables are constructed out of TARGET_XXX variables and we redefine these, there is no need to re-define the un-prefixed variables. If we drop that, the += appends and similar work and recipes don't have to resort to append. Change the classes and cleanup a number of recipes to adapt to the change. This change will result in some flags appearing to some native/nativesdk variants but that is probably what was originally expected anyway. (From OE-Core rev: a157b2f9d93428ca21265cc860a3b58b3698b3aa) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: update to 2.13.13 and fix for 6.10+Bruce Ashfield2024-06-049-368/+363
| | | | | | | | | | | | Bumping lttng-modules to 2.13.13, which allows us to drop some upstream patches. We also import 4 patches that are required to build against 6.10. (From OE-Core rev: afca89e93f402f5c17a1b9eb0bc7c7fffdda49a2) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes: Update WORKDIR references to UNPACKDIRRichard Purdie2024-05-021-1/+1
| | | | | | | | | | Since we want to be able to stop unpacking to WORKDIR, correct the WORKDIR references in recipe do_compile/do_install tasks to use UNPACKDIR in the appropraite places instead. (From OE-Core rev: d73595df69667fe9d12ecd407b77a0b8dae2109c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-ust: upgrade 2.13.7 -> 2.13.8Wang Mingyu2024-04-251-1/+1
| | | | | | | | | | | | | | Changelog: ============ * Add close_range wrapper to liblttng-ust-fd.so * ust-tracepoint-event: Add static check of sequences length type * lttng-ust(3): Fix wrong len_type for sequence * Fix: libc wrapper: use initial-exec for malloc_nesting TLS (From OE-Core rev: 3dd02f741a151bcc1fe46e7fd6d585ca92c86c60) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: upgrade 2.13.11 -> 2.13.13Wang Mingyu2024-04-162-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | 0001-tests-do-not-strip-a-helper-library.patch refreshed for 2.13.13 Changelog: =========== * Fix: consumerd: leak of tracing buffers on relayd connectivity issue * Fix: consumerd: wrong timer mentioned in error logging * Fix: consumerd: type confusion in lttng_consumer_send_error * Fix: baddr-statedump: use $(LIBTOOL) --mode=execute * Fix: relayd: live client not notified of inactive streams * Fix: relayd: live: dispose of zombie viewer metadata stream * tests: Fix typo in tests/regression/kernel/test_ns_contexts * Fix: sessiond: freeze on channel creation on restart * common: move utils_create_lock_file to its own file * tests: tools/clear/test_ust wait for specific test app pid * Fix: sessiond: crash when sending data_pending to an active session * Tests: fix: list_triggers_cli: kallsyms contains prefixed symbols * License: common: error_query: fix typo in SPDX specifier (From OE-Core rev: 5d35200e089f0695cfb19b65dd9b56006aa3d4fc) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* babeltrace2: upgrade 2.0.5 -> 2.0.6Wang Mingyu2024-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changelog: =========== * bt2: disable some warnings for 'native_bt.c' * bt2: compile 'native_bt.c' with '-Wno-undef' * Fix: src.ctf.lttng-live: expect NEW_STREAM/METADATA for inactive streams * Fix: 'babeltrace2 convert': don't consider the '--plugin-path' opt. * include/babeltrace2/plugin/plugin-dev.h: "define" -> "definition * Fix: doc: escape double quote in bt_p alias * Fix: bt2: pass _TraceClassConst to destruction listeners * fix: 'load_module()' deprecated in Python 3.12 * tests: retry os.rename on PermissionError failure in lttng_live_server.py * doc: fix uptream -> upstream typos * fix: test_message_iterator.py hangs on Python 3.12 * plugin-dev: mark symbols meant to be public with __attribute__((visibility("default"))) * Silence -Wunused-but-set-variable error with clang * Fix: Windows DLL path lookup with Python >= 3.8 * doc/man: make default values of boolean init. params. clearer * RFC: docs: fix: Match stated automake requirement * fix: make flake8 6.x happy * fix: running black on python 3.11 * bt_query_executor_create_with_method_data(): fix docs note * Fix: ctf-writer: null dereference in bt_ctf_trace_common_add_stream_class * Update working version to Babeltrace v2.0.6 (From OE-Core rev: a5f05da60ca888456900f9fb0a52ef07db754c06) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: update to v2.13.12Bruce Ashfield2024-04-0411-487/+368
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We drop our previously backported patches for v6.8 kernels as they are part of the 2.13.12 release of lttng and we add backports for v6.9+ kernels. Bumping lttng-modules to version v2.13.12-7-g52eb2ee9, which comprises the following commits: 52eb2ee9 Fix: dev_base_lock removed in linux 6.9-rc1 175fe77c Fix: mm_compaction_migratepages changed in linux 6.9-rc1 303434ab Fix: ASoC add component to set_bias_level events in linux 6.9-rc1 88c4e0fe Fix: ASoC snd_doc_dapm on linux 6.9-rc1 578ab207 Fix: build kvm probe on EL 8.4+ 057ad399 Fix: support ext4_journal_start on EL 8.4+ 3ca21738 Fix: correct RHEL range for kmem_cache_free define 4ba4f0ec Version 2.13.12 1124749b docs: Add supported versions and fix-backport policy c302cf1d docs: Add links to project resources d6b75831 Fix: Correct minimum version in jbd2 SLE kernel range 9e6736d6 Fix: Handle recent SLE major version codes 5d331562 Fix: build on sles15sp4 f6800492 Compile fixes for RHEL 9.3 kernels d988f04a Fix: ext4_discard_preallocations changed in linux 6.8.0-rc3 616c60b9 Fix: btrfs_get_extent flags and compress_type changed in linux 6.8.0-rc1 8d195927 Fix: btrfs_chunk tracepoints changed in linux 6.8.0-rc1 7e8d89d1 Fix: strlcpy removed in linux 6.8.0-rc1 f4c1678d Fix: timer_start changed in linux 6.8.0-rc1 60a1e809 Fix: sched_stat_runtime changed in linux 6.8.0-rc1 (From OE-Core rev: f8be1a87f1a7e7de714d19a6b3afe59e6f177e7d) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: fix rotation-destroy-flush test fails if no kernel module presentXiangyu Chen2024-04-042-0/+57
| | | | | | | | | | | | | | lttng-tools supports testing the userspace application without kernel module since oe-core commit e0d8494b, this is a fix that testcase rotation-destroy-flush report LTTNG_ABORT_ON_ERROR when no lttng kernel module present. Fixes: e0d8494b (lttng-tools: skip kernel tests if no kernel modules present) (From OE-Core rev: 34b6554f9f889e84ab6004c4af87e0714b8263c4) Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: fix v6.8+ buildYogesh Tyagi2024-03-202-0/+53
| | | | | | | | | Backport a patch which remove 'needed' in trace_ext4_discard_preallocations (From OE-Core rev: 88c78fec6daf34d4bf50f788a0adc75e601994da) Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: skip kernel tests if no kernel modules presentXiangyu Chen2024-03-183-0/+1272
| | | | | | | | | | | | | | | | The current tests will run both userspace and kernel testing. Some of use cases only use lttng for one kind of tracing (e.g. userspace). If the lttng modules(.ko files) is not present during the test,it would end up with lots of failing. Add a check in ptest script, if current system doesn't contain lttng kernel modules, passing LTTNG_TOOLS_DISABLE_KERNEL_TESTS=1 to make to skip all lttng kernel related testing. (From OE-Core rev: e0d8494b569bc5fb45d9a4bafa25527a0ee3d970) Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-ust: Upgrade 2.13.6 -> 2.13.7Richard Purdie2024-02-214-18/+17
| | | | | | | | Update one of the patches to account for upstream changes. (From OE-Core rev: e0ec2f9358be0e8b5979e534ae3a266b138cc172) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: fix v6.8+ buildBruce Ashfield2024-02-026-1/+434
| | | | | | | | | | | | | | linux-yocto-dev is updating to 6.8 and lttng-modules needs to be updated to account for upsream kernel fixes. These patches are all grabbed from the lttng review gerrit and backported to lttng-modules 2.13.0. (From OE-Core rev: 9a8c065784a9b665246bebe3e635e0ca43cfb30a) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: upgrade 2.13.10 -> 2.13.11Denys Dmytriyenko2024-01-274-189/+1
| | | | | | | | | | | | Changelog: https://lwn.net/Articles/957396/ Drop 2 backported patches and 1 implemented differently upstream. (From OE-Core rev: 90eef01e2d7fbde43e8325f075383d0931924cc8) Signed-off-by: Denys Dmytriyenko <denis@denix.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: fix build for v6.7+Bruce Ashfield2023-12-015-5/+193
| | | | | | | | | | | | | | While working on the update to linux-yocto-dev lttng-modules needed some tweaks (as usual). With these three patches (submitted to lttng-dev), we can once again build core-image-kernel-dev for v6.7+ (From OE-Core rev: b8b7b4d9274bde36f43c43207c463730f22e1f5f) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Upgrade 2.13.10 -> 2.13.11Richard Purdie2023-09-201-1/+1
| | | | | | (From OE-Core rev: b5109f923641ab5e51488ec5e6c0548b0cb8a599) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Upgrade 2.13.9 -> 2.13.10Richard Purdie2023-08-173-158/+1
| | | | | | (From OE-Core rev: 6dffea78a6de286de67524b558bb1527fedd673e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: Upgrade 2.13.9 -> 2.13.10Richard Purdie2023-08-176-402/+1
| | | | | | (From OE-Core rev: bfc0118e21ac8a287f5bc4398a1ca02c788b17ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-ust: upgrade 2.13.5 -> 2.13.6Wang Mingyu2023-06-281-1/+1
| | | | | | | | | | | | | | | | | | Changelog: =========== * Fix: segmentation fault on filter interpretation in "switch" mode * Fix: `ip` context is expressed as a base-10 field * Fix: c99: use __asm__ __volatile__ * Fix: c99: static assert: clang build fails due to multiple typedef * Fix: Reevaluate LTTNG_UST_TRACEPOINT_DEFINE each time tracepoint.h is included * Fix: trace events in C++ constructors/destructors * Fix: trace events in C constructors/destructors * Fix: use unaligned pointer accesses for lttng_inline_memcpy (From OE-Core rev: 656470b4b0db579308d218d1ece77bdacd168d14) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* babeltrace2: Always use BFD linker when building tests with ld-is-lld distro ↵Khem Raj2023-06-151-0/+1
| | | | | | | | | | | | | | | | | | feature lld results in textrels in some .so used in tests, fixes babeltrace2-ptest: ELF binary /usr/lib/babeltrace2/ptest/tests/lib/test-plugin-plugins/plugin-minimal.so has relocations in .text babeltrace2-ptest: ELF binary /usr/lib/babeltrace2/ptest/tests/lib/test-plugin-plugins/plugin-sfs.so has relocations in .text [textrel] ERROR: babeltrace2-2.0.5-r0 do_package_qa: QA Issue: babeltrace2: ELF binary /usr/lib/babeltrace2/plugins/babeltrace-plugin-ctf.so has relocations in .text babeltrace2: ELF binary /usr/lib/babeltrace2/plugins/babeltrace-plugin-utils.so has relocations in .text babeltrace2: ELF binary /usr/lib/babeltrace2/plugins/babeltrace-plugin-text.so has relocations in .text [textrel] (From OE-Core rev: 18d443b53a0d76102fbbc1088fbcb3f8087a2b1b) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* babeltrace2: upgrade 2.0.4 -> 2.0.5Wang Mingyu2023-06-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changelog: ========== * bt2: honor build system compiler/linker preferences * Fix: clear_string_field(): set first character to 0 * Fix: src.ctf.fs: Not resolving event common ctx * debug-info: fix -Wenum-int-mismatch problem in copy_field_class_content_internal * fix: pass exec-prefix to python bindings install * fix: document proper Bison version requirement * cli: use return value of g_string_free * babeltrace2-query(1): erroneous parameter used in example * Fix: tests: print real values in a fixed format * Fix: bt2: autodisc: remove thread error while inserting status in map * tests: src.ctf.fs: add test for metadata with invalid syntax * tests: shorten names of session-rotation trace * bt2: ignore -Wredundant-decls warning * ctf: fix -Wformat-overflow error in ctf-meta-resolve.cpp * ctf-writer: fix -Wformat-overflow errors in resolve.c * Fix: src.text.details: use write_uint_prop_value to handle unsigned values in write_int_range * Add `dev-requirements.txt` for pip * Fix: src.ctf.lttng-live: consider empty metadata packet as retry * Fix: ctf: wrongfully requiring CTF metadata signature for every section * Fix: src.ctf.lttng-live: session closed before any metadata is received * fix: obsolete warnings with autoconf >= 2.71 * fix: explicitly disable '-Wsuggest-attribute=format' * fix: set stable branch in gitreview config * Fix: ctf-writer: list of reserved keywords * compiler warning cleanup: is_signed_type: compare -1 to 1 * Update working version to Babeltrace 2.0.5 (From OE-Core rev: ae47b6c2a4bdee031d42687582049c15614faa6d) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Add patch to fix gcc 13 test issueRichard Purdie2023-05-263-0/+157
| | | | | | | | Add a couple of patches from upstream which fix a failing test with gcc 13. (From OE-Core rev: 9148de637f565578a96e8c02bad765ce3daffe27) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes: Default to https git protocol where possibleRichard Purdie2023-05-053-3/+3
| | | | | | | | | | The recommendation from server maintainers is that the https protocol is both faster and more reliable than the dedicated git protocol at this point. Switch to it where possible. (From OE-Core rev: 139102a73d4151f4748b4a861bd4ab28dda7dab7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: fix for v6.3+ kernelsBruce Ashfield2023-03-225-0/+324
| | | | | | | | | | | | | | | As part of updating linux-yocto-dev to v6.3, lttng-modules needs to have four backported patches to adjust for the new kernel version. These are safe for inclusion in the upcoming release, as they are version protected and provide some future proofing for folks trying to use newer kernels than our released 6.1. (From OE-Core rev: e9f0070631b032a143b765874a228674c19d0304) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: update to v2.13.9Bruce Ashfield2023-03-224-162/+1
| | | | | | | | | | | | | | | | | | | Bumping lttng-modules to version v2.13.9-4-g12f43cab, which comprises the following commits: da1f5a26 Version 2.13.9 dc2d1294 fix: jbd2: use the correct print format (v5.4.229) d04c1211 fix: jbd2 upper bound for v5.10.163 4b8864fc fix: jbd2: use the correct print format (v5.10.163) 69d3aa79 fix: btrfs: move accessor helpers into accessors.h (v6.2) We drop our previously backported commits as well, since they are part of the release. (From OE-Core rev: 79d8e93adde07ff3a4a239d66649ee566a2437d6) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>