From 1253fb84313b7acb5f971e967ceaffeaa604d01c Mon Sep 17 00:00:00 2001 From: Vaibhav Jindal Date: Tue, 4 Aug 2026 11:21:52 +0530 Subject: [PATCH] cyclictest: add real-time latency measurement recipe Add a recipe for cyclictest from the rt-tests project, a real-time latency measurement tool used to evaluate Linux kernel scheduler latency and jitter under various workloads. The recipe builds and installs the cyclictest executable with NUMA support enabled for use in real-time performance evaluation, latency analysis, and regression testing. Signed-off-by: Vaibhav Jindal Signed-off-by: Khem Raj --- .../cyclictest/cyclictest_git.bb | 24 +++++++++++++++++++ .../packagegroups/packagegroup-meta-oe.bb | 1 + 2 files changed, 25 insertions(+) create mode 100644 meta-oe/recipes-benchmark/cyclictest/cyclictest_git.bb diff --git a/meta-oe/recipes-benchmark/cyclictest/cyclictest_git.bb b/meta-oe/recipes-benchmark/cyclictest/cyclictest_git.bb new file mode 100644 index 0000000000..c31dd1cfca --- /dev/null +++ b/meta-oe/recipes-benchmark/cyclictest/cyclictest_git.bb @@ -0,0 +1,24 @@ +SUMMARY = "Real-time latency measurement tool" +DESCRIPTION = "Cyclictest is a tool for measuring real-time latency and jitter on Linux systems. It measures the latency of the kernel scheduler." +HOMEPAGE = "https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git" +LICENSE = "GPL-2.0-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" + +SRC_URI = "git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git;protocol=https;branch=main" +SRCREV = "7aca81171ea05a03d0e8698af4ae53c5177f5f83" + +DEPENDS = "numactl" + +# Filter out unsupported compiler flags +CFLAGS:remove = "-fcanon-prefix-map" + +do_configure[noexec] = "1" + +do_compile() { + oe_runmake NUMA=1 CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" cyclictest +} + +do_install() { + install -d ${D}${bindir} + install -m 0755 ${B}/cyclictest ${D}${bindir}/cyclictest +} diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb index 0320021d65..8f32706ef9 100644 --- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb @@ -54,6 +54,7 @@ RDEPENDS:packagegroup-meta-oe-benchmarks = "\ bonnie++ \ coremark-pro \ cpupower \ + cyclictest \ dbench \ dhrystone \ fio \