Commit Graph

406 Commits

Author SHA1 Message Date
Khem Raj
77a5a1cc12 babeltrace2: Update patch to upstreamed version of patch
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>
2025-05-19 17:35:42 +01:00
Wang Mingyu
be243fce55 babeltrace2: upgrade 2.1.0 -> 2.1.1
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>
2025-05-13 10:29:20 +01:00
Richard Purdie
589fd4db17 lttng-ust: upgrade 2.13.8 -> 2.13.9
(From OE-Core rev: 23de06c4e28929d540058071384aefa41d48b69a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-05-05 17:22:11 +01:00
Mikko Rapeli
1ebcf9f258 lttng-modules: fix build failure on genericarm64
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>
2025-04-29 09:59:01 +01:00
Richard Purdie
147011a7f6 lttng-modules: Upgrade 2.13.17 -> 2.13.18
Includes fixes for 64 bit time on 32 bit platforms.

(From OE-Core rev: f50a33c074a2de99c6b4b889c91c673162ec4040)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-04-23 09:47:42 +01:00
Richard Purdie
bb54e758d2 lttng-tools: 2.13.14 -> 2.13.15
Includes fixes for 64 bit time on 32 bit platforms.

(From OE-Core rev: bbb542aff833353dd5645e7f4c279ac3625a416f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-04-23 09:47:42 +01:00
Richard Purdie
1fce9adf75 lttng-tools: Update patch status
A couple of patches were merged upstream, mark as such.

(From OE-Core rev: ac8557164ed7a4fc2961a7d15aa202a7f38fb4ed)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-03-29 15:24:34 +00:00
Khem Raj
3d9391891d babeltrace2: Fix build with clang on 32bit hosts
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>
2025-03-24 17:29:16 +00:00
Bin Lan
2c6cb136ca babeltrace2: upgrade 2.0.6 -> 2.1.0
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>
2025-03-18 11:25:36 +00:00
Richard Purdie
a6f71564ab lttng-modules: Upgrade 2.13.16 -> 2.13.17
Drop patch now applied in the new release.

(From OE-Core rev: d6a9a41a2ef2d06aeca7742ecb0a40d45740989b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-03-17 22:38:32 +00:00
Changqing Li
be8263f9af babeltrace2: extend to nativesdk
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>
2025-03-07 11:13:24 +00:00
Changqing Li
e36a3eccb5 babeltrace: extend to nativesdk
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>
2025-03-07 11:13:24 +00:00
Richard Purdie
c2da016918 meta/meta-selftest: Fix variable assignment whitespace
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>
2025-02-01 13:42:34 +00:00
Ross Burton
141e4cffd7 lttng-tools: disable patching our libtool.m4
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] 6bd5984c2b

(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>
2025-01-20 13:38:59 +00:00
Xiangyu Chen
b51df1baa8 lttng-modules: fix sched_stat_runtime changed in Linux 6.6.66
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>
2024-12-23 11:41:38 +00:00
Richard Purdie
1ceff800a5 lttng-modules: Upgrade 2.13.15 -> 2.13.16
Drop two patches merged upstream.

(From OE-Core rev: 1bc656bac3bccbedde407a52969dfdca7f5a3c2b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-12-17 11:41:53 +00:00
Bin Lan
ab6062fb3f lttng-ust: backport patch to fix cmake-multiple-shared-libraries build error
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>
2024-11-12 23:54:35 +00:00
Bruce Ashfield
b1cfc7fbc2 lttng-modules: fix build for 6.12+
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>
2024-11-07 13:31:26 +00:00
Richard Purdie
71de567a60 lttng-modules: Upgrade 2.13.14 -> 2.13.15
Drop backported patches now not needed in the new version.

(From OE-Core rev: f180b28885a67ef2957c5286c99b8b0bfda0d605)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-10-22 11:39:58 +01:00
Richard Purdie
a79034e58b lttng-tools: 2.13.13 -> 2.13.14
(From OE-Core rev: c861c35c10230204b042613b5e53ae50c806b098)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-09-04 12:38:44 +01:00
Alexander Kanavin
b394b0e1c1 lttng-modules: update 2.13.13 -> 2.13.14
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>
2024-08-28 09:14:26 +01:00
Bruce Ashfield
5f273feeba lttng-modules: backport patches for kernel v6.11
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>
2024-08-08 14:28:49 +01:00
Richard Purdie
3c1c56ec07 native/nativesdk: Stop overriding unprefixed *FLAGS variables
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>
2024-07-01 13:58:08 +01:00
Bruce Ashfield
86705a293c lttng-modules: update to 2.13.13 and fix for 6.10+
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>
2024-06-04 12:04:52 +01:00
Richard Purdie
0ea63b6a43 recipes: Update WORKDIR references to UNPACKDIR
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>
2024-05-02 15:15:51 +01:00
Wang Mingyu
52e67109f1 lttng-ust: upgrade 2.13.7 -> 2.13.8
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>
2024-04-25 10:06:02 +01:00
Wang Mingyu
07fdef45cc lttng-tools: upgrade 2.13.11 -> 2.13.13
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>
2024-04-16 08:07:02 +01:00
Wang Mingyu
a79707b94d babeltrace2: upgrade 2.0.5 -> 2.0.6
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>
2024-04-16 08:07:02 +01:00
Bruce Ashfield
acdb1bb14e lttng-modules: update to v2.13.12
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>
2024-04-04 14:05:03 +01:00
Xiangyu Chen
f938563eea lttng-tools: fix rotation-destroy-flush test fails if no kernel module present
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>
2024-04-04 14:05:03 +01:00
Yogesh Tyagi
160dce550c lttng-modules: fix v6.8+ build
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>
2024-03-20 18:20:38 +00:00
Xiangyu Chen
276332d289 lttng-tools: skip kernel tests if no kernel modules present
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>
2024-03-18 12:21:45 +00:00
Richard Purdie
6f4ca08aa3 lttng-ust: Upgrade 2.13.6 -> 2.13.7
Update one of the patches to account for upstream changes.

(From OE-Core rev: e0ec2f9358be0e8b5979e534ae3a266b138cc172)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-21 22:20:10 +00:00
Bruce Ashfield
57640e0be8 lttng-modules: fix v6.8+ build
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>
2024-02-02 11:06:17 +00:00
Denys Dmytriyenko
c4a9b044d8 lttng-modules: upgrade 2.13.10 -> 2.13.11
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>
2024-01-27 08:20:03 +00:00
Bruce Ashfield
3f96cab3c4 lttng-modules: fix build for v6.7+
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>
2023-12-01 11:48:25 +00:00
Richard Purdie
e1a3d10aaa lttng-tools: Upgrade 2.13.10 -> 2.13.11
(From OE-Core rev: b5109f923641ab5e51488ec5e6c0548b0cb8a599)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-09-20 08:57:26 +01:00
Richard Purdie
12d9280c3d lttng-tools: Upgrade 2.13.9 -> 2.13.10
(From OE-Core rev: 6dffea78a6de286de67524b558bb1527fedd673e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-17 07:42:07 +01:00
Richard Purdie
6b81363786 lttng-modules: Upgrade 2.13.9 -> 2.13.10
(From OE-Core rev: bfc0118e21ac8a287f5bc4398a1ca02c788b17ae)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-17 07:42:07 +01:00
Wang Mingyu
96d1cfca0c lttng-ust: upgrade 2.13.5 -> 2.13.6
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>
2023-06-28 07:56:33 +01:00
Khem Raj
03b87d72b6 babeltrace2: Always use BFD linker when building tests with ld-is-lld distro 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>
2023-06-15 09:53:38 +01:00
Wang Mingyu
7c88bb0700 babeltrace2: upgrade 2.0.4 -> 2.0.5
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>
2023-06-02 15:16:35 +01:00
Richard Purdie
47d33683a1 lttng-tools: Add patch to fix gcc 13 test issue
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>
2023-05-26 07:54:17 +01:00
Richard Purdie
1285f78ce8 recipes: Default to https git protocol where possible
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>
2023-05-05 11:07:25 +01:00
Bruce Ashfield
f5c671e201 lttng-modules: fix for v6.3+ kernels
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>
2023-03-22 23:17:27 +00:00
Bruce Ashfield
fc363acc5b lttng-modules: update to v2.13.9
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>
2023-03-22 23:17:27 +00:00
Richard Purdie
2ea27691aa lttng-tools: Improve ptest debugging and fix dependencies
Improve the ptest runner script:

* log output is available should any test fail to aid debugging
* document how to limit the runner to a single test
* stop hiding errors to stderr
* allow easier single test execution by avoiding path issues with PWD

Also depend upon binutils since one of the tests uses addr2line.

(From OE-Core rev: 0f111c6eb1673a60663bcdd3d70c0f81bad370c4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-12 23:39:13 +00:00
Richard Purdie
d5e3449461 babeltrace: Fix ptest dependency
Add a missing dependency on make so ptests can run in a minimal image.

(From OE-Core rev: 3d0c068cdeaf819a62f5b918a70c36ab4fb86e76)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-12 23:39:13 +00:00
Richard Purdie
ee2d13c973 babeltrace2: Fix ptest execution in minimal images and add debug info
Tweak the ptest dependencies so they work correctly in minimal images. There
appears to be some usage of find or xargs that doesn't work with busybox.

Also improve the test runner so the test-suite.log is dumped upon error
which makes debugging much easier.

(From OE-Core rev: 6f52a0a9f0f26ac0039af3edd3df22e21bd8a4a7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-12 23:39:13 +00:00
Bruce Ashfield
bdf854311c lttng-modules: fix for kernel 6.2+
Backporting a patching from the 2.13.x stable branch of lttng
to fix the build against kernel 6.2+.

(From OE-Core rev: 3aed7dfe5ff6f52497dcffa58bc2f06cf709ea18)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-02-17 18:01:01 +00:00