]> git.lttng.org Git - lttng-modules.git/commitdiff
Fix: sched_stat_runtime changed in Linux 6.6.66
authorKienan Stewart <kstewart@efficios.com>
Wed, 18 Dec 2024 14:35:36 +0000 (14:35 +0000)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 21 Jan 2025 20:00:02 +0000 (15:00 -0500)
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()

        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: I74acf0b8340c371e8411116e07e5c97b10f9c756
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/instrumentation/events/sched.h

index 32d1813371f9093aa2b2b68a1c8cf36fd7abb5b8..99e59d490d044cbd41d3ff1c2b7565d78d29cf70 100644 (file)
@@ -647,7 +647,8 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(sched_stat_template, sched_stat_blocked,
 #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)) || \
+       LTTNG_KERNEL_RANGE(6,6,66, 6,7,0)
 /*
  * Tracepoint for accounting runtime (time the task is executing
  * on a CPU).
This page took 0.032362 seconds and 4 git commands to generate.