diff options
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-modules/0001-Fix-sched_stat_runtime-changed-in-Linux-6.6.66.patch | 51 | ||||
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-modules_2.13.12.bb | 1 |
2 files changed, 52 insertions, 0 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..3c7731ae8f --- /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 @@ | |||
1 | From a04234d63999f91405574928c80ded870dca157a Mon Sep 17 00:00:00 2001 | ||
2 | From: Kienan Stewart <kstewart@efficios.com> | ||
3 | Date: Sun, 22 Dec 2024 17:39:35 +0800 | ||
4 | Subject: [PATCH] Fix: sched_stat_runtime changed in Linux 6.6.66 | ||
5 | |||
6 | The following commit has been backported into the 6.6.y branch. | ||
7 | |||
8 | See 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 | |||
24 | Change-Id: I74acf0b8340c371e8411116e07e5c97b10f9c756 | ||
25 | Signed-off-by: Kienan Stewart <kstewart@efficios.com> | ||
26 | |||
27 | Upstream-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] | ||
30 | Signed-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 | |||
35 | diff --git a/include/instrumentation/events/sched.h b/include/instrumentation/events/sched.h | ||
36 | index 24cf37c8..637a1e3a 100644 | ||
37 | --- a/include/instrumentation/events/sched.h | ||
38 | +++ b/include/instrumentation/events/sched.h | ||
39 | @@ -646,7 +646,8 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(sched_stat_template, sched_stat_blocked, | ||
40 | TP_ARGS(tsk, delay)) | ||
41 | #endif | ||
42 | |||
43 | -#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,8,0)) | ||
44 | +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,8,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 | -- | ||
50 | 2.43.0 | ||
51 | |||
diff --git a/meta/recipes-kernel/lttng/lttng-modules_2.13.12.bb b/meta/recipes-kernel/lttng/lttng-modules_2.13.12.bb index 95d5e2d615..34aff1ba8d 100644 --- a/meta/recipes-kernel/lttng/lttng-modules_2.13.12.bb +++ b/meta/recipes-kernel/lttng/lttng-modules_2.13.12.bb | |||
@@ -14,6 +14,7 @@ SRC_URI = "https://lttng.org/files/${BPN}/${BPN}-${PV}.tar.bz2 \ | |||
14 | file://0002-Fix-ASoC-add-component-to-set_bias_level-events-in-l.patch \ | 14 | file://0002-Fix-ASoC-add-component-to-set_bias_level-events-in-l.patch \ |
15 | file://0003-Fix-mm_compaction_migratepages-changed-in-linux-6.9-.patch \ | 15 | file://0003-Fix-mm_compaction_migratepages-changed-in-linux-6.9-.patch \ |
16 | file://0004-Fix-dev_base_lock-removed-in-linux-6.9-rc1.patch \ | 16 | file://0004-Fix-dev_base_lock-removed-in-linux-6.9-rc1.patch \ |
17 | file://0001-Fix-sched_stat_runtime-changed-in-Linux-6.6.66.patch \ | ||
17 | " | 18 | " |
18 | 19 | ||
19 | # Use :append here so that the patch is applied also when using devupstream | 20 | # Use :append here so that the patch is applied also when using devupstream |