From 4982353c696256dfa130f5d009b4271fe34112ac Mon Sep 17 00:00:00 2001 From: unitexe Date: Sat, 17 Jan 2026 00:53:15 -0600 Subject: Introduce meta-unit-profiling - Additional profiling commands for busybox - Support systemd-bootchart - Enable kernel stats (needed for systemd-bootchart) --- meta-unit-profiling/recipes-core/busybox/busybox/iostat.cfg | 1 + meta-unit-profiling/recipes-core/busybox/busybox/mpstat.cfg | 1 + meta-unit-profiling/recipes-core/busybox/busybox_%.bbappend | 4 ++++ .../recipes-core/packagegroups/packagegroup-unit-profiling.bb | 11 +++++++++++ .../packagegroups/packagegroup-unit-systemd-profiling.bb | 8 ++++++++ 5 files changed, 25 insertions(+) create mode 100644 meta-unit-profiling/recipes-core/busybox/busybox/iostat.cfg create mode 100644 meta-unit-profiling/recipes-core/busybox/busybox/mpstat.cfg create mode 100644 meta-unit-profiling/recipes-core/busybox/busybox_%.bbappend create mode 100644 meta-unit-profiling/recipes-core/packagegroups/packagegroup-unit-profiling.bb create mode 100644 meta-unit-profiling/recipes-core/packagegroups/packagegroup-unit-systemd-profiling.bb (limited to 'meta-unit-profiling/recipes-core') diff --git a/meta-unit-profiling/recipes-core/busybox/busybox/iostat.cfg b/meta-unit-profiling/recipes-core/busybox/busybox/iostat.cfg new file mode 100644 index 0000000..3300ba8 --- /dev/null +++ b/meta-unit-profiling/recipes-core/busybox/busybox/iostat.cfg @@ -0,0 +1 @@ +CONFIG_IOSTAT=y diff --git a/meta-unit-profiling/recipes-core/busybox/busybox/mpstat.cfg b/meta-unit-profiling/recipes-core/busybox/busybox/mpstat.cfg new file mode 100644 index 0000000..9328d61 --- /dev/null +++ b/meta-unit-profiling/recipes-core/busybox/busybox/mpstat.cfg @@ -0,0 +1 @@ +CONFIG_MPSTAT=y diff --git a/meta-unit-profiling/recipes-core/busybox/busybox_%.bbappend b/meta-unit-profiling/recipes-core/busybox/busybox_%.bbappend new file mode 100644 index 0000000..fac7c9a --- /dev/null +++ b/meta-unit-profiling/recipes-core/busybox/busybox_%.bbappend @@ -0,0 +1,4 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +SRC_URI:append = " file://mpstat.cfg" +SRC_URI:append = " file://iostat.cfg" diff --git a/meta-unit-profiling/recipes-core/packagegroups/packagegroup-unit-profiling.bb b/meta-unit-profiling/recipes-core/packagegroups/packagegroup-unit-profiling.bb new file mode 100644 index 0000000..6682424 --- /dev/null +++ b/meta-unit-profiling/recipes-core/packagegroups/packagegroup-unit-profiling.bb @@ -0,0 +1,11 @@ +SUMMARY = "Profiling packages" +LICENSE = "MIT" + +inherit packagegroup + +# Performance analysis +RDEPENDS:${PN}:append = " procps" +RDEPENDS:${PN}:append = " sysstat" + +# Performance testing +RDEPENDS:${PN}:append = " stress-ng" diff --git a/meta-unit-profiling/recipes-core/packagegroups/packagegroup-unit-systemd-profiling.bb b/meta-unit-profiling/recipes-core/packagegroups/packagegroup-unit-systemd-profiling.bb new file mode 100644 index 0000000..6726266 --- /dev/null +++ b/meta-unit-profiling/recipes-core/packagegroups/packagegroup-unit-systemd-profiling.bb @@ -0,0 +1,8 @@ +SUMMARY = "Systemd profiling packages" +LICENSE = "MIT" + +inherit packagegroup + +RDEPENDS:${PN}:append = " systemd-bootchart" +RDEPENDS:${PN}:append = " systemd-bootchart-conf" +RDEPENDS:${PN}:append = " systemd-analyze" -- cgit v1.2.3