summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace
Commit message (Collapse)AuthorAgeFilesLines
* strace: update to 5.8 (fix build against v5.8 uapi headers)Bruce Ashfield2020-08-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updating strace to the 5.8 release. The signficant change in this release is fixes to build against the v5.8 kernel. Noteworthy changes from the strace site: - Changes in behaviour - Modified %process class to contain system calls associated with process lifecycle (creation, exec, termination): kill, tkill, tgkill, pidfd_send_signal and rt_sigqueueinfo are added, arch_prctl and unshare are removed. - Improvements - Implemented decoding of faccessat2 syscall. - Implemented decoding of LOOP_CONFIGURE ioctl command. - Updated decoding of io_uring_setup syscall to match Linux 5.8. - Updated lists of AUDIT_*, BPF_*, CAP_*, ETH_*, INET_DIAG_*, IORING_*, KEYCTL_*, KVM_*, LOOP_*, NDA_*, RTC_*, TCA_*, STATX_*, and *_MAGIC constants. - Updated lists of ioctl commands from Linux 5.8. - Bug fixes - Added statx syscall to %fstat trace class. (From OE-Core rev: d656936ec7fbd4c2748a8f2239b6c09e5b9216d9) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: upgrade 5.6 -> 5.7Alexander Kanavin2020-06-091-2/+1
| | | | | | | (From OE-Core rev: 38da7f53f9400a8aa1b63884e091e280179dd12d) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: upgrade 5.5 -> 5.6Alexander Kanavin2020-06-041-3/+3
| | | | | | | (From OE-Core rev: fe66150b84d7ad5fe10b2c53504e3e9db678aef7) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: Fix reproducibility issuesJeremy Puhlman2020-03-122-0/+40
| | | | | | | | | gen_tests script encodes its full path to itself in each script (From OE-Core rev: 9e2db0ab1d4cacedde59e8915dff9a091e1c2d2b) Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: Update to 5.5Alistair Francis2020-02-1511-138/+36
| | | | | | | | | | Update strace to 5.5. This includes a small change in the license file to change the date to 2020. (From OE-Core rev: 3e1e8d24ce122ddb5897418d1bae123051e1f450) Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: fix failing ptestsAlexander Kanavin2020-01-162-3/+6
| | | | | | | | | | | 1. They need to be run under regular user. 2. Some tests genuinely need more time than 30 seconds 3. The Makefile patch erroneously introduced a test-breaking change. (From OE-Core rev: 3d6bf58c7080c1cacf3ed1f270ff5acf4858c790) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: Upgrade to 5.4Khem Raj2019-12-306-46/+62
| | | | | | | | | | | Remove a patch already present upstream Add a patch to fix build with upcoming glibc 2.31 where __ptrace_syscall_info definition is added (From OE-Core rev: f6670f9c89c7b7a93557f0b6aeffbf88033f0791) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: Fix build found with 64bit time_t/muslKhem Raj2019-11-142-0/+26
| | | | | | | | | | This ensures that its using linux headers for matching the syscall structures (From OE-Core rev: 3f91512ffc8c1c3374b3a67df5f86e884c78d7a1) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: Fix ptest buildKhem Raj2019-11-072-0/+18
| | | | | | | | | include stdint.h since the test uses uintptr_t C99 type (From OE-Core rev: b0791cfeeed3d4346ea5c9285f09b0a532c58bf8) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: Upgrade to 5.3Khem Raj2019-09-302-7/+7
| | | | | | | | | | | Detailed features are here [1] [1] https://github.com/strace/strace/releases/tag/v5.3 (From OE-Core rev: a3b3e8fb120f98cdb18d7a9d517d88a313416986) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: add a timeout for running ptestsAlexander Kanavin2019-09-181-0/+1
| | | | | | | | | | | | | | | | 5.2 kernel has introduced a significant performance regression where some of the tests take many minutes to complete (where previously it was seconds). While we're getting to the bottom of the issue and working with upstream to resove it, this change allows tests to proceed instead of getting stuck and eventually timing out. https://bugzilla.yoctoproject.org/show_bug.cgi?id=13506 (From OE-Core rev: 36670f3989ef129d285b2a17c289f8fc7a44b320) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ptrace: Drop ptrace aid for musl/ppcKhem Raj2019-09-162-32/+0
| | | | | | | | | | This has been fixed and is no longer needed (From OE-Core rev: 74ea0264cc5ba27dd37053f79301d18c8f1b6e7d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: Upgrade to 5.2Khem Raj2019-07-264-114/+10
| | | | | | | | | | | | | License-Updtate: Copyright years changed https://github.com/strace/strace/commit/4b4a0e5a6e74e16dc2bb9b38d81415d9f57425d2#diff-7116ef0705885343c9e1b2171a06be0e Drop backport patch for mips o32 build fix Refresh patches to apply on 5.2 (From OE-Core rev: abeb32772b8b3a144e468e5a27b1a31f646317e4) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: Remove remnants of bluez4 supportAdrian Bunk2019-07-151-2/+2
| | | | | | | | | | | | | | bluez4 was removed from meta-oe 2 years ago. Simplfy the setup of the two level bluetooth and bluez4/bluez5 distro features by removing the bluez4/bluez5 distro features. This also removes the no longer required bluetooth class. (From OE-Core rev: dcf889e93401f7c4de0055d53271eacc3882eccc) Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: Tweak ptest disk space managementRichard Purdie2019-05-302-0/+20
| | | | | | | | | If the test is successful, remove the log and exp files. This stops strace using around 600MB of disk space and running our ptest images out of space. (From OE-Core rev: ae94bffc6991efd6a6a74b2c129d3743b5fd1cd3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: add lost Upstream-StatusRoss Burton2019-01-141-0/+1
| | | | | | | (From OE-Core rev: 06662be193fb8b1cff5ca26b876350f93a56cedc) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: update from 4.25 to 4.26Randy MacLeod2019-01-1410-58/+160
| | | | | | | | | | | | Refresh patches using devtool. Update license since the main code is now covered by LGPL-2.1+ and the tests under GPL-2. Fix a MIPS build error with an upstream patch. (From OE-Core rev: 874c5d4cd4902545b0fb924d0313488521fb91e2) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: fix ptest fail and strip ptest host referencesChangqing Li2018-12-081-1/+2
| | | | | | | | | | | | 1. Add LDFLAGS_FOR_BUILD for strip host reference 2. Revert one previous replace operation for fix ptest fail. refer oe commit: 74b5088f1cc1708db43c33ac2dc7f01f4a4db9c1 (From OE-Core rev: e52eede3dfd7155e4e016734586b527932d1ef2a) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: Strip build host tool details from installed ptest MakefileDouglas Royds2018-12-031-10/+1
| | | | | | | | | Adopt new PTEST_BUILD_HOST_PATTERN mechanism. (From OE-Core rev: f6ba7888138b6acecd3335cbfc3fa51272d69e57) Signed-off-by: Douglas Royds <douglas.royds@taitradio.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: Bump to version 4.25Mauno Niko2018-11-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | V4L2_CID_USER_IMX_BASE value differs in v4.14 and v4.19 LTS kernels https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/uapi/linux/v4l2-controls.h?h=v4.14.79#n191 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/uapi/linux/v4l2-controls.h?h=v4.19.1#n191 Building strace v4.24 against 4.19 kernel headers results in following build failure | arm-vaisala-linux-gnueabi-ranlib libstrace.a | In file included from ../strace-4.24/static_assert.h:31, | from ../strace-4.24/xlat/v4l2_pix_fmts.h:4, | from ../strace-4.24/v4l2.c:78: | ../strace-4.24/xlat/v4l2_control_id_bases.h:36:1: error: static assertion failed: "V4L2_CID_USER_IMX_BASE != (V4L2_CID_BASE + 0x1090)" This Linux kernel ABI breakage that occurred wrt V4L2_CID_USER_IMX_BASE has been observed and addressed in strace upstream commit https://github.com/strace/strace/commit/b89a69dec27cf638df0e17db80ed937c3e1abf77 Bump strace to version 4.25 which also addresses ABI breakage so that strace once again builds against both v4.14 and v4.19 LTS kernel headers (From OE-Core rev: facb6e2fd887d526e031b6c16b4bb8d385db952a) Signed-off-by: Niko Mauno <niko.mauno@vaisala.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: fix ptestsAnuj Mittal2018-10-094-28/+42
| | | | | | | | | | | | | | | | | | | | | | | | * Let automake use parallel test harness which ensures that appropriate environment variables are actually used. * Copy generated config.h as part of ptest package and define a variable in tests Makefile to control the name of target that we'd like to invoke for tests instead of relying on default value. * configure relies on tools that are not available in release tarballs resulting in warnings and failed tests. Get the required information from available files instead. * Reduces the count of failing tests to 18 from 35. The rest of tests fail or get skipped mostly because of missing syscalls. Number of tests getting skipped can probably be reduced further. Fixes [YOCTO #12948] (From OE-Core rev: dcd674181f31a12c100f91cf6a1c3f3d52b775a2) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: 4.23 -> 4.24Robert Yang2018-08-232-45/+2
| | | | | | | | | Remove backported patch 0001-tests-fix-build-with-fresh-glibc.patch. (From OE-Core rev: 20b45274681892cc761bbef87360dc1088d040a1) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: Fix build with glibc 2.28Khem Raj2018-08-082-0/+43
| | | | | | | (From OE-Core rev: 2a37692d591411b05bfd9f0745ae00678b587b67) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: upgrade 4.22 -> 4.23Ross Burton2018-07-242-77/+2
| | | | | | | (From OE-Core rev: 71994715714076e7f4dfb29c91da0a4e293b7e53) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: fix ARM Thumb build with frame pointers enabledAndre McCurdy2018-05-292-9/+81
| | | | | | | | | | | Replace the previous (incomplete) workaround with better solution backported from upstream. (From OE-Core rev: b038a6e418d723a0a413219e9882cdd7f3804625) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: remove -fno-omit-frame-pointer from DEBUG_OPTIMIZATION when ptest is ↵Martin Jansa2018-05-151-0/+3
| | | | | | | | | | | | | enabled * otherwise strace-4.22/tests/inject-nf.c fails to build as discussed here: http://lists.openembedded.org/pipermail/openembedded-core/2018-May/150647.html (From OE-Core rev: 2f8fdf684a5ed52412ee220b55508d42a1888762) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: Upgrade to 4.22Khem Raj2018-05-153-22/+23
| | | | | | | | | | License-Update: Update Copyright years (From OE-Core rev: 7ab51c619697ad64d69ecf77449c43fe59c3290c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: use strace.io as the tarball locationAlexander Kanavin2018-03-041-2/+2
| | | | | | | | | | | As explained here: https://sourceforge.net/projects/strace/files/ (From OE-Core rev: 68a3534f998b99d357d1a44bc0c07a185a08826f) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: 4.19 -> 4.20Huang Qiyu2018-02-161-2/+2
| | | | | | | | | | Upgrade strace from 4.19 to 4.20. (From OE-Core rev: 2fcad6cbc8a3b50812b3f970f541e8ffe03819b9) Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: 4.18 -> 4.19Robert Yang2017-11-212-12/+9
| | | | | | | | | | Rebase Makefile-ptest.patch (From OE-Core rev: 481bceb3f23f55a537ad4bde8bf6226f60fdeb46) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace_4.18.bb: improve reproducibilityJuro Bystricky2017-09-221-1/+10
| | | | | | | | | | | Remove build host references from strace-ptest package. Also removed some unneeded timestaps. (From OE-Core rev: 1f380ee7bce648b0041b61a62e36987e9caee307) Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: Fix ptest bulds with musl/mipsKhem Raj2017-09-212-0/+38
| | | | | | | | (From OE-Core rev: 817210ef57729bf0f3010328270ea4b954dfebcf) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: 4.17 -> 4.18Robert Yang2017-08-234-65/+33
| | | | | | | | | | | | | | - Updated update-gawk-paths.patch. - Updated Makefile-ptest.patch - Removed 0008-replace-struct-ucontext-with-ucontext_t.patch which is already in the source. - The LIC_FILES_CHKSUM is changed because the years have been updated, the contents are the same. (From OE-Core rev: 111e4a8642160c8441e447da32a4ef52995bbe99) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: upgrade to 4.17Khem Raj2017-07-063-8/+47
| | | | | | | | | | Fix build with upcoming glibc 2.26 (From OE-Core rev: 8a4a62ae44d6819cda77c96a5106b78a83364fd6) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: 4.15 -> 4.16Robert Yang2017-03-014-70/+19
| | | | | | | | | | | | | | | | * The license cheksum is changed becuase a new line is added: Copyright (C) 2001-2017 The strace developers. * Remove use-asm-sgidefs.h.patch, it doesn't check sgidefs.h any more, it was use for building on mips, I checked it built well. * Update Makefile-ptest.patch and disable-git-version-gen.patch. (From OE-Core rev: 204e0e9916f6acfa02d7a49bf5e33678abb0578d) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: fix gawk's pathRobert Yang2017-02-152-0/+50
| | | | | | | | | | | | | Fixed: strace-4.15: /usr/lib/strace/ptest/tests/caps-abbrev.awk contained in package strace-ptest requires /bin/gawk, but no providers found in RDEPENDS_strace-ptest? [file-rdeps] The path should be /usr/bin/gawk as other scripts use in this package. (From OE-Core rev: e71c205d7672d33ad00a5a5c6c41452746c77e2f) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: 4.14 -> 4.15Robert Yang2017-02-151-2/+2
| | | | | | | | (From OE-Core rev: e24a98f703472a3893e241601bc21a3bb0eb58e1) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: 4.13 -> 4.14Huang Qiyu2016-12-071-2/+2
| | | | | | | | | | Upgrade strace from 4.13 to 4.14. (From OE-Core rev: 530119e9ef4eeb56d91fb64c1074ababb5454831) Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: Fix build with mips/mips64 on muslKhem Raj2016-08-102-0/+25
| | | | | | | | | | SIGEMT doesnt exist on musl (From OE-Core rev: a18457e3318da21b642018897a0df29cb543deea) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* binutils: Bump to 2.27Khem Raj2016-08-101-0/+1
| | | | | | | (From OE-Core rev: 3f1eb2556026572dca9476c561d89b86723395c7) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: 4.12 -> 4.13Robert Yang2016-08-042-10/+6
| | | | | | | | | | Updated Makefile-ptest.patch (From OE-Core rev: 56d3ead9da83e1116c5c6e78441275e079e466b2) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: 4.11 -> 4.12Robert Yang2016-06-157-911/+63
| | | | | | | | | | | | | | | | * Remove backported patches: 0001-Move-gcc-compat-macros-to-gcc_compat.h.patch 0001-arc-metag-nios2-or1k-tile-fix-build.patch 0001-scm_rights-fd.test-rewrite-without-fork.patch 0001-tests-introduce-libtests.patch 0001-tests-scm_rights.c-use-libtests.patch * Update update-gawk-paths.patch (From OE-Core rev: 53b3d06d24ad711241fe706d100d888a06669d57) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gdb,strace: Fix builds on ppc/muslKhem Raj2016-05-132-1/+38
| | | | | | | | | | | ptrace namespace is polluted in glibc for ppc which is highlighted with musl, these fixes tries to undo it (From OE-Core rev: cc48929e916697d2103738cf12f02f47cdd43f32) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: Backport fixes for compiling with clangKhem Raj2016-03-095-0/+738
| | | | | | | | | | | Backport fixes needed to avoid use of VLAs which is not available on clang/llvm (From OE-Core rev: 57881c3dc68bd8697aaac7fa3587202121a042a4) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: fix ptest executionDengke Du2016-02-281-0/+1
| | | | | | | | | | | | | | When run the strace ptest on the target, the test files located in the "/usr/lib/strace/ptest/tests", but the run-test script use the path "srcdir = ../../strace-*/tests"to find the necessary files, so it can't find the necessary files, it fails. So change the variable srcdir, replace the strace-* to ptest when do the do_install_ptest() function using the following: sed -i -e '/^src/s/strace.*[1-9]/ptest/' ${D}/${PTEST_PATH}/${TESTDIR}/Makefile (From OE-Core rev: 74b5088f1cc1708db43c33ac2dc7f01f4a4db9c1) 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>
* strace: Fix build for arc, metag, nios2, or1k, tileMarek Vasut2016-02-112-0/+118
| | | | | | | | | | | | | | Upstream strace 4.11 does not build for arc, metag, nios2, or1k, tile. Backport patch from strace git master to fix the build issue. (From OE-Core rev: 437aa3ec99c37db222606e77d790fd54d8b074de) Signed-off-by: Marek Vasut <marex@denx.de> Cc: Robert Yang <liezhi.yang@windriver.com> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Cc: Ross Burton <ross.burton@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: build fix for MIPS + musl libcAndre McCurdy2016-02-112-0/+52
| | | | | | | | | | | | | The MIPS specific header <sgidefs.h> is provided by glibc and uclibc but not by musl. Regardless of the libc, the kernel headers provide <asm/sgidefs.h> which provides the same definitions, so use that instead. (From OE-Core rev: 785fb18d328988d607c38e4818ba2f3227a36feb) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: update 4.10 -> 4.11Andre McCurdy2016-01-209-241/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Noteworthy changes in release 4.11 (2015-12-21) =============================================== * Changes in behavior * Some syscalls have different names depending on architecture and personality. In these cases, syscall filtering and printing now consistently uses the names that match corresponding __NR_* kernel macros of the tracee's architecture and personality. * Added strace prefix to all diagnostic messages. * Improvements * Enhanced and extended test suite. * Implemented reliable tracing of processes whose personality differs from the personality of strace, fixed decoding of 32-bit personality syscalls on 64-bit architectures. * When some data referenced by syscall arguments is irrelevant or cannot be read from tracee's memory, strace now prints its address consistently. * When a syscall is restarted using restart_syscall mechanism, strace now shows the syscall name on architectures that expose this information. * Print values returned by epoll_create1, eventfd, eventfd2, fanotify_init, inotify_init1, perf_event_open, pipe, pipe2, signalfd, signalfd4, socket, socketpair, timerfd, and timerfd_create syscalls, as well as F_DUPFD and F_DUPFD_CLOEXEC fcntl commands, as file descriptors. * Optimized decoding of indirect socket syscalls. * Implemented decoding of nanoseconds along with seconds in stat family syscalls (addresses Fedora bug #1251176). * Implemented decoding of struct statfs.f_flags in statfs syscall. * Implemented decoding of siginfo_t.si_syscall and siginfo_t.si_arch in SIGSYS signal. * Implemented decoding of indirect syscall on mips o32. * Implemented decoding of IPPROTO_IP control messages. * Implemented decoding of setsockopt syscall multicast arguments. * Enhanced decoding of struct sigevent. * Enhanced decoding of block, loop, mtd, ptp, rtc, SG_IO, socket, tty, and v4l2 ioctl syscall arguments. * Enhanced decoding of epoll_create, fcntl, fcntl64, futex, getdents, getdents64, getsockopt, io_*, mount, msgctl, prctl, quotactl, recvfrom, sendfile, setsockopt, and shmctl syscalls. * Implemented decoding of bpf, execveat, ioperm, iopl, kcmp, kexec_file_load, lookup_dcookie, membarrier, memfd_create, mlock2, name_to_handle_at, open_by_handle_at, sched_getattr, sched_setattr, and userfaultfd syscalls. * Updated lists of AF_*, EPOLL_*, FALLOC_FL_*, F_*, INPUT_PROP_*, IPPROTO_*, IPV6_*, IP_*, KEY_*, LOCK_*, MNT_*, MS_*, PACKET_*, PERF_FLAG_*, PF_*, PR_*, PTRACE_O_*, RENAME_*, SCTP_*, SECBIT_*, SO_*, TCP_*, and siginfo_t constants. * Added Nios II architecture support. * Added new syscall entries to match Linux 4.4. * Bug fixes * Fixed potential short read of strings from tracee's memory. * Fixed -qq option in conjunction with -o option. * Fixed filtering of <unavailable> syscalls. * Fixed decoding of ioctl syscall command on aarch64 and 32-bit architectures with 64-bit aligned structures. * Fixed decoding of eventfd2, epoll_create1, signalfd4, and sync_file_range2 syscall flags arguments. * Fixed decoding of 4th argument of clock_nanosleep syscall. * Fixed decoding of getpagesize syscall on m68k. * Fixed decoding of getrandom and seccomp syscalls on aarch64. * Fixed decoding of timezone argument of gettimeofday and settimeofday * syscalls. * Fixed decoding of offset argument of mmap2 syscall on arm, sparc, and sparc64. * Fixed decoding of pipe syscall on alpha and mips. * Fixed decoding of pipe2 syscall on ia64, sh, sparc, and sparc64. * Fixed decoding of signal mask argument of pselect6 syscall on x32. * Fixed decoding of signal mask of rt_sigreturn syscall on aarch64, m68k, and x32. * Fixed decoding of 4th argument of semctl indirect syscall. * Fixed decoding of sa_restorer and sa_mask of sigaction syscall on m68k. * Fixed decoding of statfs64 and fstatfs64 syscalls on arm eabi. * Fixed decoding of struct dirent on x32. * Fixed decoding of times syscall return value on mips n32 and x32. * Fixed decoding of path argument of umount2 syscall (addresses Debian bug #785050). * Worked around a kernel bug in tracing privileged executables. * Fixed various errors in mapping between syscall numbers and associated information like the number of syscall arguments, the name of syscall, and syscall decoder. (From OE-Core rev: f3e6bf135b7b69614d1405ad99e1264ea70a9197) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: fix ARCH definition in tests/MakefileAndre McCurdy2016-01-202-1/+28
| | | | | | | | | | | | | | TARGET_ARCH doesn't map to strace's ARCH variable, so we can't assign one from the other. Forcing the incorrect value via the make command line doesn't cause any problems with strace v4.10, but it will do for strace v4.11. (From OE-Core rev: b4bdbdd65dd9768209f453f1c2eacf1f7f78a998) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* strace: remove need for git-version-gen scriptAndre McCurdy2016-01-203-230/+21
| | | | | | | | | | | | | The git-version-gen isn't really needed in order to determine the version of tarball releases, so avoid the need to provide our own copy. (From OE-Core rev: 76583aa38ca0576306ce01b79167d63c18c5d135) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>