summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/systemtap
AgeCommit message (Collapse)Author
2019-03-07systemtap: update to enable 5.0 kernel capabilitiesBruce Ashfield
Updating the systemtap 4.0 SRCREV to pick up changes that have been made to support newer kernels (and in particular 5.0). root@qemux86-64:~# stap --disable-cache -DSTP_NO_VERREL_CHECK ./hello.stp [ 246.303263] stap_4843: loading out-of-tree module taints kernel. hello world root@qemux86-64:~# The following commits are included in this update: 90ff34ac0 If available, use kernel's save_stack_trace_regs() for fallback stack unwind a9b0aa4db testsuite/systemtap.bpf :: tests should return, not exit 0 83f229abb cachestat.stp: workaround the current limitations of trace_printk f912d520f Newer kernels tapsets may use the kprobe.function("*") adjust alias_tapset.exp. fe569f964 Handle name change of do_brk to do_brk_flags in the newer kernels 71dbdc9f9 Newer kernels tapsets may use the kprobe.function("*") adjust pp.exp check. 20d23f97a Correct at_register.stp test arch name for arm64. e0bcc2f92 cachestat.stp: new example based on a bpftrace script by David Valin 18d1baceb session.cxx diagnostics: don't dump kernel_functions below verbose=6 25b181ae4 Add __NR_chmod for missing defines on aarch64 2276b109e Add more __NR_* for missing defines on aarch64 (and ppc64) e34d66dee PR24239: avoid symbol/type resolution of unused globals/functions 49d74d4fa Correct the at_register.exp test c77884dcd Turn on guru mode for at_deref1.stp use of @kderef a9a15a3f8 RHBZ1689180: correct group name typos in staprun.8 e7146dbfe Regenerate syscall_num.stp grouped by syscall name. 6bcf09813 Group initialization using the same string literal together in syscall_num.stp 3752574dc Regenerate the syscall mapping information to add aarch32 to aarch64 syscalls af74da7b7 Update dump-syscalls.sh to generate 32-bit syscalls for aarch64 60144c0fa Match arm64 non-dwarf syscall probe points d36f6fee8 PR24199: don't use exceptions to signal type-resolution failures 5e50524ff PR24199: at pass-2 verbosity > 3, trace $var error-chaining events 40f855fd5 PR24199: loc2stap: propagate dwarf DIE() source locations better af9ef3369 Adjust noptrace.stp to avoid modifying ptrace syscall arguments ca3946e62 Update pfiles.stp to work with Linux 4.17 and newer 9d3a1cd66 PR24217: stap -p2 speedup, condition-expression processing ba7b83ec1 Conditionally define __NR_bdflush in systemtap runtime. cdf77a210 testsuite/systemtap.bpf :: couple of bpf_tests clarifications d6b529c43 fix embedded-c tag memoization thinko d81a001ad pass-2 optimization: embedded-c code pragma searching 1832b8f51 Set up a BPF related testcase blacklist for regression testsing purposes. 4e7686951 linux api update: compat_time* structs 1ac5a4499 linux api update: FAN_ALL_CLASS_BITS 17c2d352a unwinder: increase MAX_CFI to 8192 after a census of CFI sizes on Fedora 29 2e373d294 runtime: adapt to uapi/linux/mount.h changes 6b0430b6b dummy commit to force buildbot rebuilds d3964067f buildrun.cxx: older g++ compatibility: no std::string.back() 6b2838df5 Handle installation without stapusr group f90ca3096 Simplify creation of groups during installation 38184abcd Fix get_user_pages() autoconf test for 4.4.y kernel e2e13220f lkm-runtime time.c: prefer 4.15+ ktime_get_real_fast_ns eb8c8de94 linux 5.0-rc3 adaptations de5061899 parser: allow larger arrays 0fc1a5019 stap man page: document histogram per-bucket access/iteration 905865da1 PR16406 fixup :: correct comparison in _stp_module_check c8084763b PR10280 initial fix: force vermagic for guru-mode scripts 3a29a2eef Make testcase at_var.exp work with stap-4.1+ and kernel-4.17+ 53ff2b5df stap-prep: switch typo ($NEEDED => $package) 68bd23fd0 PR16596: add support for DW_OP_GNU_entry_value in location expressions aacee6563 Make sysc_bdflush.stp compatible with 4.17+ kernels. 891810c24 configury: tolerate dyninst10's need for -lboost_system ec3b46eb9 RHBZ1655631: systemtap.spec: use Recommends: for kernel-*-devel eef17e743 runtime/unwind: Allow to increase MAX_CFI 47ce37a14 systemtap.spec: merge unbotch - missing %changelog f082df49d systemtap.spec: importing fedora rawhide changes c9a393275 staprun/mainloop.c :: fix for loop initial decls 266c72bd0 PR23866 part: expose raw syscall tracepoint to bpf ab368ac2a PR23891: Make sure stap and staprun respond to SIGTERM when stderr/stdout are blocked 0a0595509 Fix segfaults in dwarf array pointer subscripting when -vvv is specified 4a8652800 Make opeartor @var() no longer assume @entry() in return probes. f5c19712c Add the ucalls.stp to the systemtap examples. 7d82f1bdc Adjust tcp_trace.stp example to work with newer Linux kernel's timers f6d683666 Adjust the vfs_open to provide cred variable with 4.18 kernels 008a0cbfd Userspace_probing.xml: change '-ldd' to '--ldd' command line option. e6227e5df bpf-translate.cxx: don't clobber any earlier value of c cbf3b6e6a bpf-translate.cxx: quiet a compiler warning 824e9ab80 PR23890 bonus: show nicer messages upon a buildid mismatch fba365b4d PR23890: tolerate f29+ style ELF files 6c94b6d42 PR23747: tolerate symbols with odd section#s d60dac71a systemtap.bpf/asm_tests :: fix documentation / expected result 0eaf4f196 PR23875 bpf_unparser::visit_foreach_loop(): temporarily disable string key iteration 8c1452d10 PR23875: another testcase that loops indefinitely 584d61dc0 PR23875 bpf.exp: fail testcase on 'stack smashing' 0128e1daf PR23860 bpf_interpret() :: NEG should not fall through to DIV 75640f70d Adjust the periodic.stp example to work with newer Linux kernels ca225a1cc stap -vv: also print kernel build-tree path name 28cf23f8e testcase for PR23875 3733caeba PR23860: reduce stack pressure from format strings 7a5716bb8 PR23860: additional ugly stack/clobber protection for strings 021f906e5 PR23860: additional stack protection for strings 02861e63c PR23860 bugfix: incorrect comparison direction in string_copy() e428db474 PR23507: add new command-line option to disable automatic unread global variable display b2ba3af9a pr23860 verifier workaround :: be sure to delete all mov rN,rN 08861a20f PR23507: add underscores to global @this variables 4ee1ae49a PR23761: generalized @entry cc6e13e62 standardize ktime_get_ns() across lkm, bpf runtimes fbee58bda bpf behind-the-scenes :: useful DEBUG_CODEGEN diagnostic 7209427d4 Always use nssInit for http and nss server. 72ef87bba PR23860 partial fix: fix BPF_NEG opcode generation. 8fb0cb4a7 PR23829 :: fallback defines __BPF_FUNC_MAPPER and BPF_J{LT,LE,SLT,SLE} for older kernels 686ba2980 tapset/bpf/task.stp :: rudiment of task tapset 0e6a26ff4 PR23849 -- temporarily disable stapbpf script caching c0002c5ad prometheus-exporter samples: change reported metric name 1b50200ff stap-exporter: drop initial demo scripts under .examples; not used 3582845f5 powerpc64: add missing system call defines 57550d39d aarch64: add missing system call defines 856ddcedb tapset/bpf/context.stp :: add execname(), triage other functions 61b00f37d tapset/bpf/conversions.stp bugfix :: helper name in kernel_string(addr, err_msg) a47bc40eb bpf-asm.exp bugfix :: bad_output does occur 14e5ff4e6 bpf-translate.cxx :: fix segfault with malformed register b530b0193 Fix miscellaneous errors/typos in syscall tapset ae51c4d99 On aarch64 Linux system calls related SystemTap scripts compilation fail with "__NR_compat_[exit|read|write] redefined" errors after following two commits: 3d9e0d2a5 Adjust the BPF translate error report formatting to work on 32-bit architectures 0a4d384a8 session.cxx :: enable caching for bpf backend 5ada58a9f bpf-translate.cxx :: plug an exception gap in is_numeric() c009fe88d Merge branch 'serhei/bpf_asm' -- kernel_string() tapset and experimental bpf assembler 0b3a813f5 testsuite/systemtap.bpf :: diagnose a bug in print_format("%s%s", ...) 110f739b3 stapbpf assembler WIP #8 :: bpf-asm.exp driver and more testcases 4d68a526b stapbpf assembler WIP #7 :: fixed kernel_string() tapset and testcase da6c4aef4 stapbpf assembler WIP #6 :: other call functions ({s}printf and tapset) e534cf2a7 PR21080: support added for new pkey_* syscalls 0e0f0e386 stap-exporter examples: use symlinks rather than copies fddf715d1 Use NSS_InitContext instead of NSS_Init. 6a3a804e4 prometheus tapset: add dump_array_*_unquoted variants 4e81610ae nfsd tapset: adapt nfsd.proc4.commit probe to different kernel versions 4cd50f30a PR23799 - sprint_ustack() always returns empty string values 8bc640345 nfsd tapset: adapt nfsd.proc4.read probe to different kernel versions 7b76b6b60 step-prep: on debian/ubuntu machines, attempt "apt-get -y install" 10b3f049e Use cast to make c->cycles_sum aways match the %lld format. d95f81630 Add more quantitative data to error message when probes exceed threshold f4d49b79b Avoid using target variable in target_set.stp for syscall.* probes. 5aafdc55e Avoid using target variables for syscall.write in print_user_buffer.stp. bb93c70a1 Avoid using target variables in signal.stp for syscall.* based probe points. 784d4fc04 Add buildok/syscall_any.stp to list of tests dyninst will not run. 910395ba0 kprocess.exec_complete should avoid using $return from syscall.execve.return d4550e6c0 stapbpf assembler WIP #5 :: basic kernel_string() implementation 9ae578690 stapbpf assembler WIP #4 :: alloc and (helper) call operations f12e7d8eb stapbpf assembler WIP #3 :: additional assembly test cases f3fdcc936 Fix searching of kernel_source_tree for kernel built with O option dd57c7387 postrelease version bump for future version 4.1 2881d9d95 stapbpf assembler WIP #2 :: testcases (no driver so far) db79925e5 stapbpf assembler WIP #1 :: basic parser and control flow (From OE-Core rev: 18e1f2859ad213febb3438618e7d7ee57f401ff4) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-10-28systemtap: move systemtap-exporter into separate packageVictor Kamensky
stap-exporter runs a set of systemtap scripts and relays their procfs outputs to remote HTTP clients on demand. systemtap-exporter is not supposed to run in untrusted environment. It starts HTTP server on some port. It does not look safe enough to be included by default along with the rest of systemtap. Move systemtap-exporter, its systemd unit, configuration files and examples scripts into separate package. So if one needs it and understand its implication, he/she can include it explicitely. (From OE-Core rev: 03e01c26a297642dbe4b0e1c7cf2cbe3c225140e) Signed-off-by: Victor Kamensky <kamensky@cisco.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-10-18systemtap: fix QA issueMartin Jansa
ERROR: systemtap-4.0-r0 do_package: QA Issue: systemtap: Files/directories were installed but not shipped in any package: /lib /lib/systemd /lib/systemd/system /lib/systemd/system/stap-exporter.service Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. systemtap: 4 installed and not shipped files. [installed-vs-shipped] (From OE-Core rev: d31212bcfe9232e7f6ac9efb4fad0be175a9ca00) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-10-17systemtap: Fix typo in chown commandRichard Purdie
(From OE-Core rev: 02646be9d38fac14d9820d02d398b731b9c1bf9c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-10-16systemtap: Fix issues from 4.0 upgradeRichard Purdie
4.0 adds systemd support but installs the unit files in the wrong location. Fix this in do_install and inherit systemd to package them correctly. Also fix ownership of files manually copied in to root:root to avoid QA warnings. (From OE-Core rev: 74833a612cc383679bb5516e98c7508da47b0767) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-10-16systemtap: 3.3 -> 4.0Victor Kamensky via Openembedded-core
Upgrade systemtap from 3.3 to 4.0: Removed backported patch. Very short summary of major changes from SystemTap 4.0 announcement by Frank Ch. Eigler <fche@redhat.com>: > prometheus exporter network service; ebpf support extensions including > strings and implementation of traditional log(), sprintf() functions; > rebuilt rich tapset coverage for 4.17+ syscalls and for > tracepoint-based syscalls; script language tweaks for supporting > machine-generated scripts Fixes [YOCTO #12950] (From OE-Core rev: d7f828223f3fabdadcff974c1ed6f8f74e438405) Signed-off-by: Victor Kamensky <kamensky@cisco.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-07-26systemtap: fix unintialized memory accesses in dwflpp::function_entrypcVictor Kamensky via Openembedded-core
Observed failure in SystemTap v3.3 unit testing, It was tracked down to unintialized memory access in dwflpp::function_entrypc method. Upstream-Status: Backport (From OE-Core rev: 7e465c75e317718ed81a76a6c3e487668e7db1ab) Signed-off-by: Victor Kamensky <kamensky@cisco.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-07-26systemtap: 3.2 -> 3.3Victor Kamensky via Openembedded-core
Upgrade systemtap from 3.2 to 3.3: Removed all backported patches. Removed "remove quotes around -I include" pending patch since 3.3 got similar fix already. Resolved merge conflict in and regenerated monitor-option.patch patch. (From OE-Core rev: d8a60b324c340bf88e2e8650f4771030490709c5) Signed-off-by: Victor Kamensky <kamensky@cisco.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-07-26systemtap: improve reproducibilityHongxu Jia
- Fix build path issue of .pyc files: Supply "--root" directory to the "install" command. - Fix build path issue of c++ object files: Use relative dir to include header string_ref. - Fix build path issue of c library generated by distutils: Add OE's CFLAGS which contains `-fdebug-prefix-map' options to setup.py [YOCTO #12528] (From OE-Core rev: 806a8626c3fb5020666152b295f12541f5f61ffd) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-04-18systemtap: don't build under muslRoss Burton
systemtap uses obstack.h and FTW_SKIP_SUBTREE, both of which are GNU extensions in glibc. (From OE-Core rev: 80286cb2e979097800a51801c92e015421482daa) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-04-07systemtap: support --sysroot option in variety of situations in cross buildVictor Kamensky
For details on issues fixed please look at commit message of individual patches. Upstream-Status: Backport [systemtap@sourceware.org] (From OE-Core rev: 5aa93de3a79c8691e74e982d3d4b0099b04f5555) Signed-off-by: Victor Kamensky <kamensky@cisco.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-04-07systemtap: create translator packageconfigVictor Kamensky
For cases when systemap module compilation happens on host in cross-compilation mode, and it is desirable to minimize systemtap presense on target we need to have just smallest possible set of utilties that are required to run compiled modules. Introduce new "translator" PACKAGECONFIG, if it is not set it would mean that just minimal set of run-time utilities will be included in the package. For run-time only systemtap build variant use PACKAGECONFIG_pn-systemtap = "" or PACKAGECONFIG_pn-systemtap = "monitor" Suggested-by: Taras Kondratiuk <takondra@cisco.com> (From OE-Core rev: a22b8140c6924eb3b3cd7b5bea66a4d3ed413807) Signed-off-by: Victor Kamensky <kamensky@cisco.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-04-07Revert "systemtap: Cross compilation fix"Victor Kamensky
This reverts commit 787bed708676fc04aee2850825e803273152f657. (From OE-Core rev: 08ab022471eff48e6f43ec8cd47e695d575ee2e3) Signed-off-by: Victor Kamensky <kamensky@cisco.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-04-03systemtap: Backport a fix for build with gcc8Khem Raj
(From OE-Core rev: b751e865375b325df4083d85af191da4dc3a27ee) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-03-28systemtap: bring in PR22551 fix that addresses build against 4.15 kernel issueVictor Kamensky
With 4.15 kernel systemtap needs update to address systemtap module compilation issues. It is fixed in later version of systemtap by PR22551. Upstream-Status: Backport (From OE-Core rev: 7425d03729507ac5aff3c75ba20e749beaf3a3d5) Signed-off-by: Victor Kamensky <kamensky@cisco.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-03-28systemtap: supports mips starting with version 3.1Victor Kamensky
(From OE-Core rev: 3e098ef3424e1126aa4b0ecc29e1941efba687b7) Signed-off-by: Victor Kamensky <kamensky@cisco.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-19systemtap: 3.1 -> 3.2Huang Qiyu
Upgrade systemtap from 3.1 to 3.2. (From OE-Core rev: 4f2db007a760498421c7f0c27870cabea108ee23) 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>
2018-01-02systemtap_git.inc: Add microblazeel as a supported architectureBhargava Sreekantappa Gayathri
This patch adds microblazeel as a supported architecture for systemtap. (From OE-Core rev: 6a9746d95e87cce4a3c72cc10842727ecaa7c60f) Signed-off-by: Bhargava Sreekantappa Gayathri <bhargava.sreekantappa-gayathri@xilinx.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-09-11systemtap: Bump SRCREV for 4.12 Linux kernel supportSaul Wold
This SRCREV bump brings in support for the 4.12 Linux Kernel, this kernel also has some newer CONFIG settings. The newer DEBUG_INFO and DEBUG_INFO_DWARF4 settings can be used with systemtap to get the full information. We do not normally enabled these for a 'production' (standard) kernel, but can be enabled via menuconfig. When installing staprun and stapbpf on the target and native ensure we don't try to create a new group and chown it. There is no need since we will be running as root, so we add a patch to comment that code out. (From OE-Core rev: 026403cc7f995ecc32a99f269399a08abc221c77) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-09-05systemtap: Add HOMEPAGE info into recipe file.Fan Xin
(From OE-Core rev: 492f43f1aa402a60902fafb2d524ae67007f59bd) Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-31rm_work: Improve handling for addto_recipe_sysrootRichard Purdie
Rather than requiring each user to handle this individually, handle addto_recipe_sysroot in the core class. As well as preserving the sysroot directory, this also ensures the stamp is preserved rather than rerunning the task every time as currently happens. (From OE-Core rev: bf8b9858d9ccce27173d13938a83d249294cc473) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-30systemtap: ensure systemtap-native is availableSaul Wold
Since we are adding the addto_sysroot that that is specific to the native recipe, we must split this into a seperate -native .bb recipe. When systemtap-native is built, the intention is that it's usable from the native sysroot when done, ensure it's there with a forced addto_recipe_sysroot task, we also don't want to clean the sysroot when RM_WORK is enabled otherwise we loose the binaries. [YOCTO #11403] (From OE-Core rev: 98fba18e93abe8efce0a5b40d51e178c9de4d1e5) Signed-off-by: Saul Wold <sgw@linux.intel.com> (cherry picked from commit 2fdb59741b4fdeaa4aee10812c4a409cdc11a02d) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-08systemtap: Add patch to remove quotesSaul Wold
This fixes the -I include lines that are getting passed to the kernel macros [YOCTO #10990] (From OE-Core rev: b4d2f41a474c111e5fc64cae635d851386d860ba) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-01systemtap: update to 3.1Alexander Kanavin
Removed patches are in upstream. Rebase monitor-option.patch and no-msgfmt-check.patch Add support for python 3 probes (this necessitates the 0001-Do-not-let-configure-write-a-python-location-into-th.patch and the Add 0001-Install-python-modules-to-correct-library-dir.patch to install python modules to correct destination). Add perl to RDEPENDS to fix a QA warning about one of the installed files. (From OE-Core rev: e3bccfba499565ea13f154a11dadcab48ef5e0ab) 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>
2016-11-15systemtap: fix native linking on recent UbuntuRoss Burton
The latest Ubuntu uses yet more aggressive hardening options, which causes the unconventional build order used by systemtap to fail. [ YOCTO #10521 ] (From OE-Core rev: 5ca6ac8739ea4a273df7b8e5c5f7d481619923d8) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-11-15systemtap: remove explicit msgfmt checkRoss Burton
Passing --disable-nls should be enough to disable the requirement for a full gettext to be present, but the upstream configure explicitly checks for msgfmt even if it isn't going to be used. To avoid having to depend on gettext-native, patch this check out. (From OE-Core rev: 2f8d2a74f73490c1ae35131d3eb3592f7ee0a1e4) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-10-05systemtap: rationalise dependenciesRoss Burton
Boost is an optional dependency but avoid build non-determinism by adding it as DEPENDS. It is only for the shared pointer types so can be disabled explicitly if required. Turn sqlite into a PACKAGECONFIG. Add a patch for the "monitor" feature to control the optional dependencies on ncurses and json-c. Previously this was enabled for target only but enable it everwhere now that json-c is available for native/nativesdk. Of course all of this was predicated about systemtap needing systemtap-native to be built, but it turns out that this dependency is due to oe-core 507bd2 which adds systemtap-native as DEPENDS for convenience. Remove this dependency, if the user wants systemtap-native then they can build it explicitly. (From OE-Core rev: fb9dc1cf7a2d6d5e22beb68f17b4c9c8d1136e37) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-09-03systemtap: remove EXTRA_OEMAKE workaroundStefan Müller-Klieser
The default of EXTRA_OEMAKE is already empty since commit: OE-Core rev: aeb653861a0ec39ea7a014c0622980edcbf653fa bitbake.conf: Remove unhelpful default value for EXTRA_OEMAKE (From OE-Core rev: 4c1d679a0fd601ba37ab37b11f660cc41d8507ff) Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-12systemtap: add build dependency on ncursesRoss Burton
systemtap has a floating dependency on ncurses but as bash is a RDEPENDS the build-rdeps sanity test doesn't fire due to a limitation of the test. Add an explicit dependency on ncurses to ensure the build is deterministic. [ YOCTO #9709 ] (From OE-Core rev: 2fdd2c1434e7c741b8048145bd460c68bea7ee53) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-04systemtap: update to 3.0Alexander Kanavin
Remove docproc-build-fix.patch, as the build problem it's fixing now happens only if building html docs is explicitly enabled (which we do not do). (From OE-Core rev: 1310a71a81e0b19919fc622f676fa6106be6cf9d) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-03systemtap: move to Python 3Alexander Kanavin
(From OE-Core rev: fa707f700c0d2317cc5c0289e3e1fc1eb859ef40) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-01-31systemtap_git.inc: do not immediate expand SELECTED_OPTIMIZATIONHongxu Jia
We need to expand SELECTED_OPTIMIZATION later, so do not immediate expansion, and do the work in anonymous python function. It is reasonable to give an error for -O0. [YOCTO #7058] (From OE-Core rev: 3d2455c1959283b956cb7536cd866717fefc10e8) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-12-16systemtap: update to 2.9Alexander Kanavin
(From OE-Core rev: 9083d25fa797272137737577228a3f7a5d95b27f) 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>
2015-12-16meta: more removals of redunant FILES_${PN}-dbgRoss Burton
In some recipes overly-split -dbg packages were merged into PN-dbg. Unless there's a very good reason, recipes should have a single -dev and -dbg package. (From OE-Core rev: a3b000643898d7402b9e57c02e8d10e677cc9722) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-03-20systemtap: Fix build in x32 ABIAníbal Limón
Add a patch for fix printing of time_t value that is long long int in x32 ABI instead of long int. [YOCTO #7423] (From OE-Core rev: 194f0be44fa37605d0b5897138848fa378593d62) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-03-10systemtap: Upgrade to 2.7Saul Wold
This address issues with the 3.19 kernel and the number of patches to back port would be to great [YOCTO #7401] (From OE-Core rev: 7ec29a4dbcc62a928c517bd968c499e325580bfe) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-01-23kernel/image/depmodwrapper: Fixups for depmodRichard Purdie
With the rpm package backend enabled, running: bitbake <image> bitbake virtual/kernel -c clean bitbake <image> -c rootfs -f results in an image with incorrect kernel module dependency information. The problem is that the System.map and kernel-abiversion files are needed for depmod and after the recent kernel changes, these are no longer in sstate. Its reasonable to require the kernel to unpack/build if you're about to build a module against it. It is not reasonable to require this just to build a rootfs. Therefore stash the needed files specifically for depmod. Also fix some STAGING_KERNEL_DIR references which were incorrect, found whilst sorting through his change. (From OE-Core rev: b851504dcf5e147c9efb1c7b6a4d22c1a1a87cd7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-11-09systemtap: Upgrade to 2.6 Git VersionSaul Wold
Remove backported patch (From OE-Core rev: 89a900cb356504bc56e507412adaf5a0d5043ac9) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-23systemtap: disable libvirtWenzong Fan
libvirt is automatically linked to if present, this undetermined dependency may cause build errors like: ../lib/libvirt.so: undefined reference to `libssh2_channel_open_ex' ../lib/libvirt.so: undefined reference to `libssh2_session_hostkey' ... Both libvirt and libssh2 are not oe-core recipes for now, just disable libvirt to fix this issue. (From OE-Core rev: 815b44914eb30b86dfce0e81ffda7884e0efcc34) Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-03systemtap: Cross compilation fixMikhail Durnev
This is a cross compilation fix. It allows systemtap to find the kernel map file in the right place, i.e. in the kernel build tree. Without this fix it takes a map file from the build host, if available. (From OE-Core rev: 787bed708676fc04aee2850825e803273152f657) Signed-off-by: Mikhail Durnev <mikhail_durnev@mentor.com> Signed-off-by: Muzaffar Mahmood <muzaffar_mahmood@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-03systemtap: Fixed probe syscall.sendfile failureMikhail Durnev
Marked __syscall.compat_sendfile as optional (From OE-Core rev: 74bfb662246411aa062cd8b2acd37be1bbed39d3) Signed-off-by: Mikhail Durnev <mikhail_durnev@mentor.com> Signed-off-by: Muzaffar Mahmood <muzaffar_mahmood@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-05-13systemtap: remove usage of FILESPATHPetter Mabäcker
Fixes [YOCTO #4497] Usage of FILESPATH is discouraged, since it can make recipes harder to bbappend. Instead FILESEXTRAPATHS should be used to extend the path. (From OE-Core rev: 20de1b4d28f165593e86ee52211ebb595da4c01f) Signed-off-by: Petter Mabäcker <petter@technux.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-05-06systemtap: update to 2.5 releaseFathi Boudra
(From OE-Core rev: 6c30c43af893d3d68651501c0ffb01d46c5f4d13) Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-25Globally replace 'base_contains' calls with 'bb.utils.contains'Otavio Salvador
The base_contains is kept as a compatibility method and we ought to not use it in OE-Core so we can remove it from base metadata in future. (From OE-Core rev: d83b16dbf0862be387f84228710cb165c6d2b03b) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-05systemtap: Move to current HEADTom Zanussi
This moves the systemtap recipe to the current HEAD commit, in order to get users past some bugs affecting ppc and arm. Fixes [YOCTO #6016] (From OE-Core rev: efac179f243459c53d0431fbcce92a3561b40956) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-14systemtap_git: update to newer version to fix a build issueNitin A Kamble
This build issue was observed with the 2.4+git version of the systemtap. .../x86_64-linux/systemtap-native/2.4+gitAUTOINC+9190b3acfe-r0/git/tapsets.cxx: In function 'void validate_module_elf(Dwfl_Module*, const char*, base_query*)': .../x86_64-linux/systemtap-native/2.4+gitAUTOINC+9190b3acfe-r0/git/tapsets.cxx:1998:10: error: 'EM_AARCH64' was not declared in this scope .../x86_64-linux/systemtap-native/2.4+gitAUTOINC+9190b3acfe-r0/git/tapsets.cxx: In constructor 'sdt_uprobe_var_expanding_visitor::sdt_uprobe_var_expanding_visitor(systemtap_session&, int, const string&, const string&, const string&, stap_sdt_probe_type, const string&, int)': .../x86_64-linux/systemtap-native/2.4+gitAUTOINC+9190b3acfe-r0/git/tapsets.cxx:5613:31: error: 'EM_AARCH64' was not declared in this scope This is a known issue, and it is already fixed in the upstream tree. Updating the recipe to get the commit which fixes the issue. (From OE-Core rev: 5170f58f4a46edead40d98f302ba3294e078c113) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-09systemtap: add aarch64 supportFathi Boudra
bump SRCREV to include the relevant commits for aarch64 support update COMPATIBLE_HOST to include aarch64 cleanup md5sum/sha256sum since we use git (From OE-Core rev: 1c2cbd3b54a9bf589d41c8320734a95af52c36d6) Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-02systemtap: Add --enable-prologues to configurationTom Zanussi
In some cases, the debuginfo generated by the compiler is insufficient for systemtap to figure out function param locations; using -P allows it to use prologue searching to find the correct locations. Enable prologue searching in the configuration so the user doesn't have to specify it manually. Fixes [YOCTO #5403]. (From OE-Core rev: 798faec374cac7743d2b5bf390ef6263a0e6cdf4) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-02Replace one-line DESCRIPTION with SUMMARYPaul Eggleton
A lot of our recipes had short one-line DESCRIPTION values and no SUMMARY value set. In this case it's much better to just set SUMMARY since DESCRIPTION is defaulted from SUMMARY anyway and then the SUMMARY is at least useful. I also took the opportunity to fix up a lot of the new SUMMARY values, making them concisely explain the function of the recipe / package where possible. (From OE-Core rev: b8feee3cf21f70ba4ec3b822d2f596d4fc02a292) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-11-27systemtap: upgrade to 2.4Cristiana Voicu
(From OE-Core rev: fb8ccbd06929aa539c39e65fb8926a945db922ea) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>