File fix-sched_stat_runtime-changed-in-linux-6.8.0-rc1.patch of Package lttng-modules
Author: Kienan Stewart <kstewart@efficios.com>
Date: Mon Jan 22 11:10:37 2024 -0500
Subject: Fix: sched_stat_runtime changed in linux 6.8.0-rc1
Git-commit: 60a1e80962cbea9e12c301724f11f834a7cb979d
References: bsc#1234394
Signed-off-by: Tony Jones <tonyj@suse.de>
----------------------------------------------------------------------------
SUSE: Enable the following upstream lttng commit for SLE15-SP7. Required due
to this local kernel-source commit:
commit a8e3a1b4f4029f482a560476486061806b3d25ee
Author: Mel Gorman <mgorman@suse.de>
Date: Fri Nov 29 16:22:41 2024 +0000
sched: Remove vruntime from trace_sched_stat_runtime()
(bsc#1233998 (Scheduler functional and performance backports)).
----------------------------------------------------------------------------
Fix: sched_stat_runtime changed in linux 6.8.0-rc1
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()
Tracing the runtime delta makes sense, observer can sum over time.
Tracing the absolute vruntime makes less sense, inconsistent:
absolute-vs-delta, but also vruntime delta can be computed from
runtime delta.
Removing the vruntime thing also makes the two tracepoint sites
identical, allowing to unify the code in a later patch.
Change-Id: I24ebb4e06dbb646a1af75ac62b74f3821ff197de
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
--- a/include/instrumentation/events/sched.h 2024-12-11 11:58:38.103697859 -0800
+++ b/include/instrumentation/events/sched.h 2024-12-11 11:59:06.731001046 -0800
@@ -647,7 +647,8 @@
#endif
#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,8,0) || \
- LTTNG_RHEL_KERNEL_RANGE(5,14,0,452,0,0, 5,15,0,0,0,0))
+ LTTNG_RHEL_KERNEL_RANGE(5,14,0,452,0,0, 5,15,0,0,0,0) || \
+ defined(CONFIG_SUSE_KERNEL))
/*
* Tracepoint for accounting runtime (time the task is executing
* on a CPU).