Skip to contentSkip to conversation

systemtap improvements

PATCH Superseded Yann Dirson 3 participants 15 messages Sep 21, 2020 – Nov 12, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover systemtap improvements

From: Yann Dirson <[email protected]>

The goal of this series is to allow for packages to provide systemtap probes and get them cross-compiled on the host, shipping only the minimal runtime in the filesystem.

People willing to build the probes on target can continue to do so with no changes for some many users, but usage of python probes now requires systemtap-python.

This series also includes unrelated fixes to the systemtap packaging, on which I stumbled while on the main subject.

Of note is the "fix finding proper System.map" patch, for which I wonder if the real fix would not be to keep an unversionned System.map file in kernel_build_tree, so stay compatible with upstream kernel.

Yann Dirson (8):
systemtap: split examples and python scripts out of main package
systemtap: remove extra dependencies
systemtap: clarify the relation between exporter and python3-probes
feature
systemtap: fix install when python3-probes is disabled in
PACKAGECONFIG
systemtap: split runtime material in its own package
systemtap-native: fix finding proper System.map
kernel: consider vmlinux a build artifact, so systemtap can use it New systemtap.bb class, and systemtap-demo.bb to illustrate it.

 meta/classes/kernel.bbclass                   |  4 +
 meta/classes/systemtap.bbclass                | 74 +++++++++++++++++++
 .../systemtap/systemtap-demo_git.bb           | 71 ++++++++++++++++++
 .../systemtap/systemtap-native_git.bb         |  6 ++
 .../systemtap/system-map-location.patch       | 26 +++++++
 .../recipes-kernel/systemtap/systemtap_git.bb | 38 ++++++++--
 6 files changed, 213 insertions(+), 6 deletions(-)
 create mode 100644 meta/classes/systemtap.bbclass
 create mode 100644 meta/recipes-kernel/systemtap/systemtap-demo_git.bb
 create mode 100644 meta/recipes-kernel/systemtap/systemtap/system-map-location.patch
Signature · 1 line
2.28.0
#1 lore raw

PATCH 1/8 systemtap: split examples and python scripts out of main package

From: Yann Dirson <[email protected]>

---
 meta/recipes-kernel/systemtap/systemtap_git.bb | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
meta/recipes-kernel/systemtap/systemtap_git.bb +17 -0
index 1c9f2aed16..e98aff1851 100644
@@ -38,6 +38,23 @@ RDEPENDS_${PN}-exporter = "${PN} python3-core python3-netclient"
 
 SYSTEMD_SERVICE_${PN}-exporter = "stap-exporter.service"
 
