summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/lttng
AgeCommit message (Collapse)Author
2019-12-31lttng-modules: fix NULL pointer deference error when testing rpc_task_runningQuanyang Wang
This is a backport from upstream https://github.com/lttng/lttng-modules.git stable-2.10 to fix NULL pointer deference error when running kts testcase lttng_syscall_events. (From OE-Core rev: a522ccff838ba1577255c90e64d98dd75470fb0a) Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-10-02lttng-ust: update patch Signed-off-byRoss Burton
Signed-off-by: Ross Burton <ross.burton@intel.com>
2019-09-27lttng-ust: Fix for --enable-python-agentRobert Yang
Fixed: PACKAGECONFIG_append_pn-lttng-ust = ' python3-agent' require conf/multilib.conf MULTILIBS = "multilib:lib32" DEFAULTTUNE_virtclass-multilib-lib32 = "x86" $ bitbake lttng-ust ERROR: lttng-ust-2_2.10.4-r0 do_package: QA Issue: lttng-ust: Files/directories were installed but not shipped in any package: /usr/lib /usr/lib/python3.7 /usr/lib/python3.7/site-packages /usr/lib/python3.7/site-packages/lttngust-2.10.4-py3.7.egg-info Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-19lttng-ust: Upgrade 2.10.4 -> 2.10.5Adrian Bunk
Remove patch for issue fixed upstream. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-19lttng-modules: Upgrade 2.10.10 -> 2.10.11Adrian Bunk
Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-16lttng-modules: Add missing SRCREV_FORMATDaniel Gomez
When using devupstream class the SRCREV_FORMAT variable must be set. Signed-off-by: Daniel Gomez <daniel@qtec.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2019-07-29lttng-tools: Fix build with glibc 2.30Khem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-27lttng-ust: Check for gettid libc APIKhem Raj
Fixes build with glibc 2.30 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-30babeltrace: update to 1.5.7Oleksandr Kravchuk
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-21lttng-tools: update to 2.10.7Jonathan Rajotte
Remove upstreamed patches. Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19lttng-tools: Filter ptest output to remove random tmp directoriesRichard Purdie
These tmp paths end up in the test names making it hard to compare test runs so filter them out, they're not useful for our purposes. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19lttng-ust:upgrade 2.10.3 -> 2.10.4Zang Ruochen
-Upgrade from lttng-ust_2.10.3.bb to lttng-ust_2.10.4.bb. -lttng-ust/0001-compat-work-around-broken-_SC_NPROCESSORS_CONF-on-MU.patch Removed since this is included in 2.10.4 Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18lttng-modules: Add git based recipeHe Zhe
The git based recipe is for those who want to build lttng-modules with bleeding edge kernel, to avoid regularly backporting patches from upstream. Note that PREFERRED_VERSION needs to be set to select the git recipe instead of the tar ball one. Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14lttng-modules: Upgrade 2.10.9 -> 2.10.10Adrian Bunk
Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07Remove manual RDEPENDS from PN-ptest to PN packageAdrian Bunk
They are now added automatically by the ptest class. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-28lttng-tools: Fix patch Upstream-StatusRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-27lttng-tools: add lttng-modules to ptest dependenciesJonathan Rajotte
The lttng-tools project is essentially a "tracer" controller, the tests depends heavily on lttng-ust and lttng-modules presence. Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-27lttng-tools: prevent test timeout when lttng-modules is not presentJonathan Rajotte
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-12lttng-modules: upgrade 2.10.8 -> 2.10.9Adrian Bunk
Remove the backported patches. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-04-26lttng-tools: Add missing patch Upstream-StatusRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-04-23lttng-tools: fix Upstream-StatusRoss Burton
Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-04-05lttng-ust: lttng-ust works fine on musl no need to remove itJonathan Rajotte
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-04-05lttng-ust: backport musl workaroundJonathan Rajotte
musl implementation for _SC_NPROCESSORS_CONF is a bit fishy. [1] https://www.openwall.com/lists/musl/2019/03/15/5 Anyway, we implemented a fallback. This patch should be gone by next recipe update. Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-04-05lttng-tools: improve ptest and test suiteJonathan Rajotte
Multiple patches are to be applied to improve the current ptest suite. 0001-Fix-tests-link-libpause_consumer-on-liblttng-ctl.patch 0002-Fix-test-skip-test_getcpu_override-on-single-thread-.patch 0003-Fix-test-unit-the-tree-origin-can-be-a-symlink-itsel.patch 0006-Tests-check-for-lttng-modules-presence.patch All deal with problem in the test suite. Most of these are already accepted upstream and will be removed on the next recipe update. 0004-Skip-when-testapp-is-not-present.patch Is a OE specific fix that make sure that we skip the test if the test util application (event generator) is not present. We are still unsure on how (upstream) we are going to solve this problem. We already have this problem if a user build lttng without lttng-ust (--without-lttng-ust). We will most probably end up splitting each test into kernel and userspace tests and adjust the makefile accordingly. Another option is to probe lttng for enabled function at runtime. 0005-Tests-use-modprobe-to-test-for-the-presence-of-lttng.patch Is a requirement for 0006 that should be accepted upstream shorlty. 0007-Fix-getgrnam-is-not-MT-Safe-use-getgrnam_r.patch Fixes a race found while testing OE built with musl. This is a legit bug. The fixes or a variant should be accepted soon. Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-03-19lttng: Enable tools and modules on riscvKhem Raj
Latest version compiles on risv64 now Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-03-18lttng-ust: add python3-agent featureJonathan Rajotte
Enable users to use lttng as an event sink for python3. For more details: https://lttng.org/docs/v2.10/#doc-python-application Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-03-18lttng-tools ptest: fix test_ust-dlJonathan Rajotte
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-03-18lttng-tools ptest: add missing dependenciesJonathan Rajotte
Multiple tests are failing due to missing dependencies on a bare core-image-minimal build with only lttng-tools ptest present. "getconf LONG_BIT" is used to get the bitness of the host to run the correct consumerd. Depend on glibc-utils. perl-module-overloading is needed to validate trace. babelstats.pl "head -c" is used to generate a random string. It is easier to depends on coreutils to get a feature complete "head" than to enable to "fancy head" feature of busybox. See utils.sh randstring. "taskset" is used in a couple of scripts to ensure that events generated finish in the same buffer. Depend on util-linux. [RP: Tweak for glibc/musl handling] Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-03-06lttng: add 5.x fixup patches to 2.10.8 releaseBruce Ashfield
lttng hasn't released 2.10.9, but the stable/2.10 branch contains changes that we need to build against the 5.0 kernel. We add them here as patches, and we can drop them in the future when lttng is updated. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-27lttng-tools: Disable hanging tests and other ptest fixesRichard Purdie
Disable some tests which hang, blocking many other ptests. Also add missing test artefacts to improve test pass rate and fix failures. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-16lttng-ust: Upgrade 2.10.2 -> 2.10.3Richard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-16lttng-tools: Upgrade 2.10.5 -> 2.10.6Richard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-01-26lttng: drop lost patchRuslan Bilovol
Commit "f63965c0f9fc lttng: uprev to 2.10.7" dropped 0001-Fix-btrfs-Remove-unnecessary-fs_info-parameter.patch from recipe, but left the patch itself in source tree. Remove this patch since nobody uses it. Cc: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-12-14lttng-tools: fix compile error for x32Kai Kang
Fix build error of src/common/utils.c for x32: | .../src/common/utils.c: Assembler messages: | .../src/common/utils.c:1026: Error: register type mismatch for `bsr' | .../src/common/utils.c:1028: Error: operand type mismatch for `movq' | make[3]: *** [utils.lo] Error 1 [YOCTO #13081] Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-11-23arc: Disable LTTngAlexey Brodkin
LTTng depends on liburcu which is not yet ported to ARC so disable LTTng on ARC for now. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-11-20lttng-tools: Upgrade 2.9.5 -> 2.10.5 and improve ptestRichard Purdie
A backported patch was removed. The kmod option changed format in the new version so was adjusted accordingly. The ptest package was improved to resolve failures in the tests/unit/ directory but disabling attempts to rebuild the binaries on target. Various ptest libtool script wrappers are now replaced with real binaries and since the test suite knows about these paths for dymanic libraries, we put links in place for those. A data file needed by one of the tests is also copied in. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-11-20lttng-tools: Improve ptest robustnessRichard Purdie
There are some fatal make errors that occur from the current ptest for lttng-tools however since other tests are successful, those make build failures were being ignored. When upgrading, the order of test execution changed and the ptest failed fatally straight away with the same errors. Passing -k to make means it will try and run all the tests making the test suite run more consistently over all lttng-tools versions. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-11-17lttng-modules: upgrade 2.10.7 -> 2.10.8Richard Purdie
Drop backported patch already applied upstream. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-11-17lttng-ust: upgrade 2.10.1 -> 2.10.2Richard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-10-10lttng-modules: Fix build failure by syncing up with kernel 4.19He Zhe
linux-yocto-dev has been upreved to v4.19. This patch backports a patch from upstream to make lttng-modules sync up with linux-yocto-dev and later linux-yocto, and fix the following do_compile error. | tmp/work/qemux86_64-poky-linux/lttng-modules/2.10.7-r0/lttng-modules-2.10.7/probes/../probes/lttng-tracepoint-event-impl.h:143:6: error: conflict ing types for 'trace_sock_exceed_buf_limit' | void trace_##_name(_proto); | ^~~~~~ Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-09-06babetrace: update to 1.5.6Alexander Kanavin
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-09-05lttng-tools: add systemd supportKai Kang
Add systemd service file of lttng-tools from Fedora ftp://fr2.rpmfind.net/linux/fedora/linux/development/rawhide /Everything/source/tree/Packages/l/lttng-tools-2.10.5-1.fc29.src.rpm It requires kernel configs CONFIG_STAGING and CONFIG_LTTNG2 to be set. But linux-yocto doesn't meet the requirement. So disable the service by default. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-08-28lttng: uprev to 2.10.7Bruce Ashfield
Uprev'ing lttng to 2.10.7 to support 4.18+ kernels. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-07-18lttng-modules: Fix do_compile failure for btrfs related tracepointsHe Zhe
Building lttng-modules with linux-yocto-dev will cause do_compile failure: lttng-modules/2.10.6-r0/lttng-modules-2.10.6/probes/../probes/lttng-tracepoint-event-impl.h:143:6: error: conflicting types for 'trace_btrfs_reserve_extent' void trace_##_name(_proto); ^~~~~~ The following commit from latest mainline kernel changes some btrfs functions' prototype. 3dca5c942dac60164e6a6e89172f25b86af07ce7 "btrfs: trace: Remove unnecessary fs_info parameter for btrfs__reserve_extent event class" This patch backports a commit from upstream to meet the above changes. 51ab0b1da29354375a19f865abcd233dd2178295 "Fix: btrfs: Remove unnecessary fs_info parameter" Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2018-07-07lttng-tools: Allow reconnect to relaydHe Zhe
If relayd is started after connection attempt from consumerd it will leave the session in disconnected state and causes the following inconvenience. This is covered by an upstream feature, see https://bugs.lttng.org/issues/883. Before it's done, this patches allows users to reconnect to relayd. root@localhost:~# lttng enable-event --userspace --all Error: Events: UST create channel failed (channel channel0, session trace_session) root@localhost:~# lttng-relayd -b Warning: No tracing group detected root@localhost:~# lttng enable-event --userspace --all Error: Events: UST create channel failed (channel channel0, session trace_session) Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-21lttng-modules: upgrade 2.10.5 -> 2.10.6Richard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-05-29babeltrace: fix upstream version checkAlexander Kanavin
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2018-05-15babeltrace: move ASNEEDED over-ride into the babeltrace recipeAndre McCurdy
Move the recipe specific over-ride for ASNEEDED into the recipe to make it more apparent that the over-ride is being applied (and that it should be re-checked on version updates, etc). Also misc minor recipe cleanup (re-order variables to follow the OE style guide, etc). Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2018-05-08babeltrace: switch over to gitAlexander Kanavin
Tarball directory is gone. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-05-04babeltrace: update to 1.5.5Alexander Kanavin
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>