[3/6] rtla: Add kernel configs to enable tracers

Message ID 20240819074202.34144-4-patrick.barsanti@amarulasolutions.com
State New
Headers show
Series
  • Add support for rtla tool
Related show

Commit Message

Patrick Barsanti Aug. 19, 2024, 7:41 a.m. UTC
rtla is entirely based upon usage of the following kernel tracers:
- timerlat
- osnoise
- hwnoise
which by default are not enabled in linux-yocto.
Add the .cfg file which enables them, and add that file to the sources,
so that rtla can work as intended.

Signed-off-by: Patrick Barsanti <patrick.barsanti@amarulasolutions.com>
---
 meta/recipes-kernel/linux/files/rtla.cfg      | 3 +++
 meta/recipes-kernel/linux/linux-yocto_6.10.bb | 3 ++-
 meta/recipes-kernel/linux/linux-yocto_6.6.bb  | 3 ++-
 3 files changed, 7 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-kernel/linux/files/rtla.cfg

Patch

diff --git a/meta/recipes-kernel/linux/files/rtla.cfg b/meta/recipes-kernel/linux/files/rtla.cfg
new file mode 100644
index 0000000000..a36f2c8afe
--- /dev/null
+++ b/meta/recipes-kernel/linux/files/rtla.cfg
@@ -0,0 +1,3 @@ 
+CONFIG_OSNOISE_TRACER=y
+CONFIG_HWLAT_TRACER=y
+CONFIG_TIMERLAT_TRACER=y
diff --git a/meta/recipes-kernel/linux/linux-yocto_6.10.bb b/meta/recipes-kernel/linux/linux-yocto_6.10.bb
index c022d86c8c..ee0227380c 100644
--- a/meta/recipes-kernel/linux/linux-yocto_6.10.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_6.10.bb
@@ -42,7 +42,8 @@  KBRANCH:class-devupstream = "v6.10/base"
 
 SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRANCH};protocol=https \
            git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.10;destsuffix=${KMETA};protocol=https \
-           file://${THISDIR}/files/0001-Revert-tools-rtla-Use-tools-build-makefiles-to-build.patch"
+           file://${THISDIR}/files/0001-Revert-tools-rtla-Use-tools-build-makefiles-to-build.patch \
+           file://${THISDIR}/files/rtla.cfg"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
 LINUX_VERSION ?= "6.10.3"
diff --git a/meta/recipes-kernel/linux/linux-yocto_6.6.bb b/meta/recipes-kernel/linux/linux-yocto_6.6.bb
index 83b7066b90..5a574add85 100644
--- a/meta/recipes-kernel/linux/linux-yocto_6.6.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_6.6.bb
@@ -41,7 +41,8 @@  PN:class-devupstream = "linux-yocto-upstream"
 KBRANCH:class-devupstream = "v6.6/base"
 
 SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRANCH};protocol=https \
-           git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.6;destsuffix=${KMETA};protocol=https"
+           git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.6;destsuffix=${KMETA};protocol=https \
+           file://${THISDIR}/files/rtla.cfg"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
 LINUX_VERSION ?= "6.6.45"