summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiangyu Chen <xiangyu.chen@windriver.com>2024-12-22 18:25:20 +0800
committerSteve Sakoman <steve@sakoman.com>2025-01-13 05:49:08 -0800
commitd55092f458e62a59b649887131f5266874b21ff5 (patch)
tree4723568d9d499c91378b96b78e27e5659996151d
parent66f9cec85308921d62fa447f10828043c89a79c2 (diff)
downloadpoky-d55092f458e62a59b649887131f5266874b21ff5.tar.gz
lttng-modules: fix sched_stat_runtime changed in Linux 6.6.66
The following commit has been backported into the 6.6.y branch. See upstream commit: commit 5fe6ec8f6ab549b6422e41551abb51802bd48bc7 Author: Peter Zijlstra <peterz@infradead.org> Date: Mon Nov 6 13:41:43 2023 +0100 sched: Remove vruntime from trace_sched_stat_runtime() That caused building the lttng-modules report compile error: tracepoint-event-impl.h:133:6: error: conflicting types for 'trace_sched_stat_runtime'; The fix is still pending on lttng review board, backport it to oe-core to de-block the build issue. (From OE-Core rev: 0562a2c75985acf9ef33034e8aeb163afdc683bf) Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 5b973be9a7fbb2694d162ac06b76513525f3deed) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-kernel/lttng/lttng-modules/0001-Fix-sched_stat_runtime-changed-in-Linux-6.6.66.patch51
-rw-r--r--meta/recipes-kernel/lttng/lttng-modules_2.13.14.bb4
2 files changed, 54 insertions, 1 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-modules/0001-Fix-sched_stat_runtime-changed-in-Linux-6.6.66.patch b/meta/recipes-kernel/lttng/lttng-modules/0001-Fix-sched_stat_runtime-changed-in-Linux-6.6.66.patch
new file mode 100644
index 0000000000..bb40ff7243
--- /dev/null
+++ b/meta/recipes-kernel/lttng/lttng-modules/0001-Fix-sched_stat_runtime-changed-in-Linux-6.6.66.patch
@@ -0,0 +1,51 @@
1From 74cdd186fdd540b98ecded94d506b812d7d2bae5 Mon Sep 17 00:00:00 2001
2From: Kienan Stewart <kstewart@efficios.com>
3Date: Sun, 22 Dec 2024 17:39:35 +0800
4Subject: [PATCH] Fix: sched_stat_runtime changed in Linux 6.6.66
5
6The following commit has been backported into the 6.6.y branch.
7
8See upstream commit:
9
10 commit 5fe6ec8f6ab549b6422e41551abb51802bd48bc7
11 Author: Peter Zijlstra <peterz@infradead.org>
12 Date: Mon Nov 6 13:41:43 2023 +0100
13
14 sched: Remove vruntime from trace_sched_stat_runtime()
15
16 Tracing the runtime delta makes sense, observer can sum over time.
17 Tracing the absolute vruntime makes less sense, inconsistent:
18 absolute-vs-delta, but also vruntime delta can be computed from
19 runtime delta.
20
21 Removing the vruntime thing also makes the two tracepoint sites
22 identical, allowing to unify the code in a later patch.
23
24Change-Id: I74acf0b8340c371e8411116e07e5c97b10f9c756
25Signed-off-by: Kienan Stewart <kstewart@efficios.com>
26
27Upstream-Status: Pending [https://review.lttng.org/c/lttng-modules/+/13813]
28
29[Xiangyu: BP to fix compile error on linux 6.6.66, Minor conflict resolution]
30Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
31---
32 include/instrumentation/events/sched.h | 3 ++-
33 1 file changed, 2 insertions(+), 1 deletion(-)
34
35diff --git a/include/instrumentation/events/sched.h b/include/instrumentation/events/sched.h
36index 32d18133..0c62f2e6 100644
37--- a/include/instrumentation/events/sched.h
38+++ b/include/instrumentation/events/sched.h
39@@ -647,7 +647,8 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(sched_stat_template, sched_stat_blocked,
40 #endif
41
42 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,8,0) || \
43- LTTNG_RHEL_KERNEL_RANGE(5,14,0,452,0,0, 5,15,0,0,0,0))
44+ LTTNG_RHEL_KERNEL_RANGE(5,14,0,452,0,0, 5,15,0,0,0,0) || \
45+ LTTNG_KERNEL_RANGE(6,6,66, 6,7,0))
46 /*
47 * Tracepoint for accounting runtime (time the task is executing
48 * on a CPU).
49--
502.43.0
51
diff --git a/meta/recipes-kernel/lttng/lttng-modules_2.13.14.bb b/meta/recipes-kernel/lttng/lttng-modules_2.13.14.bb
index 5b1e61f3be..f6e86c4430 100644
--- a/meta/recipes-kernel/lttng/lttng-modules_2.13.14.bb
+++ b/meta/recipes-kernel/lttng/lttng-modules_2.13.14.bb
@@ -19,7 +19,9 @@ SRC_URI = "https://lttng.org/files/${BPN}/${BPN}-${PV}.tar.bz2 \
19 " 19 "
20 20
21# Use :append here so that the patch is applied also when using devupstream 21# Use :append here so that the patch is applied also when using devupstream
22SRC_URI:append = " file://0001-src-Kbuild-change-missing-CONFIG_TRACEPOINTS-to-warn.patch" 22SRC_URI:append = " file://0001-src-Kbuild-change-missing-CONFIG_TRACEPOINTS-to-warn.patch \
23 file://0001-Fix-sched_stat_runtime-changed-in-Linux-6.6.66.patch \
24 "
23 25
24SRC_URI[sha256sum] = "c6449f7ff12ab644a630692a556304e51525ca37d98aebf826796918be0f5da6" 26SRC_URI[sha256sum] = "c6449f7ff12ab644a630692a556304e51525ca37d98aebf826796918be0f5da6"
25 27