+PACKAGES =+ "${PN}-examples"
+FILES_${PN}-examples = "${datadir}/${BPN}/examples/"
+RDEPENDS_${PN}-examples += "${PN}"
+
+# don't complain that some examples involve bash, perl, php...
+INSANE_SKIP_${PN}-examples += "file-rdeps"
+
+PACKAGES =+ "${PN}-python"
+FILES_${PN}-python += "\
+ ${bindir}/dtrace \
+ ${libdir}/python*/ \
+ ${libexecdir}/${BPN}/python/ \
+"
+# python material requires sdt headers
+RDEPENDS_${PN}-python += "${PN}-dev python3-core"
+INSANE_SKIP_${PN}-python += "dev-deps"
+
 do_configure_prepend () {
     # Improve reproducibility for c++ object files
     reltivepath="${@os.path.relpath(d.getVar('STAGING_INCDIR'), d.getVar('S'))}"
Signature · 1 line
2.28.0
#2 lore raw

PATCH 2/8 systemtap: remove extra dependencies

In reply to Yann Dirson

From: Yann Dirson <[email protected]>

Most of the RDEPENDS part of PACKAGECONFIG[translator] appears to be related to examples only.

---
 meta/recipes-kernel/systemtap/systemtap_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-kernel/systemtap/systemtap_git.bb +1 -1
index e98aff1851..375e570454 100644
@@ -19,7 +19,7 @@ STAP_DOCS ?= "--disable-docs --disable-publican --disable-refdocs"
 EXTRA_OECONF += "${STAP_DOCS} "
 
 PACKAGECONFIG ??= "translator sqlite monitor python3-probes"
-PACKAGECONFIG[translator] = "--enable-translator,--disable-translator,boost,python3-core bash perl"
+PACKAGECONFIG[translator] = "--enable-translator,--disable-translator,boost,bash"
 PACKAGECONFIG[libvirt] = "--enable-libvirt,--disable-libvirt,libvirt"
 PACKAGECONFIG[sqlite] = "--enable-sqlite,--disable-sqlite,sqlite3"
 PACKAGECONFIG[monitor] = "--enable-monitor,--disable-monitor,ncurses json-c"
Signature · 1 line
2.28.0
#3 lore raw

PATCH 3/8 systemtap: clarify the relation between exporter and python3-probes feature

In reply to Yann Dirson

From: Yann Dirson <[email protected]>

---
 meta/recipes-kernel/systemtap/systemtap_git.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
meta/recipes-kernel/systemtap/systemtap_git.bb +1 -3
index 375e570454..89f550c859 100644
@@ -27,15 +27,13 @@ PACKAGECONFIG[python3-probes] = "--with-python3-probes,--without-python3-probes,
 
 inherit autotools gettext pkgconfig distutils3-base systemd
 
+# exporter comes with python3-probes
 PACKAGES =+ "${PN}-exporter"
-
 FILES_${PN}-exporter = "${sysconfdir}/stap-exporter/* \
                         ${sysconfdir}/sysconfig/stap-exporter \
                         ${systemd_unitdir}/system/stap-exporter.service \
                         ${sbindir}/stap-exporter"
-
 RDEPENDS_${PN}-exporter = "${PN} python3-core python3-netclient"
-
 SYSTEMD_SERVICE_${PN}-exporter = "stap-exporter.service"
 
 PACKAGES =+ "${PN}-examples"
Signature · 1 line
2.28.0
#4 lore raw

PATCH 4/8 systemtap: fix install when python3-probes is disabled in PACKAGECONFIG

In reply to Yann Dirson

From: Yann Dirson <[email protected]>

---
 meta/recipes-kernel/systemtap/systemtap_git.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta/recipes-kernel/systemtap/systemtap_git.bb +4 -2
index 89f550c859..74bf7cb35c 100644
@@ -66,7 +66,7 @@ do_install_append () {
       rm ${D}${libexecdir}/${PN}/stap-env
    fi
 
-   if [ ${D}${prefix}/lib != `dirname ${D}${systemd_unitdir}` ]; then
+   if [ -d ${D}${prefix}/lib/systemd -a ${D}${prefix}/lib != `dirname ${D}${systemd_unitdir}` ]; then
       # Fix makefile hardcoded path assumptions for systemd (assumes $prefix)
       # without usrmerge distro feature enabled
       install -d `dirname ${D}${systemd_unitdir}`
@@ -75,7 +75,9 @@ do_install_append () {
    fi
 
    # Ensure correct ownership for files copied in
-   chown root:root ${D}${sysconfdir}/stap-exporter/* -R
+   if [ -d ${D}${sysconfdir}/stap-exporter ]; then
+       chown root:root ${D}${sysconfdir}/stap-exporter/* -R
+   fi
 }
 
 BBCLASSEXTEND = "nativesdk"
Signature · 1 line
2.28.0
#5 lore raw

PATCH 5/8 systemtap: split runtime material in its own package

In reply to Yann Dirson

From: Yann Dirson <[email protected]>

Note the _class-target qualifier, here to prevent a funky dependency of systemtap-native on systemtap-native-runtime-native. This possibly hints to something deeper ?

---
 meta/recipes-kernel/systemtap/systemtap_git.bb | 9 +++++++++
 1 file changed, 9 insertions(+)
meta/recipes-kernel/systemtap/systemtap_git.bb +9 -0
index 74bf7cb35c..8dad5b15f0 100644
@@ -36,6 +36,15 @@ FILES_${PN}-exporter = "${sysconfdir}/stap-exporter/* \
 RDEPENDS_${PN}-exporter = "${PN} python3-core python3-netclient"
 SYSTEMD_SERVICE_${PN}-exporter = "stap-exporter.service"
 
+PACKAGES =+ "${PN}-runtime"
+FILES_${PN}-runtime = "\
+ ${bindir}/staprun \
+ ${bindir}/stap-merge \
+ ${bindir}/stapsh \
+ ${libexecdir}/${BPN}/stapio \
+"
+RDEPENDS_${PN}_class-target += "${PN}-runtime"
+
 PACKAGES =+ "${PN}-examples"
 FILES_${PN}-examples = "${datadir}/${BPN}/examples/"
 RDEPENDS_${PN}-examples += "${PN}"
Signature · 1 line
2.28.0
#6 lore raw

PATCH 6/8 systemtap-native: fix finding proper System.map

In reply to Yann Dirson

From: Yann Dirson <[email protected]>

Upstream looks for unversionned System.map file in kernel_build_tree, and if this fails goes for versionned filename in $sysroot/boot/. OTOH we have a versionned filename in kernel_build_tree.

---
 .../systemtap/systemtap-native_git.bb         |  6 +++++
 .../systemtap/system-map-location.patch       | 26 +++++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 meta/recipes-kernel/systemtap/systemtap/system-map-location.patch
meta/recipes-kernel/systemtap/systemtap-native_git.bb +6 -0
index 19cc1cf0f0..e24abcc2d6 100644
@@ -3,4 +3,10 @@ require systemtap_git.bb
 
 inherit native
 
+# don't look in /boot, and use kernel version to find proper
+# System.map-xxx in kernel build tree
+SRC_URI += "\
+ file://system-map-location.patch \
+"
+
 addtask addto_recipe_sysroot after do_populate_sysroot before do_build
meta/recipes-kernel/systemtap/systemtap/system-map-location.patch new file +26 -0
new file mode 100644
index 0000000000..61e477bf69
@@ -0,0 +1,26 @@
+Index: git/session.cxx
+===================================================================
+--- git.orig/session.cxx
++++ git/session.cxx
+@@ -2021,20 +2021,12 @@ systemtap_session::parse_kernel_exports
+ int
+ systemtap_session::parse_kernel_functions ()
+ {
+-  string system_map_path = kernel_build_tree + "/System.map";
++  string system_map_path = kernel_build_tree + "/System.map-" + kernel_release;
+   ifstream system_map;
+ 
+   system_map.open(system_map_path.c_str(), ifstream::in);
+   if (! system_map.is_open())
+     {
+-      if (verbose > 1)
+-	clog << _F("Kernel symbol table %s unavailable, (%s)",
+-		   system_map_path.c_str(), strerror(errno)) << endl;
+-
+-      system_map_path = sysroot + "/boot/System.map-" + kernel_release;
+-      system_map.clear();
+-      system_map.open(system_map_path.c_str(), ifstream::in);
+-      if (! system_map.is_open())
+         {
+ 	  if (verbose > 1)
+ 	    clog << _F("Kernel symbol table %s unavailable, (%s)",
Signature · 1 line
2.28.0
#7 lore raw

PATCH 7/8 kernel: consider vmlinux a build artifact, so systemtap can use it

In reply to Yann Dirson

From: Yann Dirson <[email protected]>

Cross-building a systemtap module requires access to debug information.

---
 meta/classes/kernel.bbclass | 4 ++++
 1 file changed, 4 insertions(+)
meta/classes/kernel.bbclass +4 -0
index 48135b3d41..fd2355bb68 100644
@@ -495,6 +495,10 @@ do_shared_workdir () {
 		cp signing_key.* $kerneldir/
 	fi
 
+        # Copy vmlinux, needed by recipes depending on kernel debuginfo,
+        # like systemtap modules
+        cp vmlinux $kerneldir/
+
 	# We can also copy over all the generated files and avoid special cases
 	# like version.h, but we've opted to keep this small until file creep starts
 	# to happen
Signature · 1 line
2.28.0
#8 lore raw

PATCH 8/8 New systemtap.bb class, and systemtap-demo.bb to illustrate it.

In reply to Yann Dirson

From: Yann Dirson <[email protected]>

---
 meta/classes/systemtap.bbclass                | 74 +++++++++++++++++++
 .../systemtap/systemtap-demo_git.bb           | 71 ++++++++++++++++++
 2 files changed, 145 insertions(+)
 create mode 100644 meta/classes/systemtap.bbclass
 create mode 100644 meta/recipes-kernel/systemtap/systemtap-demo_git.bb
meta/classes/systemtap.bbclass new file +74 -0
new file mode 100644
index 0000000000..928202c1ff
@@ -0,0 +1,74 @@
+# A bbclass to cross-build systemtap (.stp) scripts and install them
+# suitably for on-target usage with staprun.  All compiled .ko files
+# are installed directly in /lib/modules/${KERNEL_VERSION}/systemtap/
+# so their names must be unique.
+
+# FIXME:
+# - cannot handle building a probe several times with different args
+
+# verbosity flags easy to override and amend
+STAP_FLAGS = "-v"
+#STAP_FLAGS += "-B V=1"
+
+# set to "1" to avoid failing on first error
+STAP_WARNONLY = "0"
+
+# Should be absolute (use ${S}, ${WORKDIR}, etc)
+# .stp scripts to be compiled and installed.
+STAP_SCRIPTS ??= ""
+# subset of STAP_SCRIPTS not to compile (exclusion from glob pattern)
+STAP_EXCLUDE_SCRIPTS ??= ""
+
+STAP_OUT ??= "${B}/systemtap"
+
+inherit module-base
+
+DEPENDS += "systemtap-native"
+
+STAPCMD = "stap -p4 ${STAP_FLAGS}"
+STAPCMD += "-a '${ARCH}' -B CROSS_COMPILE='${CROSS_COMPILE}'"
+STAPCMD += "-r '${STAGING_KERNEL_BUILDDIR}'"
+
+# FIXME: most of those should be in the scope of systemtap-native
+STAPCMD += "--sysroot='${RECIPE_SYSROOT}'"
+STAPCMD += "-R '${RECIPE_SYSROOT_NATIVE}${datadir}/systemtap/runtime'"
+STAPCMD += "-I '${RECIPE_SYSROOT_NATIVE}${datadir}/systemtap/tapset'"
+
+## FIXME workaround LDFLAGS not being made for ld
+TARGET_LDFLAGS="-O1 --hash-style=gnu --as-needed"
+
+do_compile_append() {
+    rm -rf ${STAP_OUT}
+    mkdir -p ${STAP_OUT}
+    # expand glob patterns
+    stap_scripts=$(echo ${STAP_SCRIPTS})
+    stap_exclude_scripts=$(echo ${STAP_EXCLUDE_SCRIPTS})
+    for s in ${stap_scripts}; do
+        m=$(basename ${s%.stp})
+        m=$(printf $m | tr -c '[:alnum:]' _)
+        case " ${stap_exclude_scripts} " in
+          *\ $s\ *) continue ;;
+        esac
+        eval extraflags=\${STAP_EXTRAFLAGS_$m}
+        (
+            cd ${STAP_OUT}
+            [ ! -e "$m.ko" ] || bbwarn "compiling $s: $m.ko already exists"
+            if ! ${STAPCMD} ${extraflags} -m "$m" "$s"; then
+                if [ "${STAP_WARNONLY}" = 1 ]; then
+                    bbwarn "build failure for $s"
+                else
+                    bbfatal "build failure for $s"
+                fi
+            fi
+        )
+    done
+}
+
+do_install_append() {
+    DST=${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/systemtap
+    install -d -m755 ${DST}
+    install -m644 ${STAP_OUT}/*.ko ${DST}/
+}
+
+FILES_${PN} += "${nonarch_base_libdir}/modules"
+RRECOMMENDS_${PN} += "systemtap-runtime"
meta/recipes-kernel/systemtap/systemtap-demo_git.bb new file +71 -0

71 lines not on this page · raw message

Signature · 1 line
2.28.0
#9 lore raw

Re: [OE-core] [PATCH 8/8] New systemtap.bb class, and systemtap-demo.bb to illustrate it.

Quoted 8 lines · Yann Dirson

From: Yann Dirson <[email protected]>

---
 meta/classes/systemtap.bbclass                | 74 +++++++++++++++++++
 .../systemtap/systemtap-demo_git.bb           | 71 ++++++++++++++++++
 2 files changed, 145 insertions(+)
 create mode 100644 meta/classes/systemtap.bbclass
 create mode 100644 meta/recipes-kernel/systemtap/systemtap-demo_git.bb

I'm afraid this patch is going to throw warnings all over the autobuilder, e.g.:

https://autobuilder.yoctoproject.org/typhoon/#/builders/40/builds/2488

(and there will be more).

We are trying to ensure all warnings are solved so that any that do show are real issues and this patch would significantly distract from that.

I'm also wary that we're now in feature freeze for release so perhaps these changes should wait until 3.3?

Cheers,

Richard

#10 lore raw

Re: [OE-core] [PATCH 8/8] New systemtap.bb class, and systemtap-demo.bb to illustrate it.

Quoted 13 lines · Richard Purdie
Quoted 8 lines · Yann Dirson

From: Yann Dirson <[email protected]>

---
 meta/classes/systemtap.bbclass                | 74 +++++++++++++++++++
 .../systemtap/systemtap-demo_git.bb           | 71 ++++++++++++++++++
 2 files changed, 145 insertions(+)
 create mode 100644 meta/classes/systemtap.bbclass
 create mode 100644 meta/recipes-kernel/systemtap/systemtap-demo_git.bb

I'm afraid this patch is going to throw warnings all over the autobuilder, e.g.:

Quoted 8 lines

https://autobuilder.yoctoproject.org/typhoon/#/builders/40/builds/2488

(and there will be more).

We are trying to ensure all warnings are solved so that any that do show are real issues and this patch would significantly distract from that.

OK, we could default to built just the handful of probes that should always build,
and give instructions for those willing to use the current behaviour.

I'm also wary that we're now in feature freeze for release so perhaps

Quoted 2 lines

these changes should wait until 3.3?

OK, I can reroll a series with just the fixes.

For the rest should I just wait for the gatesgarth branch to be created and resubmit then ?

Signature · 2 lines
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech
#11 lore raw

Re: [OE-core] [PATCH 8/8] New systemtap.bb class, and systemtap-demo.bb to illustrate it.

Quoted 24 lines · Yann Dirson
Quoted 20 lines · Richard Purdie
Quoted 4 lines · Yann Dirson

From: Yann Dirson <[email protected]>

---
 meta/classes/systemtap.bbclass                | 74

+++++++++++++++++++

Quoted 1 line
 .../systemtap/systemtap-demo_git.bb           | 71

++++++++++++++++++

Quoted 3 lines
 2 files changed, 145 insertions(+)
 create mode 100644 meta/classes/systemtap.bbclass
 create mode 100644 meta/recipes-kernel/systemtap/systemtap-

demo_git.bb

I'm afraid this patch is going to throw warnings all over the autobuilder, e.g.:

https://autobuilder.yoctoproject.org/typhoon/#/builders/40/builds/2488

(and there will be more).

Quoted 8 lines
Quoted 4 lines

We are trying to ensure all warnings are solved so that any that do show are real issues and this patch would significantly distract from
that.

OK, we could default to built just the handful of probes that should always build, and give instructions for those willing to use the current behaviour.

I think that is going to be safer and we could grow into more examples if/as/when we van build them.

Quoted 6 lines
Quoted 4 lines

I'm also wary that we're now in feature freeze for release so perhaps
these changes should wait until 3.3?

OK, I can reroll a series with just the fixes.

That would be great.

Quoted 2 lines

For the rest should I just wait for the gatesgarth branch to be created and resubmit then ?

Once we start taking new work on master, yes.

Also, for a new recipe like this we need a maintainers entry, else we see:

https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/1377

Cheers,

Richard

#12 lore raw

Re: [OE-core] [PATCH 8/8] New systemtap.bb class, and systemtap-demo.bb to illustrate it.

Quoted 31 lines · Richard Purdie
Quoted 29 lines · Yann Dirson
Quoted 24 lines · Richard Purdie
Quoted 4 lines · Yann Dirson

From: Yann Dirson <[email protected]>

---
 meta/classes/systemtap.bbclass                | 74

+++++++++++++++++++

Quoted 1 line
 .../systemtap/systemtap-demo_git.bb           | 71

++++++++++++++++++

Quoted 3 lines
 2 files changed, 145 insertions(+)
 create mode 100644 meta/classes/systemtap.bbclass
 create mode 100644 meta/recipes-kernel/systemtap/systemtap-

demo_git.bb

I'm afraid this patch is going to throw warnings all over the autobuilder, e.g.:

https://autobuilder.yoctoproject.org/typhoon/#/builders/40/builds/2488

(and there will be more).

We are trying to ensure all warnings are solved so that any that do show are real issues and this patch would significantly distract from
that.

Quoted 6 lines
Quoted 3 lines

OK, we could default to built just the handful of probes that should always build, and give instructions for those willing to use the current behaviour.

I think that is going to be safer and we could grow into more examples if/as/when we van build them.

Also, as the person that usually picks up systemtap breakage first on our new kernel versions .. we need to make sure that the reworked recipe and class pass the oe-selftest for stap.

It is doing on target compilation, so ideally, that test should be expanded to test bot the cross and on-target variants.

Cheers,

Bruce

Quoted 28 lines
Quoted 7 lines
Quoted 5 lines

I'm also wary that we're now in feature freeze for release so perhaps
these changes should wait until 3.3?

OK, I can reroll a series with just the fixes.

That would be great.

Quoted 2 lines

For the rest should I just wait for the gatesgarth branch to be created and resubmit then ?

Once we start taking new work on master, yes.

Also, for a new recipe like this we need a maintainers entry, else we see:

https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/1377

Cheers,

Richard

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
#13 lore raw

Re: [OE-core] [PATCH 8/8] New systemtap.bb class, and systemtap-demo.bb to illustrate it.

Le mar. 22 sept. 2020 à 02:41, Bruce Ashfield <[email protected]> a écrit :

Quoted 38 lines
Quoted 17 lines · Richard Purdie
Quoted 15 lines · Yann Dirson
Quoted 11 lines · Richard Purdie
Quoted 4 lines · Yann Dirson

From: Yann Dirson <[email protected]>

---
 meta/classes/systemtap.bbclass                | 74

+++++++++++++++++++

Quoted 1 line
 .../systemtap/systemtap-demo_git.bb           | 71

++++++++++++++++++

Quoted 3 lines
 2 files changed, 145 insertions(+)
 create mode 100644 meta/classes/systemtap.bbclass
 create mode 100644 meta/recipes-kernel/systemtap/systemtap-
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

demo_git.bb

I'm afraid this patch is going to throw warnings all over the autobuilder, e.g.:

https://autobuilder.yoctoproject.org/typhoon/#/builders/40/builds/2488

Quoted 12 lines
Quoted 11 lines
Quoted 7 lines

(and there will be more).

We are trying to ensure all warnings are solved so that any that do show are real issues and this patch would significantly distract from
that.

OK, we could default to built just the handful of probes that should always build, and give instructions for those willing to use the current behaviour.

Quoted 7 lines
Quoted 2 lines

I think that is going to be safer and we could grow into more examples if/as/when we van build them.

Also, as the person that usually picks up systemtap breakage first on our new kernel versions .. we need to make sure that the reworked recipe and class pass the oe-selftest for stap.

AFAICT, if we exclude this last patch, the only impact on tests is that those
testing modules with crosstap (which I only learnt about when looking for those tests)
and pulling the full systemtap package should be changed to pull systemtap-runtime
instead.

Now adding tests for the modules built with systemtap.class is a different thing.

It is doing on target compilation, so ideally, that test should be expanded

Quoted 2 lines

to test bot the cross and on-target variants.

The on-target compilation is already tested by
meta/lib/oeqa/runtime/cases/stap.py,
and there are crosstap tests in
meta/lib/oeqa/selftest/cases/runtime_test.py.

I have started to look at adding a test for modules cross-built by systemtap.bbclass,
but as it takes ages to run those tests it seems it would make sense to move this last
patch into a series of its own.

Quoted 40 lines

Cheers,

Bruce

Quoted 15 lines
Quoted 7 lines
Quoted 5 lines

I'm also wary that we're now in feature freeze for release so perhaps
these changes should wait until 3.3?

OK, I can reroll a series with just the fixes.

That would be great.

Quoted 2 lines

For the rest should I just wait for the gatesgarth branch to be created and resubmit then ?

Once we start taking new work on master, yes.

Quoted 13 lines

Also, for a new recipe like this we need a maintainers entry, else we see:

https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/1377

Cheers,

Richard

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

Signature · 2 lines
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech
#14 lore raw

Re: [OE-core] [PATCH 8/8] New systemtap.bb class, and systemtap-demo.bb to illustrate it.

Quoted 55 lines · Yann Dirson
Quoted 38 lines · Bruce Ashfield
Quoted 35 lines · Richard Purdie
Quoted 32 lines · Yann Dirson
Quoted 16 lines · Richard Purdie
Quoted 4 lines · Yann Dirson

From: Yann Dirson <[email protected]>

---
 meta/classes/systemtap.bbclass                | 74

+++++++++++++++++++

Quoted 1 line
 .../systemtap/systemtap-demo_git.bb           | 71

++++++++++++++++++

Quoted 3 lines
 2 files changed, 145 insertions(+)
 create mode 100644 meta/classes/systemtap.bbclass
 create mode 100644 meta/recipes-kernel/systemtap/systemtap-

demo_git.bb

I'm afraid this patch is going to throw warnings all over the autobuilder, e.g.:

Quoted 8 lines

https://autobuilder.yoctoproject.org/typhoon/#/builders/40/builds/2488

(and there will be more).

We are trying to ensure all warnings are solved so that any that do show are real issues and this patch would significantly distract from
that.

OK, we could default to built just the handful of probes that should always build, and give instructions for those willing to use the current behaviour.

Quoted 6 lines
Quoted 2 lines

I think that is going to be safer and we could grow into more examples if/as/when we van build them.

Also, as the person that usually picks up systemtap breakage first on our new kernel versions .. we need to make sure that the reworked recipe and class pass the oe-selftest for stap.

AFAICT, if we exclude this last patch, the only impact on tests is that those testing modules with crosstap (which I only learnt about when looking for those tests) and pulling the full systemtap package should be changed to pull systemtap-runtime instead.

Quoted 8 lines

Now adding tests for the modules built with systemtap.class is a different thing.

Quoted 2 lines

It is doing on target compilation, so ideally, that test should be expanded to test bot the cross and on-target variants.

The on-target compilation is already tested by meta/lib/oeqa/runtime/cases/stap.py, and there are crosstap tests in meta/lib/oeqa/selftest/cases/runtime_test.py.

I'm aware of that ..... I'm the one that runs them against most new kernels :D

Bruce

Quoted 53 lines

I have started to look at adding a test for modules cross-built by systemtap.bbclass, but as it takes ages to run those tests it seems it would make sense to move this last patch into a series of its own.

Quoted 36 lines

Cheers,

Bruce

Quoted 15 lines
Quoted 7 lines
Quoted 5 lines

I'm also wary that we're now in feature freeze for release so perhaps
these changes should wait until 3.3?

OK, I can reroll a series with just the fixes.

That would be great.

Quoted 2 lines

For the rest should I just wait for the gatesgarth branch to be created and resubmit then ?

Once we start taking new work on master, yes.

Quoted 13 lines

Also, for a new recipe like this we need a maintainers entry, else we see:

https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/1377

Cheers,

Richard

Quoted 4 lines

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

--
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II