Skip to contentSkip to conversation

rteval: Change the default kernel for kcompile to linux-6.6.1

PATCH In review John Kacur 2 participants 3 messages Nov 9, 2023 – Nov 10, 2023 Kbuild

lore
Share & tools
lore

John Kacur

author
#0 lore raw

PATCH 1/1 rteval: Change the default kernel for kcompile to linux-6.6.1

Change the default kernel for kcompile to linux-6.6.1

---
 Makefile                         | 2 +-
 rteval/modules/loads/kcompile.py | 4 ++--
 rteval/rteval.conf               | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
Makefile +1 -1
index b73e8c13f3e5..14f74e087eff 100644
@@ -18,7 +18,7 @@ PREFIX  :=      /usr
 DATADIR	:=	$(DESTDIR)/$(PREFIX)/share
 LOADDIR	:=	loadsource
 
-KLOAD	:=	$(LOADDIR)/linux-6.1.8.tar.xz
+KLOAD	:=	$(LOADDIR)/linux-6.6.1.tar.xz
 BLOAD	:=	$(LOADDIR)/dbench-4.0.tar.gz
 LOADS	:=	$(KLOAD) $(BLOAD)
 
rteval/modules/loads/kcompile.py +2 -2
index 8be79ce630d5..0d025771e90e 100644
@@ -20,7 +20,7 @@ expand_cpulist = CpuList.expand_cpulist
 compress_cpulist = CpuList.compress_cpulist
 nonisolated_cpulist = CpuList.nonisolated_cpulist
 
-DEFAULT_KERNEL_PREFIX = "linux-6.1"
+DEFAULT_KERNEL_PREFIX = "linux-6.6"
 
 class KBuildJob:
     '''Class to manage a build job bound to a particular node'''
@@ -334,7 +334,7 @@ class Kcompile(CommandLineLoad):
 
 def ModuleParameters():
     return {"source":   {"descr": "Source tar ball",
-                         "default": "linux-6.1.8.tar.xz",
+                         "default": "linux-6.6.1.tar.xz",
                          "metavar": "TARBALL"},
             "jobspercore": {"descr": "Number of working threads per core",
                             "default": 2,
rteval/rteval.conf +1 -1
index 79e28032dc6b..a4aad33e264f 100644
@@ -18,7 +18,7 @@ dbench:    external
 stressng: module
 
 [kcompile]
-source: linux-6.1.8.xz
+source: linux-6.6.1.xz
 jobspercore: 2
 
 [hackbench]
Signature · 1 line
2.41.0
#1 lore raw

Makefile PREFIX := /usr · line 23

Quoted 12 lines · John Kacur
Makefile +1 -1
index b73e8c13f3e5..14f74e087eff 100644
@@ -18,7 +18,7 @@ PREFIX  :=      /usr
 DATADIR	:=	$(DESTDIR)/$(PREFIX)/share
 LOADDIR	:=	loadsource
 
-KLOAD	:=	$(LOADDIR)/linux-6.1.8.tar.xz
+KLOAD	:=	$(LOADDIR)/linux-6.6.1.tar.xz
 BLOAD	:=	$(LOADDIR)/dbench-4.0.tar.gz
 LOADS	:=	$(KLOAD) $(BLOAD)

Instead of doing this every now and then you could first limit it to one place and then build the remaining version coding from that point. Once that works, step two would be to grab the current version number from
https://www.kernel.org/finger_banner

\o/

Sebastian

author
#2 lore raw
Quoted 20 lines · Sebastian Andrzej Siewior

Makefile PREFIX := /usr · line 23

Quoted 12 lines · John Kacur
Makefile +1 -1
index b73e8c13f3e5..14f74e087eff 100644
@@ -18,7 +18,7 @@ PREFIX  :=      /usr
 DATADIR	:=	$(DESTDIR)/$(PREFIX)/share
 LOADDIR	:=	loadsource
 
-KLOAD	:=	$(LOADDIR)/linux-6.1.8.tar.xz
+KLOAD	:=	$(LOADDIR)/linux-6.6.1.tar.xz
 BLOAD	:=	$(LOADDIR)/dbench-4.0.tar.gz
 LOADS	:=	$(KLOAD) $(BLOAD)

Instead of doing this every now and then you could first limit it to one place and then build the remaining version coding from that point. Once that works, step two would be to grab the current version number from
https://www.kernel.org/finger_banner

Quoted 5 lines

\o/

Sebastian

We have to use a default kernel version that we know works with our current tool chain. Usually when I update the version it's because the older kernel doesn't compile on the latest distribution. For that reason though, we also can't just fetch the latest and greatest that we haven't tested.

We have added tools in rteval to make fetching the kernel easier, especially for upstream.

rteval -S [kernel-version]

will either fetch the kernel-version, or if that is omitted, it will fetch the default-kernel version for rteval from kernel.org

I guess what we're lacking is an option to have kcompile use an indicated kernel-version. This could be useful also for testing the version with rteval.

John