summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/lttng
Commit message (Collapse)AuthorAgeFilesLines
* lttng-modules: Fix build failure for 5.10.119+ and 5.15.44+ kernelHe Zhe2022-06-042-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | The following kernel commit has been back ported to v5.10.119 and v5.15.44. commit 14c174633f349cb41ea90c2c0aaddac157012f74 Author: Jason A. Donenfeld <Jason@zx2c4.com> Date: Thu Feb 10 16:40:44 2022 +0100 random: remove unused tracepoints These explicit tracepoints aren't really used and show sign of aging. It's work to keep these up to date, and before I attempted to keep them up to date, they weren't up to date, which indicates that they're not really used. These days there are better ways of introspecting anyway. Which causes the following build failure lttng-modules-2.13.3/src/probes/lttng-probe-random.c:18:10: fatal error: trace/events/random.h: No such file or directory | 18 | #include <trace/events/random.h> | | ^~~~~~~~~~~~~~~~~~~~~~~ | compilation terminated. (From OE-Core rev: c8effd12cae7c7024f8e6c8f6ef70ed602d380ed) Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: fix build against 5.18-rc7+Bruce Ashfield2022-05-212-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lttng-modules fails to build against 5.18-rc7, the details of the fix are as follows: The commit [fix: sched/tracing: Don't re-read p->state when emitting sched_switch event (v5.18)] was correct, but the kernel changed their mind with the following commit: commit 9c2136be0878c88c53dea26943ce40bb03ad8d8d Author: Delyan Kratunov <delyank@fb.com> Date: Wed May 11 18:28:36 2022 +0000 sched/tracing: Append prev_state to tp args instead Commit fa2c3254d7cf (sched/tracing: Don't re-read p->state when emitting sched_switch event, 2022-01-20) added a new prev_state argument to the sched_switch tracepoint, before the prev task_struct pointer. This reordering of arguments broke BPF programs that use the raw tracepoint (e.g. tp_btf programs). The type of the second argument has changed and existing programs that assume a task_struct* argument (e.g. for bpf_task_storage access) will now fail to verify. If we instead append the new argument to the end, all existing programs would continue to work and can conditionally extract the prev_state argument on supported kernel versions. Fixes: fa2c3254d7cf (sched/tracing: Don't re-read p->state when emitting sched_switch event, 2022-01-20) Signed-off-by: Delyan Kratunov <delyank@fb.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org> Link: https://lkml.kernel.org/r/c8a6930dfdd58a4a5755fc01732675472979732b.camel@fb.com By reordering the parameters (again) we can get back up and building. Upstream-Status: Backport (From OE-Core rev: fb69e5cfb043a15354beb2d613772aa0233d12ae) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: upgrade 2.13.4 -> 2.13.7Alexander Kanavin2022-05-051-2/+9
| | | | | | | | (From OE-Core rev: c7e2901eacf3dcbd0c5bb91d2cc1d467b4a9aaf7) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* babeltrace: Disable warnings as errorsKhem Raj2022-04-191-1/+1
| | | | | | | | | | | | | | | | | | | | | These settings are good for developers/maintainers but for distributions generally disabling them turns out to be better especially when there is a knob to do so. This fixes build with gcc-12 which find additional warnings inlined from 'bt_ctf_object_set_parent' at ../../../git/src/ctf-writer/object.h:120:6, inlined from 'bt_ctf_trace_common_add_stream_class' at ../../../git/src/ctf-writer/trace.c:1243:3: ../../../git/src/ctf-writer/object.h:141:26: error: null pointer dereference [-Werror=null-dereference] 141 | if (child->parent) { | ~~~~~^~~~~~~~ ../../../git/src/ctf-writer/object.h:141:26: error: null pointer dereference [-Werror=null-dereference] cc1: all warnings being treated as errors (From OE-Core rev: 1898d10dd4d4372823e6c8b8c4ed28604e692365) 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>
* lttng-modules: support kernel 5.18+Bruce Ashfield2022-04-1411-1/+750
| | | | | | | | | | | | | Backporting changes from lttng master to support building against the 5.18+ kernel. No changes required to the patches. Once a new -stable 2.13.x is released, we can drop these patches. To enable newer kernel development against the LTS, it is worth pulling these in while we wait for an upstream release. (From OE-Core rev: 8a7237a47488442513741930ea55d69dd6bd7be4) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-ust: upgrade 2.13.1 -> 2.13.2wangmy2022-03-291-1/+1
| | | | | | | | (From OE-Core rev: bdde01d83f52103c9a93a90f481bcf8f2e7b301f) 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-modules: upgrade 2.13.2 -> 2.13.3wangmy2022-03-291-1/+1
| | | | | | | | (From OE-Core rev: f9b3727b9f4014a8b08c2ba9c03b8b5f96f01083) 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-modules: remove redundant devupstream assignmentsRoss Burton2022-03-171-5/+0
| | | | | | | | | These are set by devupstream, so they don't need to be set in the recipe. (From OE-Core rev: 39d39c61633e229a04eec6848b5e49c9f9860fa8) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: upgrade 2.13.1 -> 2.13.2wangmy2022-03-168-676/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The following patches removed since they're included in 2.13.2 0001-fix-block-remove-GENHD_FL_SUPPRESS_PARTITION_INFO-v5.patch 0002-fix-block-remove-the-rq_disk-field-in-struct-request.patch 0003-fix-mm-compaction-fix-the-migration-stats-in-trace_m.patch 0004-fix-btrfs-pass-fs_info-to-trace_btrfs_transaction_co.patch 0005-fix-random-rather-than-entropy_store-abstraction-use.patch 0006-fix-net-skb-introduce-kfree_skb_reason-v5.17.patch 0007-fix-net-socket-rename-SKB_DROP_REASON_SOCKET_FILTER-.patch Changelog: ========= * Fix: incorrect in/out direction for syscall exit * fix: net: socket: rename SKB_DROP_REASON_SOCKET_FILTER (v5.17) * fix: net: skb: introduce kfree_skb_reason() (v5.17) * fix: random: rather than entropy_store abstraction, use global (v5.17) * fix: btrfs: pass fs_info to trace_btrfs_transaction_commit (v5.17) * fix: mm: compaction: fix the migration stats in trace_mm_compaction_migratepages() (v5.17) * fix: block: remove the ->rq_disk field in struct request (v5.17) * fix: block: remove GENHD_FL_SUPPRESS_PARTITION_INFO (v5.17) * Copyright ownership transfer (From OE-Core rev: 093d6dba95c03911d3d7e1b3b07ceff2c1de5563) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta/meta-selftest/meta-skeleton: Update LICENSE variable to use SPDX ↵Richard Purdie2022-02-205-5/+5
| | | | | | | | | | | | | license identifiers An automated conversion using scripts/contrib/convert-spdx-licenses.py to convert to use the standard SPDX license identifiers. Two recipes in meta-selftest were not converted as they're that way specifically for testing. A change in linux-firmware was also skipped and may need a more manual tweak. (From OE-Core rev: ceda3238cdbf1beb216ae9ddb242470d5dfc25e0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: update devupstream to latest 2.13Bruce Ashfield2022-02-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes the following commits since the last update: 7584cfc0 fix: net: socket: rename SKB_DROP_REASON_SOCKET_FILTER (v5.17) 6e9d0d57 fix: net: skb: introduce kfree_skb_reason() (v5.17) 98b7729a fix: random: rather than entropy_store abstraction, use global (v5.17) c8f96e77 fix: btrfs: pass fs_info to trace_btrfs_transaction_commit (v5.17) afc4fe89 fix: mm: compaction: fix the migration stats in trace_mm_compaction_migratepages() (v5.17) 4b1945d3 fix: block: remove the ->rq_disk field in struct request (v5.17) a88ee460 fix: block: remove GENHD_FL_SUPPRESS_PARTITION_INFO (v5.17) babc49c6 Copyright ownership transfer 8c0aec7e Version 2.13.1 533556cd fix: mm: move kvmalloc-related functions to slab.h (v5.16) 2f0087ab fix: block: don't call blk_status_to_errno in blk_update_request (v5.16) 9b092ff2 fix: KVM: MMU: change tracepoints arguments to kvm_page_fault (v5.16) 036297af fix: KVM: x86: Get exit_reason as part of kvm_x86_ops.get_exit_info (v5.16) a029f2a3 fix: isystem: delete global -isystem compile option (v5.16) d82de6f3 fix: block: move block-related definitions out of fs.h (v5.16) 4fabf854 Fix: syscall tracing: missing trigger actions 38b35aff Warn on event registration/unregistration failure e26f740b fix: implicit-int error in EXPORT_SYMBOL_GPL c570be0d fix: Revert "Makefile: Enable -Wimplicit-fallthrough for Clang" (v5.15) (From OE-Core rev: d8ceaf9c97984f51a0526dbcc05ee2635f03b0c7) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: fix build against v5.17+Bruce Ashfield2022-02-108-0/+673
| | | | | | | | | | | | | To fix the build against v5.17+ kernels, we backport 7 patches from the lttng-modules upstream repository. If a 2.13.2 lttng-modules release is done before the upcoming release, we'll obviously drop these patches. (From OE-Core rev: 4783a0fd9f86a0247a44b07bdb7e733e57c6664f) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: upgrade 2.13.2 -> 2.13.4Richard Purdie2022-02-031-1/+1
| | | | | | (From OE-Core rev: 0e8fcfbb4565807a84d1a7d10bbc59d1675e33ec) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: update to 2.13.1Bruce Ashfield2022-01-153-1226/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Bumping lttng-modules to 2.13.1, which fixes the build against 5.16+ kernels. We drop two previously backported patches. The following commits are part of this update: 8c0aec7e Version 2.13.1 533556cd fix: mm: move kvmalloc-related functions to slab.h (v5.16) 2f0087ab fix: block: don't call blk_status_to_errno in blk_update_request (v5.16) 9b092ff2 fix: KVM: MMU: change tracepoints arguments to kvm_page_fault (v5.16) 036297af fix: KVM: x86: Get exit_reason as part of kvm_x86_ops.get_exit_info (v5.16) a029f2a3 fix: isystem: delete global -isystem compile option (v5.16) d82de6f3 fix: block: move block-related definitions out of fs.h (v5.16) 4fabf854 Fix: syscall tracing: missing trigger actions 38b35aff Warn on event registration/unregistration failure e26f740b fix: implicit-int error in EXPORT_SYMBOL_GPL c570be0d fix: Revert "Makefile: Enable -Wimplicit-fallthrough for Clang" (v5.15) 8be4c8a3 fix: cpu/hotplug: Remove deprecated CPU-hotplug functions. (v5.15) (From OE-Core rev: 2edeebed4ff172f77e337af82fc1cddc681881df) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Upgrade 2.13.1 -> 2.13.2Richard Purdie2021-12-204-376/+1
| | | | | | | | Drop backported patches. (From OE-Core rev: 313279ffa9054718696ded085d3b88e2ab2972ea) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Disable problem testsRichard Purdie2021-12-142-0/+35
| | | | | | | | | | | | There is a pattern of the notification tests hanging. Whilst we need to get to the bottom of that, disable them for now as it is causing high load for triage/SWAT and masking other failures. [YOCTO #14263] (From OE-Core rev: 9b96efe8984df955b8880b83b1b48ad9be37863b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Backport ptest fixRichard Purdie2021-12-143-0/+333
| | | | | | | | | Add a backport and a dependency from upstream to help address one of the lttng-tools ptest relayd hangs we've been seeing on the autobuilder. (From OE-Core rev: c8f845a8f391fa5f3f69a987b3977abdb4959db8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-ust: upgrade 2.13.0 -> 2.13.1Richard Purdie2021-12-121-1/+1
| | | | | | (From OE-Core rev: d1099ea887b5d11ce62ff651f83915ed5f7e7fbe) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng: submit patches upstreamAlexander Kanavin2021-12-062-2/+2
| | | | | | | (From OE-Core rev: 6a7bd6cdf4f81808212807182861815483277272) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* patches: correct whitespace/spelling for Upstream-Status tagsAlexander Kanavin2021-11-212-2/+2
| | | | | | | (From OE-Core rev: c613ca14c35a5d1782c79a25b83875cbfa2b952b) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: upgrade 2.13.0 -> 2.13.1wangmy2021-10-273-270/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2021-10-18 lttng-tools 2.13.1 (National Chocolate Cupcake Day) Fix: ust: app stuck on recv message during UST comm timeout scenario Fix: ust: UST communication can return -EAGAIN Fix: ust: segfault on lttng start on filter bytecode copy Fix: sessiond: previously created channel cannot be enabled Build fix: Missing message in LTTNG_DEPRECATED invocation Fix: notification-thread: handling event from a removed tracer event src include: add missing "extern" include: remove spurious spaces in condition/session-rotation.h tests: fix header of regression/ust/getcpu-override/run-getcpu-override fix: wrong define used for GCC version check Fix: userspace-probe: unreported error on string copy error Fix: userspace-probe: truncating binary path for SDT Fix: lttng: add-trigger: don't provide a default event rule type Fix: statements with side-effects in assert statements Fix: lttng_trace_archive_location_serialize is called on freed memory Fix: sessiond: ust session is inactive during ust_app_global_update Fix: common: error query for trigger action protocol error Fix: common: un-hide two rate policy functions Fix: include: remove unneeded declaration of lttng_session_descriptor_get_session_name Fix: Tests: race condition in test_ns_contexts_change Fix: Tests: race condition in test_event_tracker Fix: man: lttng-rotate: trace file count/size limitation does not apply Fix: runas: less-than-zero comparison of an unsigned value Fix: runas: supplementary groups are ignored on lttng save Docs: lttng-event-rule(7): --exclude does not exist, use --exclude-name sessiond: logging typo: {triger, triggger} -> trigger Fix: lttng: free sessions in cmd_destroy Fix: lttng: free domains and channels in get_session_stats_str 0001-Fix-Tests-race-condition-in-test_event_tracker.patch 0002-Fix-Tests-race-condition-in-test_ns_contexts_change.patch are removed since they're included in 2.13.1 (From OE-Core rev: 9541cac079b0fa4961328f610e3df3ccf5316cea) 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: replace ad hoc ptest fixup with upstream fixesAlexander Kanavin2021-10-134-89/+269
| | | | | | | (From OE-Core rev: 87fd3080c86f6987e4403a2cb8263564f6e1ac4f) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-ust: fix do_compile failure for arm32 with DEBUG_BUILD enabledChangqing Li2021-10-091-0/+1
| | | | | | | | | | | | | | | | | | | After upgrade to 2.13.0, for arm32, with DEBUG_BUILD enabled, lttng-ust build failed with error: | /path/to/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/lttng-ust/2_2.13.0-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/11.2.0/ld: ../../../src/lib/lttng-ust/.libs/liblttng-ust.so: undefined reference to `_uatomic_link_error' | collect2: error: ld returned 1 exit status | Makefile:399: recipe for target 'test_ust_error' failed | make[3]: *** [test_ust_error] Error 1 The problem has reported to upstream, and upstream suggests to use -DUATOMIC_NO_LINK_ERROR for the failure case, refer [1]. [1]https://lists.lttng.org/pipermail/lttng-dev/2021-September/030056.html (From OE-Core rev: 722d58bccd5616b3b3364845bbf1121d3cc0c3cd) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: fix build against 5.15+Bruce Ashfield2021-09-263-1/+1227
| | | | | | | | | | | | When testing linux-yocto-dev 5.15-rc, lttng-modules fails to build. Upstream already has fixes for 5.15 in the release branch, so we backport the two patches here and we can drop them on the next version bump. (From OE-Core rev: af17b507009be14d6f7069d39feb1fbd7563471d) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules/dev-upstream: update to 2.13-latestBruce Ashfield2021-09-261-2/+2
| | | | | | | | | | | To ensure we can build against 5.15, and to keep in sync with the versioned recipe, we bump to the latest commit on the 2.13 release branch. (From OE-Core rev: 1317bd6f92f32444301c5f6cf0c98e7a64e92f66) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-ust: fix do_compile error when PACKAGECONFIG examples is enabledChangqing Li2021-09-232-0/+36
| | | | | | | | | | | | when PACKAGECONFIG enabled examples, compile failed with error: fix below compile error during PACKGAGECONFIG examples is enabled: tmp/work/corei7-64-wrs-linux/lttng-ust/2_2.13.0-r0/recipe-sysroot-native/usr/bin/x86_64-wrs-linux/../../libexec/x86_64-wrs-linux/gcc/x86_64-wrs-linux/11.2.0/ld: warning: liblttng-ust-common.so.1, needed by ../../../src/lib/lttng-ust/.libs/liblttng-ust.so, not found (try using -rpath or -rpath-link) tmp/work/corei7-64-wrs-linux/lttng-ust/2_2.13.0-r0/recipe-sysroot-native/usr/bin/x86_64-wrs-linux/../../libexec/x86_64-wrs-linux/gcc/x86_64-wrs-linux/11.2.0/ld: warning: liblttng-ust-tracepoint.so.1, needed by ../../../src/lib/lttng-ust/.libs/liblttng-ust.so, not found (try using -rpath or -rpath-link) (From OE-Core rev: 907ebb5bb3d44dd5f68deb238098fb6f6413e2d4) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Add missing DEPENDS on bison-nativeRichard Purdie2021-09-211-1/+1
| | | | | | | | | | This was being provided by other pieces of the dependency chain but is specifically required by configure and could fail if those pieces come from sstate. Fix such builds by adding the missing dependency. (From OE-Core rev: ba2587beb2a3fb0ef9139f846e161542d2c5c4ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes: Add missing pkgconfig inheritRichard Purdie2021-09-211-1/+1
| | | | | | | | | | | | Various recipes were missing a pkgconfig inherit or pkgconfig-native dependency despite using pkgconfig. Add the inherit to igt-gpu-tools/gdb/libmodulemd/libwpe/xwayland/waffle shaderc/iputils/wpebackend-fdo/lttng-ust/cargo. (From OE-Core rev: 777d9744570c2dc119dc5d04985896bbb1da5885) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng: update 2.12 -> 2.13.0Alexander Kanavin2021-09-108-76/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | Drop 0001-tests-regression-disable-the-tools-live-tests.patch (mass-disabling of ptests) and replace that with more targeted fixes: - a patch that adds explicit sleeps where races due to too tight timings were observed (not a proper fix; upstream needs to figure out how to sync explicitly and reliably) - LD_LIBRARY_PATH so that helper binaries are able to find their custom libraries they're linked with (we strip rpath from them for reproducibility) - set pgrep location explicitly as it used unconditionally on target, but auto-detected (incorrectly) on the host - enable kmod as it is available in target images - correct various missing scripts, binaries, and inhibit stripping where that is expected. License-Update: license info consolidated in LICENSE (From OE-Core rev: 750d640f12b5c6804af51a67e23d4aca93564b79) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: '${systemd_unitdir}/system' => '${systemd_system_unitdir}'Robert P. J. Day2021-09-071-2/+2
| | | | | | | | | | | Repo-wide replacement to use newer variable to represent systemd system unitdir directory. (From OE-Core rev: 5ace3ada5c54500c71becc8e0c6eddeb8bc053e3) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: do not search in non-existing folder during installAndrey Zhizhikin2021-08-271-1/+3
| | | | | | | | | | | | | | | | When CONFIG_TRACEPOINTS is not enabled in kernel config - module compilation is skipped, which causes the ${D}/${nonarch_base_libdir} not to be created. This fails later in do_install:append() due to the fact that find command in executed for non-existing folder. Check for folder existence before find command in executed. (From OE-Core rev: de0aa1700ed4e6f04b0a233eb1f6d2ac598e7ed8) Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: Make it build when CONFIG_TRACEPOINTS is not enabled againPeter Kjellerstedt2021-08-263-51/+21
| | | | | | | | | | | | | | | | Makefile-Do-not-fail-if-CONFIG_TRACEPOINTS-is-not-en.patch was updated with the 2.13.0 update (commit 5dad15af), but unfortunately it no longer did what it was intended to do. There is also 0001-src-Kbuild-change-missing-CONFIG_TRACEPOINTS-to-warn.patch, which was based on the former patch, but it too does not solve the problem. Unify the two patches, and actually disable building of the kernel module if CONFIG_TRACEPOINTS is not enabled, the way it was intended. (From OE-Core rev: f2411917c09a31d154d29060f6c7e4ce7d544fc7) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: update to 2.13.0Bruce Ashfield2021-08-182-24/+14
| | | | | | | | | | | | | | | | | | | Updating to 2.13.0, so we can pick up the latest -stable and support for 5.14+ kernels. We refresh one patch for new context, and update the LICENSE checksum due to commit 2df37e95fa4303 [Cleanup: Move headers from toplevel to include/lttng/]. which impacted the LICENSE file (but licensing is the same). MODULES_MODULE_SYMVERS_LOCATION must also be specified in this release, as the lttng build has moved the module target to a 'src' subdirectory. (From OE-Core rev: 5dad15af8b3423ad9631edf3eef6e77902f1b36e) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Convert to new override syntaxRichard Purdie2021-08-026-41/+41
| | | | | | | | | | | | This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: upgrade 2.12.3 -> 2.12.4Richard Purdie2021-06-081-3/+6
| | | | | | | | | | | | Add a new lttng file to one of the tests to avoid test failures. Also add a dependency on grep since standalone testing revealed test failures without this. Normally this was added by other dependencies in the ptest images so we didn't see this. (From OE-Core rev: 5799a807eed44d380e142913e50308589b9412ed) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-ust: Upgrade 2.12.1 -> 2.12.2Richard Purdie2021-05-161-2/+1
| | | | | | (From OE-Core rev: 03b9c9ab5e74c4e825a023e54fe8891f6f6cc809) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: update to v2.12.6Bruce Ashfield2021-05-168-781/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To support building against v5.12+ and v5.13+ kernels, bumping to the v2.12.6 lttng-release. We drop the previously backported patches, and bring in the following commits: 0d8e4ab9 Version 2.12.6 78f56ae3 fix: adjust ranges for RHEL 8.2 and 8.3 4c996ea7 Disable block rwbs bitwise enum in default build 4ac46085 Disable sched_switch bitwise enum in default build 5e22c27b Add experimental bitwise enum config option 937d307e Add defaults to Kconfig options 4a114d43 Sync `show_inode_state()` macro with upstream stable kernels 3bd6ac3e fix: block: remove disk_part_iter (v5.12) 8bbb8c9d Fix: Backport of "Fix: increment buffer offset when failing to copy from user-space" 30cddf69 Fix: increment buffer offset when failing to copy from user-space 4733b9ab Sync `show_inode_state()` macro with Ubuntu 4.15 kernel ff21ec48 fix: mm, tracing: kfree event name mismatching with provider kmem (v5.12) b2b02c29 Set 'stable-2.12' branch in git review config 00b42dbf fix backport: block: add a disk_uevent helper (v5.12) 771ff089 fix: Adjust ranges for Ubuntu 5.4.0-67 kernel d8933959 fix: block: add a disk_uevent helper (v5.12) 71034df1 Fix: properly compare type enumeration 4d879d23 compiler warning cleanup: is_signed_type: compare -1 to 1 fead3a9c Fix: bytecode linker: validate event and field array/sequence encoding 92cc3e7f Fix: kretprobe: null ptr deref on session destroy 49c603ef fix: mm, tracing: record slab name for kmem_cache_free() (v5.12) 23a2f61f Fix: filter interpreter early-exits on uninitialized value b3fdf78b Fix: memory leaks on event destroy (From OE-Core rev: c2f027b8e2f842915a0ffdfd6c2c0597f3b02bce) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: update devupstream to v2.13-rcBruce Ashfield2021-05-162-5/+42
| | | | | | | | | | | | | | | | To support builds against v5.13+ kernels, bumping the devupstream to 2.13 and the 2.13-rc series. Along with the SRCREV update, a port of the existing CONFIG_TRACEPOINTS patch from the main Makefile to src/Kbuild is done. The LICENSE file was part of commit [Cleanup: Move headers from toplevel to include/lttng/], so we adjust the checksum to the new fie contents. (From OE-Core rev: 18bf7b0eafc5331b0b33c0ae777374e24df741b8) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: backport patches to fix build against 5.12+ kernelVinícius Ossanes Aquino2021-05-094-0/+427
| | | | | | | | | | | | | | | | Add the following patches from stable-2.12 branch of lttng repository to fix errors when building lttng-modules against 5.12+ kernel since they are not present on the release 2.12.5: - 17cd2dc9 fix: block: add a disk_uevent helper (v5.12) - 127135b6 fix backport: block: add a disk_uevent helper (v5.12) - 853d5903 fix: mm, tracing: kfree event name mismatching with provider kmem (v5.12) (From OE-Core rev: 2538ba2b3490e3599d9ccd637aa8486ea428f1b0) Signed-off-by: Vinicius Aquino <vinicius.aquino@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Fix path for test_python_loogingAnders Wallin2021-04-181-1/+1
| | | | | | | | | " was missing (From OE-Core rev: e1780ccfc89e9ff4e260276f28ffa0bb8e9b44e1) Signed-off-by: Anders Wallin <anders.wallin@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Fix missing legacy test filesAnders Wallin2021-04-181-1/+1
| | | | | | | | | tests/regression/tools/save-load (From OE-Core rev: 2e892895e25d148b4c522e3a30bfb1bb4e9a9506) Signed-off-by: Anders Wallin <anders.wallin@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* babeltrace2: upgrade 2.0.3 -> 2.0.4Wang Mingyu2021-04-181-1/+1
| | | | | | | (From OE-Core rev: 628d335300ac378f8b7af5d1437873990fffa9e5) Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: backport patches to fix build against 5.12+ kernelBruce Ashfield2021-03-205-0/+353
| | | | | | | | | | | | There are four changes in addition to the 2.12.5 release that we need to build against the 5.12 kernel. Rather than only rely on people knowing to use devupstream support to build against newer kernels, we backport the 4 patches while waiting for release. (From OE-Core rev: 2d45c09bfbad969549c719654f72714324299f00) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: update devupstream to 2.12.5+Bruce Ashfield2021-03-201-2/+3
| | | | | | | | | | | When building against kernel v5.12-rc+, we need extra changes on top of the 2.12.5 release. We can bump devupstream separately from the main release to grab those changes. (From OE-Core rev: a53ddaa3dc5c072f9fbc5df5075e6067c0d6cc11) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: upgrade 2.12.4 -> 2.12.5Richard Purdie2021-03-161-1/+1
| | | | | | (From OE-Core rev: b6baf26d038300a6dc9a4d6f3b8a3e52e9ccf5d4) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: upgrade 2.12.2 -> 2.12.3Richard Purdie2021-03-161-1/+1
| | | | | | (From OE-Core rev: 8170e82ac528c57a891e92677e3a7a24aad5ba69) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes-kernel: Add missing HOMEPAGE and DESCRIPTION for recipes.Meh Mbeh Ida Delphine2021-03-022-0/+2
| | | | | | | | | Fixes: [YOCTO #13471] (From OE-Core rev: 16409694f19e4d3b7bdc10a7f71c67938ce5f3ff) Signed-off-by: Ida Delphine <idadelm@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng: Fix reproducibility issuesRichard Purdie2021-03-022-0/+71
| | | | | | | | | | | Add a hack to hardcode in specific rpaths which we then remove, allowing the build to be reproducible. Strip build patches out of one of the test scripts too. (From OE-Core rev: 18299a114c66280ba2d00becc3fae235d3a6cbd7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* babeltrace2: Fix reproducibilityRichard Purdie2021-02-231-1/+1
| | | | | | | | | | | babeltrace2-ptest was referencing the host's python version in it's makefiles. Whilst this could be fixed, its easier to correct the python version being found to the target one which works much more effectively and solves the issue. (From OE-Core rev: 559f16d2fef4f8b04a9db1104b4a5b63f7876c68) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-ust: upgrade 2.12.0 -> 2.12.1Wang Mingyu2021-02-231-2/+2
| | | | | | | (From OE-Core rev: 5fad57044fb0d092ed166fe2e252570aa8cfc155) Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>