summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/lttng/lttng-tools
Commit message (Collapse)AuthorAgeFilesLines
* lttng-tools: upgrade 2.13.11 -> 2.13.13Wang Mingyu2024-04-161-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* lttng-tools: fix rotation-destroy-flush test fails if no kernel module presentXiangyu Chen2024-04-041-0/+56
| | | | | | | | | | | | | | 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-tools: skip kernel tests if no kernel modules presentXiangyu Chen2024-03-182-0/+1271
| | | | | | | | | | | | | | | | 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-tools: Upgrade 2.13.9 -> 2.13.10Richard Purdie2023-08-172-155/+0
| | | | | | (From OE-Core rev: 6dffea78a6de286de67524b558bb1527fedd673e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Add patch to fix gcc 13 test issueRichard Purdie2023-05-262-0/+155
| | | | | | | | 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>
* lttng-tools: Improve ptest debugging and fix dependenciesRichard Purdie2023-03-121-3/+16
| | | | | | | | | | | | | | | 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>
* lttng-tools: Update LFS64 patch with upstream feedbackKhem Raj2023-02-091-12/+14
| | | | | | | | | | See https://review.lttng.org/c/lttng-tools/+/9268 (From OE-Core rev: 515ce47f62d34daababb65d206bdae8c4e1e548f) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: update 2.13.8 -> 2.13.9Alexander Kanavin2023-02-091-64/+0
| | | | | | | | | | Drop determinism.patch as issue resolved upstream via linked ticket. (From OE-Core rev: cd9e72a390efb778a6278e2e6c9604ab29d6feb9) 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>
* lttng-tools: Switch to alternative upstream submitted patchKhem Raj2023-01-241-19/+56
| | | | | | | | (From OE-Core rev: b055ca4b25dc6bfd617497f995b42b362020473e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Fix build with largefile supportKhem Raj2022-12-221-0/+35
| | | | | | | | (From OE-Core rev: ec0bfa21e2bae82b0218f75c0010be64dcdd99d4) 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-tools: submit determinism.patch upstreamAlexander Kanavin2022-11-011-1/+1
| | | | | | | | (From OE-Core rev: bec62455d900a0d3e18a62ea7053c214bc545fb6) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Upgrade 2.13.1 -> 2.13.2Richard Purdie2021-12-203-372/+0
| | | | | | | | Drop backported patches. (From OE-Core rev: 313279ffa9054718696ded085d3b88e2ab2972ea) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Disable problem testsRichard Purdie2021-12-141-0/+34
| | | | | | | | | | | | 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-142-0/+331
| | | | | | | | | 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: submit patches upstreamAlexander Kanavin2021-12-061-1/+1
| | | | | | | (From OE-Core rev: 6a7bd6cdf4f81808212807182861815483277272) 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-272-267/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-133-88/+267
| | | | | | | (From OE-Core rev: 87fd3080c86f6987e4403a2cb8263564f6e1ac4f) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng: update 2.12 -> 2.13.0Alexander Kanavin2021-09-104-55/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* lttng: Fix reproducibility issuesRichard Purdie2021-03-021-0/+64
| | | | | | | | | | | 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>
* lttng-tools: disable more failing ptestsAlexander Kanavin2020-12-181-7/+28
| | | | | | | (From OE-Core rev: 78e2c81d02eb31c04a5ccb562f3524f9d0b7e35c) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: upgrade 2.12.1 -> 2.12.2Richard Purdie2020-08-181-43/+0
| | | | | | | | Drop patch merged upstream. (From OE-Core rev: 5df317553cb764ca873bf209bbd2bc8a47296169) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: upgrade to 2.12.0Ovidiu Panait2020-05-192-36/+43
| | | | | | | | | | | | | | | | Upgrade lttng-tools 2.11.2 -> 2.12.0: * drop x32 patch, as it was merged upstream * update ptest file mi-lttng-3.0.xsd -> mi-lttng-4.0.xsd * add local patch to fix ptest build failure on musl * License-Update: licenses were moved under LICENSES directory and changed in upstream commit [1] [1] https://github.com/lttng/lttng-tools/commit/ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a (From OE-Core rev: 62357f16ecc8368cf8a92290e973633622cd6368) Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: exclude one more test that sporadically failsAlexander Kanavin2020-02-251-5/+10
| | | | | | | (From OE-Core rev: d06ea31f51de19056713377a2f0e9bdcccbd96d5) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: disable tests that sporadically failAlexander Kanavin2020-01-281-0/+29
| | | | | | | | | Upstream is aware, and will investigate and fix. (From OE-Core rev: 96c286a1b2f9fc8e8bf4fb29ae62551a323af5c3) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: update to 2.11.0Alexander Kanavin2019-12-284-689/+27
| | | | | | | | | | | | | | | | | Remove 0001-Skip-when-testapp-is-not-present.patch as it is unclear whether it needs to be rebased, and difficult to rebase. Remove 0001-check-for-gettid-API-during-configure.patch as it is no longer needed. Ptests still seem to run ok, however they are rather slow, so I did not wait for their completion. (From OE-Core rev: 015aea5d93614676decd18578a8ae2d68417cfc5) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Fix build with glibc 2.30Khem Raj2019-07-311-0/+55
| | | | | | | (From OE-Core rev: 5abaf2a5c1e8707189c5f607a19170e031e1c480) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: update to 2.10.7Jonathan Rajotte2019-06-218-718/+0
| | | | | | | | | Remove upstreamed patches. (From OE-Core rev: 4bd46974d5b80050a031688ecefa9e60df793163) Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Filter ptest output to remove random tmp directoriesRichard Purdie2019-06-201-1/+1
| | | | | | | | | 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. (From OE-Core rev: dc47b3855d03af962bab176c7aed9bd47426b419) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Fix patch Upstream-StatusRichard Purdie2019-05-281-3/+1
| | | | | | (From OE-Core rev: 1a29a9e184f6b8f6971de8e964e0e60ab906f34e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: prevent test timeout when lttng-modules is not presentJonathan Rajotte2019-05-271-0/+26
| | | | | | | (From OE-Core rev: 3a099ab54e23f797c12777dce97437b7dc97de25) Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Add missing patch Upstream-StatusRichard Purdie2019-04-261-0/+2
| | | | | | (From OE-Core rev: 44f4fd033d33ca22102908b2941e652820d72a53) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: fix Upstream-StatusRoss Burton2019-04-231-1/+1
| | | | | | | (From OE-Core rev: 6af2a07264eaa20a75080ebe53689db045335a50) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: improve ptest and test suiteJonathan Rajotte2019-04-057-0/+1326
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. (From OE-Core rev: 57db7be54b9ee21b2be33b83782f0636d0702168) Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: fix compile error for x32Kai Kang2018-12-141-4/+24
| | | | | | | | | | | | | | | | 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] (From OE-Core rev: db9c892eb1697e3ba3c17eabf59b007c0cf3ff33) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Upgrade 2.9.5 -> 2.10.5 and improve ptestRichard Purdie2018-11-201-43/+0
| | | | | | | | | | | | | | | | | | | 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. (From OE-Core rev: fbafcd9a0101a637181d0aa9ec14579309a9bddf) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Improve ptest robustnessRichard Purdie2018-11-201-1/+1
| | | | | | | | | | | | | | | | 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. (From OE-Core rev: 3113fb0812aba96df59fca58fe68b751d1d886e6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: add systemd supportKai Kang2018-09-051-0/+9
| | | | | | | | | | | | | | | | 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. (From OE-Core rev: 29bc046d705beb9dac2e70fa31358da7719ba7a4) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Allow reconnect to relaydHe Zhe2018-07-091-0/+43
| | | | | | | | | | | | | | | | | | | | 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) (From OE-Core rev: 6f0079a6c3cc8926423cff3a927a78dcecede90d) Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: update to 2.9.4Nathan Lynch2017-03-041-35/+0
| | | | | | | | | | Drop upstreamed patch. (From OE-Core rev: 54bd5f79debf30606ce51a43ec3fd9d7c559889e) Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: upgrade to 2.9.3Nathan Lynch2017-01-193-35/+38
| | | | | | | | | | | | | | | | | Notable recipe changes: * switch to using release tarball * brokensep no longer required * drop upstreamed error.h patch * change do_install_ptest to selectively copy build artifacts to install tree. * use backported patch to address file-rdeps warning (From OE-Core rev: 0846aaa429a18557129579260ff09c0145aba903) Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: fix for x32Christopher Larson2017-01-091-0/+16
| | | | | | | | (From OE-Core rev: af0203f1543e444d4c9397c6b400ba627baf9574) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: fix ptestNathan Lynch2016-09-282-30/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the upgrade to 2.8, lttng-tools' test harness silently succeeds but doesn't actually run the tests. This is because upstream made some changes in their test harness: https://github.com/lttng/lttng-tools/commit/83666813cad3142ceccb929ca9b44d0e9cf53bc8 Updates to address this include: - drop now-irrelevant patch - change the ptest-run make target - remove indiscriminate search/replace commands from do_install_ptest - copy entire build directory into PTEST_PATH and then remove unneeded files - use lttng binaries installed on the system for the tests - add lttng-tools-ptest runtime dependencies - lttng-tools itself - babeltrace, used by the test harness to process traces - perl modules required by babelstats.pl test script - procps (for pgrep, pidof) - gawk - remove unnecessary chmod and munging of utils.sh script library - remove checkpatch from ptest installation tree - avoid path-munging of libtool artifacts altogether - use more efficient find+sed patterns to munge Makefiles - reduce test harness output to conform to ptest rules On qemux86-64 and qemuarm I get relatively stable results, with PASS/FAIL varying by +-1 on successive runs. TOTAL: 2345 PASS: 1735 SKIP: 311 XFAIL: 0 FAIL: 292 XPASS: 0 ERROR: 7 There are some ERRORs worth looking into further but this should be a useful basis for future work. (From OE-Core rev: 9e9875fc19df6b924aa7f9d06e7b4e07222d0799) Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: fixes a wrong header issueMing Liu2016-09-241-0/+33
| | | | | | | | | | | | | | This fixes a following compiling issue: | agent.c:33:19: fatal error: error.h: No such file or directory | #include "error.h" it's back-ported from lttng-tools upstream, we need it in SRC_URI since 2.8 is still the latest release. (From OE-Core rev: 08c9a363cc600cb58ab98cf22de0f7963720dea3) Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Update 2.7.1 -> 2.8.1Richard Purdie2016-09-031-51/+0
| | | | | | | | | | Drop backported patch. Update ust configure option. Update location of xml m4 file. (From OE-Core rev: ea0375c5a38a761d296f5e20c95450c2df90fe39) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Revert "lttng-tools: filter random filename of ptest output"Nathan Lynch2016-08-011-55/+0
| | | | | | | | | | | | | | | | | | This reverts commit 29a8c45be2862be02afe2ebbc5c026a42f351990. A few things wrong with this change: 1. It patches a patch (runtest-2.4.0.patch). 2. It introduces deviations from the desired ptest output format. 3. It discards PASS: lines from the test output; I *want* to see those. 4. The upstream status of "pending" is incorrect; I do not see this patch on the lttng-dev mailing list (not that it would apply anyway). (From OE-Core rev: eeb0a912145f8f849d56c04e38616d12ca8be21e) Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: move to Python 3Alexander Kanavin2016-06-031-30/+0
| | | | | | | (From OE-Core rev: e0cd0bd7da24b7e68e57feb448926ea9b0007590) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: filter random filename of ptest outputDengke Du2016-05-111-0/+55
| | | | | | | | | | | | | | | | | | | | | | | | | When run the ptest of lttng-tools, it produced many random filename when the tests passed, the output confused QA analysis, so we need to filter the ptest output if tests passed and add up the passed and failed tests. NOTE:The tests invoked the run.sh twice, so it output like this: ... FAIL:... unit_tests statistics total pass: 133 tests passed! total fail: 5 tests failed! ... FAIL:... fast_regression statistics total pass: 1904 tests passed! total fail: 202 tests failed! (From OE-Core rev: 29a8c45be2862be02afe2ebbc5c026a42f351990) Signed-off-by: Dengke Du <dengke.du@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Revert wrong enforcement of Python 3.0 useOtavio Salvador2015-12-121-0/+30
| | | | | | | | | | | | | | | | | The code has support and checks for Python 2 and Python 3 however during the development of 2.7 release a requirement for Python 3 was included. The Python 3 is required for runtime tests to run however those are not in use now so we can just disable the enforcement for now. This reverts the commit restoring the Python 2 support. (From OE-Core rev: 8807f4fd8a9ccdcdec016d87fd18fd0717f35dca) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Upgrade to 2.7 releaseOtavio Salvador2015-12-014-542/+51
| | | | | | | | (From OE-Core rev: dddf51204238a094f633149663a7ed843dc8f55c) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-tools: Drop unused patchOtavio Salvador2015-12-011-52/+0
| | | | | | | | | | | The runtest.patch is unused, so there is no reason to keep it on the tree. (From OE-Core rev: c1fb471dc83206f3940108319fca760b39cbbac7) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>