diff options
| author | Victor Kamensky <victor.kamensky7@gmail.com> | 2023-12-04 22:32:49 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-06 22:55:49 +0000 |
| commit | 463d56b9f075d03c264341724038ec322d855c47 (patch) | |
| tree | 087b856fbc83936f1c3c6bc1a1ef61a3c5de62fb /meta/recipes-kernel/systemtap | |
| parent | 5e8b43f8ca957933213069bdd699fe175df581ac (diff) | |
| download | poky-463d56b9f075d03c264341724038ec322d855c47.tar.gz | |
systemtap-uprobes: removed as obsolete
systemtap-uprobes package was not used for a long time - since kernel
itself provided uprobes support. Now source code of old uprobes kernel
module was removed from systemtap git repo by "PR30434 continuation:
Removed old uprobes, uprobes2 implementation, uprobes-inc.h & any
mentions of CONFIG_UTRACE." it is good time for us to gid rid of it
too.
(From OE-Core rev: 42fd5abedb835b6f87721674001c52304e43cfc5)
Signed-off-by: Victor Kamensky <victor.kamensky7@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/systemtap')
| -rw-r--r-- | meta/recipes-kernel/systemtap/systemtap-uprobes_git.bb | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/meta/recipes-kernel/systemtap/systemtap-uprobes_git.bb b/meta/recipes-kernel/systemtap/systemtap-uprobes_git.bb deleted file mode 100644 index 3d35481bdc..0000000000 --- a/meta/recipes-kernel/systemtap/systemtap-uprobes_git.bb +++ /dev/null | |||
| @@ -1,42 +0,0 @@ | |||
| 1 | SUMMARY = "UProbes kernel module for SystemTap" | ||
| 2 | HOMEPAGE = "https://sourceware.org/systemtap/" | ||
| 3 | require systemtap_git.inc | ||
| 4 | |||
| 5 | DEPENDS = "systemtap virtual/kernel" | ||
| 6 | |||
| 7 | # On systems without CONFIG_UTRACE, this package is empty. | ||
| 8 | ALLOW_EMPTY:${PN} = "1" | ||
| 9 | |||
| 10 | inherit module-base gettext | ||
| 11 | |||
| 12 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/systemtap:" | ||
| 13 | |||
| 14 | FILES:${PN} += "${datadir}/systemtap/runtime/uprobes" | ||
| 15 | |||
| 16 | # Compile and install the uprobes kernel module on machines with utrace | ||
| 17 | # support. Note that staprun expects it in the systemtap/runtime directory, | ||
| 18 | # not in /lib/modules. | ||
| 19 | do_compile() { | ||
| 20 | if grep -q "CONFIG_UTRACE=y" ${STAGING_KERNEL_BUILDDIR}/.config | ||
| 21 | then | ||
| 22 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CC LD CPP | ||
| 23 | oe_runmake CC="${KERNEL_CC}" LD="${KERNEL_LD}" \ | ||
| 24 | AR="${KERNEL_AR}" OBJCOPY="${KERNEL_OBJCOPY}" \ | ||
| 25 | STRIP="${KERNEL_STRIP}" \ | ||
| 26 | -C ${STAGING_KERNEL_DIR} scripts | ||
| 27 | oe_runmake KDIR=${STAGING_KERNEL_DIR} \ | ||
| 28 | M="${S}/runtime/uprobes/" \ | ||
| 29 | CC="${KERNEL_CC}" LD="${KERNEL_LD}" \ | ||
| 30 | AR="${KERNEL_AR}" OBJCOPY="${KERNEL_OBJCOPY}" \ | ||
| 31 | STRIP="${KERNEL_STRIP}" \ | ||
| 32 | -C "${S}/runtime/uprobes/" | ||
| 33 | fi | ||
| 34 | } | ||
| 35 | |||
| 36 | do_install() { | ||
| 37 | if [ -e "${S}/runtime/uprobes/uprobes.ko" ] | ||
| 38 | then | ||
| 39 | install -d ${D}${datadir}/systemtap/runtime/uprobes/ | ||
| 40 | install -m 0644 ${S}/runtime/uprobes/uprobes.ko ${D}${datadir}/systemtap/runtime/uprobes/ | ||
| 41 | fi | ||
| 42 | } | ||
