Skip to contentSkip to conversation

sched_ext: Add missing cfi stub for ops.tick

PATCH New Tejun Heo 1 participant 1 message Aug 28, 2024 Scheduler

lore
Share & tools
lore

Tejun Heo

author
#0 lore raw

PATCH 1/1 sched_ext: Add missing cfi stub for ops.tick

From bf934bed5e2fd81f767d75c05fb95f0333a1b183 Mon Sep 17 00:00:00 2001
From: Tejun Heo <[email protected]>
Date: Tue, 27 Aug 2024 14:17:20 -1000

The cfi stub for ops.tick was missing which will fail scheduler loading after pending BPF changes. Add it.

---
Applying to sched_ext/for-6.12.

Thanks.

 kernel/sched/ext.c | 2 ++
 1 file changed, 2 insertions(+)
kernel/sched/ext.c +2 -0
index b9bf9ee5ed01..57f30b1604db 100644
@@ -5051,6 +5051,7 @@ static s32 select_cpu_stub(struct task_struct *p, s32 prev_cpu, u64 wake_flags)
 static void enqueue_stub(struct task_struct *p, u64 enq_flags) {}
 static void dequeue_stub(struct task_struct *p, u64 enq_flags) {}
 static void dispatch_stub(s32 prev_cpu, struct task_struct *p) {}
+static void tick_stub(struct task_struct *p) {}
 static void runnable_stub(struct task_struct *p, u64 enq_flags) {}
 static void running_stub(struct task_struct *p) {}
 static void stopping_stub(struct task_struct *p, bool runnable) {}
@@ -5079,6 +5080,7 @@ static struct sched_ext_ops __bpf_ops_sched_ext_ops = {
 	.enqueue = enqueue_stub,
 	.dequeue = dequeue_stub,
 	.dispatch = dispatch_stub,
+	.tick = tick_stub,
 	.runnable = runnable_stub,
 	.running = running_stub,
 	.stopping = stopping_stub,
Signature · 1 line
2.46.0