diff --git a/patches/0002-sched-ext.patch b/patches/0002-sched-ext.patch index 8f30132..a44827e 100644 --- a/patches/0002-sched-ext.patch +++ b/patches/0002-sched-ext.patch @@ -1,6 +1,6 @@ -From 02d7d0eafe23e91d14c2a57f1daa8e57d98e5d7d Mon Sep 17 00:00:00 2001 +From 11276ed2c72c57624c1214e980efd24648be015c Mon Sep 17 00:00:00 2001 From: Peter Jung -Date: Mon, 30 Sep 2024 16:59:41 +0200 +Date: Fri, 4 Oct 2024 17:12:13 +0200 Subject: [PATCH] sched-ext Signed-off-by: Peter Jung @@ -26,7 +26,7 @@ Signed-off-by: Peter Jung kernel/sched/debug.c | 3 + kernel/sched/ext.c | 7262 +++++++++++++++++ kernel/sched/ext.h | 91 + - kernel/sched/fair.c | 22 +- + kernel/sched/fair.c | 21 +- kernel/sched/idle.c | 2 + kernel/sched/sched.h | 203 +- kernel/sched/syscalls.c | 26 + @@ -102,7 +102,7 @@ Signed-off-by: Peter Jung .../selftests/sched_ext/test_example.c | 49 + tools/testing/selftests/sched_ext/util.c | 71 + tools/testing/selftests/sched_ext/util.h | 13 + - 97 files changed, 16175 insertions(+), 130 deletions(-) + 97 files changed, 16174 insertions(+), 130 deletions(-) create mode 100644 Documentation/scheduler/sched-ext.rst create mode 100644 include/linux/sched/ext.h create mode 100644 include/trace/events/sched_ext.h @@ -180,7 +180,7 @@ Signed-off-by: Peter Jung create mode 100644 tools/testing/selftests/sched_ext/util.h diff --git a/Documentation/scheduler/index.rst b/Documentation/scheduler/index.rst -index 43bd8a145b7a9..0611dc3dda8ea 100644 +index 43bd8a145b7a..0611dc3dda8e 100644 --- a/Documentation/scheduler/index.rst +++ b/Documentation/scheduler/index.rst @@ -20,6 +20,7 @@ Scheduler @@ -193,7 +193,7 @@ index 43bd8a145b7a9..0611dc3dda8ea 100644 text_files diff --git a/Documentation/scheduler/sched-ext.rst b/Documentation/scheduler/sched-ext.rst new file mode 100644 -index 0000000000000..6c0d70e2e27df +index 000000000000..6c0d70e2e27d --- /dev/null +++ b/Documentation/scheduler/sched-ext.rst @@ -0,0 +1,326 @@ @@ -524,10 +524,10 @@ index 0000000000000..6c0d70e2e27df +possible, they are subject to change without warning between kernel +versions. diff --git a/MAINTAINERS b/MAINTAINERS -index 16df466c205dc..3345a15afded8 100644 +index c2a7363e86fe..bcfe36daf67a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS -@@ -20353,6 +20353,19 @@ F: include/linux/wait.h +@@ -20364,6 +20364,19 @@ F: include/linux/wait.h F: include/uapi/linux/sched.h F: kernel/sched/ @@ -548,7 +548,7 @@ index 16df466c205dc..3345a15afded8 100644 M: Gustavo Silva S: Maintained diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c -index 14f8f00fdcf9a..930b04e3d148f 100644 +index 14f8f00fdcf9..930b04e3d148 100644 --- a/drivers/tty/sysrq.c +++ b/drivers/tty/sysrq.c @@ -531,6 +531,7 @@ static const struct sysrq_key_op *sysrq_key_table[62] = { @@ -560,7 +560,7 @@ index 14f8f00fdcf9a..930b04e3d148f 100644 NULL, /* T */ NULL, /* U */ diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h -index 1ae44793132a8..19ec49a9179b8 100644 +index 1ae44793132a..19ec49a9179b 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -133,6 +133,7 @@ @@ -572,7 +572,7 @@ index 1ae44793132a8..19ec49a9179b8 100644 __sched_class_lowest = .; diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h -index c60ba0ab14627..7139b33cb104f 100644 +index c60ba0ab1462..7139b33cb104 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h @@ -28,8 +28,6 @@ @@ -594,7 +594,7 @@ index c60ba0ab14627..7139b33cb104f 100644 CSS_TASK_ITER_PROCS = (1U << 0), /* walk only threadgroup leaders */ CSS_TASK_ITER_THREADED = (1U << 1), /* walk all threaded css_sets in the domain */ diff --git a/include/linux/sched.h b/include/linux/sched.h -index f8d150343d42d..5b4f78fe379d1 100644 +index f8d150343d42..5b4f78fe379d 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -82,6 +82,8 @@ struct task_group; @@ -618,7 +618,7 @@ index f8d150343d42d..5b4f78fe379d1 100644 #ifdef CONFIG_SCHED_CORE diff --git a/include/linux/sched/ext.h b/include/linux/sched/ext.h new file mode 100644 -index 0000000000000..76166d3b14fcf +index 000000000000..76166d3b14fc --- /dev/null +++ b/include/linux/sched/ext.h @@ -0,0 +1,216 @@ @@ -839,7 +839,7 @@ index 0000000000000..76166d3b14fcf +#endif /* CONFIG_SCHED_CLASS_EXT */ +#endif /* _LINUX_SCHED_EXT_H */ diff --git a/include/linux/sched/task.h b/include/linux/sched/task.h -index d362aacf9f897..0f2aeb37bbb04 100644 +index d362aacf9f89..0f2aeb37bbb0 100644 --- a/include/linux/sched/task.h +++ b/include/linux/sched/task.h @@ -63,7 +63,8 @@ extern asmlinkage void schedule_tail(struct task_struct *prev); @@ -866,7 +866,7 @@ index d362aacf9f897..0f2aeb37bbb04 100644 diff --git a/include/trace/events/sched_ext.h b/include/trace/events/sched_ext.h new file mode 100644 -index 0000000000000..fe19da7315a90 +index 000000000000..fe19da7315a9 --- /dev/null +++ b/include/trace/events/sched_ext.h @@ -0,0 +1,32 @@ @@ -903,7 +903,7 @@ index 0000000000000..fe19da7315a90 +/* This part must be outside protection */ +#include diff --git a/include/uapi/linux/sched.h b/include/uapi/linux/sched.h -index 3bac0a8ceab26..359a14cc76a40 100644 +index 3bac0a8ceab2..359a14cc76a4 100644 --- a/include/uapi/linux/sched.h +++ b/include/uapi/linux/sched.h @@ -118,6 +118,7 @@ struct clone_args { @@ -915,7 +915,7 @@ index 3bac0a8ceab26..359a14cc76a40 100644 /* Can be ORed in to make sure the process is reverted back to SCHED_NORMAL on fork */ #define SCHED_RESET_ON_FORK 0x40000000 diff --git a/init/Kconfig b/init/Kconfig -index 08a0d51afaae4..e1a88d48d652c 100644 +index 08a0d51afaae..e1a88d48d652 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1028,9 +1028,13 @@ menuconfig CGROUP_SCHED @@ -946,7 +946,7 @@ index 08a0d51afaae4..e1a88d48d652c 100644 config SCHED_MM_CID diff --git a/init/init_task.c b/init/init_task.c -index eeb110c65fe22..e222722e790b1 100644 +index eeb110c65fe2..e222722e790b 100644 --- a/init/init_task.c +++ b/init/init_task.c @@ -6,6 +6,7 @@ @@ -976,7 +976,7 @@ index eeb110c65fe22..e222722e790b1 100644 .ptraced = LIST_HEAD_INIT(init_task.ptraced), .ptrace_entry = LIST_HEAD_INIT(init_task.ptrace_entry), diff --git a/kernel/Kconfig.preempt b/kernel/Kconfig.preempt -index c2f1fd95a8214..fe782cd773885 100644 +index c2f1fd95a821..fe782cd77388 100644 --- a/kernel/Kconfig.preempt +++ b/kernel/Kconfig.preempt @@ -133,4 +133,29 @@ config SCHED_CORE @@ -1011,7 +1011,7 @@ index c2f1fd95a8214..fe782cd773885 100644 + Documentation/scheduler/sched-ext.rst + https://github.com/sched-ext/scx diff --git a/kernel/fork.c b/kernel/fork.c -index 238695afc6304..69a0a7210060e 100644 +index 238695afc630..69a0a7210060 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -23,6 +23,7 @@ @@ -1089,7 +1089,7 @@ index 238695afc6304..69a0a7210060e 100644 lockdep_free_task(p); #ifdef CONFIG_NUMA diff --git a/kernel/sched/build_policy.c b/kernel/sched/build_policy.c -index 39c315182b359..fae1f5c921eb3 100644 +index 39c315182b35..fae1f5c921eb 100644 --- a/kernel/sched/build_policy.c +++ b/kernel/sched/build_policy.c @@ -16,18 +16,25 @@ @@ -1128,7 +1128,7 @@ index 39c315182b359..fae1f5c921eb3 100644 + #include "syscalls.c" diff --git a/kernel/sched/core.c b/kernel/sched/core.c -index f3951e4a55e5b..c792a6feb7a93 100644 +index f3951e4a55e5..c792a6feb7a9 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -169,7 +169,10 @@ static inline int __task_prio(const struct task_struct *p) @@ -1787,7 +1787,7 @@ index f3951e4a55e5b..c792a6feb7a93 100644 +} +#endif /* CONFIG_SCHED_CLASS_EXT */ diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c -index eece6244f9d2f..e683e5d08daae 100644 +index eece6244f9d2..e683e5d08daa 100644 --- a/kernel/sched/cpufreq_schedutil.c +++ b/kernel/sched/cpufreq_schedutil.c @@ -197,8 +197,10 @@ unsigned long sugov_effective_cpu_perf(int cpu, unsigned long actual, @@ -1876,7 +1876,7 @@ index eece6244f9d2f..e683e5d08daae 100644 cpufreq_driver_adjust_perf(sg_cpu->cpu, sg_cpu->bw_min, diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c -index c1eb9a1afd13e..c057ef46c5f80 100644 +index c1eb9a1afd13..c057ef46c5f8 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -1090,6 +1090,9 @@ void proc_sched_show_task(struct task_struct *p, struct pid_namespace *ns, @@ -1891,7 +1891,7 @@ index c1eb9a1afd13e..c057ef46c5f80 100644 diff --git a/kernel/sched/ext.c b/kernel/sched/ext.c new file mode 100644 -index 0000000000000..25fadfaace33c +index 000000000000..25fadfaace33 --- /dev/null +++ b/kernel/sched/ext.c @@ -0,0 +1,7262 @@ @@ -9159,7 +9159,7 @@ index 0000000000000..25fadfaace33c +__initcall(scx_init); diff --git a/kernel/sched/ext.h b/kernel/sched/ext.h new file mode 100644 -index 0000000000000..246019519231c +index 000000000000..246019519231 --- /dev/null +++ b/kernel/sched/ext.h @@ -0,0 +1,91 @@ @@ -9255,10 +9255,10 @@ index 0000000000000..246019519231c +#endif /* CONFIG_EXT_GROUP_SCHED */ +#endif /* CONFIG_CGROUP_SCHED */ diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c -index 5dc714fd8a226..2928026d76a39 100644 +index 91b242e47db7..a36e37a674e8 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c -@@ -3848,7 +3848,8 @@ static void reweight_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, +@@ -3857,7 +3857,8 @@ static void reweight_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, } } @@ -9268,16 +9268,7 @@ index 5dc714fd8a226..2928026d76a39 100644 { struct sched_entity *se = &p->se; struct cfs_rq *cfs_rq = cfs_rq_of(se); -@@ -8403,7 +8404,7 @@ static void check_preempt_wakeup_fair(struct rq *rq, struct task_struct *p, int - * Batch and idle tasks do not preempt non-idle tasks (their preemption - * is driven by the tick): - */ -- if (unlikely(p->policy != SCHED_NORMAL) || !sched_feat(WAKEUP_PREEMPTION)) -+ if (unlikely(!normal_policy(p->policy)) || !sched_feat(WAKEUP_PREEMPTION)) - return; - - find_matching_se(&se, &pse); -@@ -9360,28 +9361,18 @@ static inline void update_blocked_load_status(struct rq *rq, bool has_blocked) { +@@ -9365,29 +9366,18 @@ static inline void update_blocked_load_status(struct rq *rq, bool has_blocked) { static bool __update_blocked_others(struct rq *rq, bool *done) { @@ -9295,9 +9286,10 @@ index 5dc714fd8a226..2928026d76a39 100644 - - hw_pressure = arch_scale_hw_pressure(cpu_of(rq)); - +- /* hw_pressure doesn't care about invariance */ - decayed = update_rt_rq_load_avg(now, rq, curr_class == &rt_sched_class) | - update_dl_rq_load_avg(now, rq, curr_class == &dl_sched_class) | -- update_hw_load_avg(now, rq, hw_pressure) | +- update_hw_load_avg(rq_clock_task(rq), rq, hw_pressure) | - update_irq_load_avg(rq, 0); + updated = update_other_load_avgs(rq); @@ -9309,7 +9301,7 @@ index 5dc714fd8a226..2928026d76a39 100644 } #ifdef CONFIG_FAIR_GROUP_SCHED -@@ -13227,6 +13218,7 @@ DEFINE_SCHED_CLASS(fair) = { +@@ -13233,6 +13223,7 @@ DEFINE_SCHED_CLASS(fair) = { .task_tick = task_tick_fair, .task_fork = task_fork_fair, @@ -9318,7 +9310,7 @@ index 5dc714fd8a226..2928026d76a39 100644 .switched_from = switched_from_fair, .switched_to = switched_to_fair, diff --git a/kernel/sched/idle.c b/kernel/sched/idle.c -index 6e78d071beb58..c7a218123b7ac 100644 +index 6e78d071beb5..c7a218123b7a 100644 --- a/kernel/sched/idle.c +++ b/kernel/sched/idle.c @@ -452,11 +452,13 @@ static void wakeup_preempt_idle(struct rq *rq, struct task_struct *p, int flags) @@ -9336,7 +9328,7 @@ index 6e78d071beb58..c7a218123b7ac 100644 } diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h -index 432b43aa091cd..48d893de632bb 100644 +index 432b43aa091c..48d893de632b 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -192,9 +192,18 @@ static inline int idle_policy(int policy) @@ -9711,7 +9703,7 @@ index 432b43aa091cd..48d893de632bb 100644 + #endif /* _KERNEL_SCHED_SCHED_H */ diff --git a/kernel/sched/syscalls.c b/kernel/sched/syscalls.c -index ae1b42775ef95..4fa59c9f69ac7 100644 +index ae1b42775ef9..4fa59c9f69ac 100644 --- a/kernel/sched/syscalls.c +++ b/kernel/sched/syscalls.c @@ -259,6 +259,25 @@ int sched_core_idle_cpu(int cpu) @@ -9776,7 +9768,7 @@ index ae1b42775ef95..4fa59c9f69ac7 100644 } return ret; diff --git a/lib/dump_stack.c b/lib/dump_stack.c -index 1a996fbbf50a0..388da1aea14a5 100644 +index 1a996fbbf50a..388da1aea14a 100644 --- a/lib/dump_stack.c +++ b/lib/dump_stack.c @@ -73,6 +73,7 @@ void dump_stack_print_info(const char *log_lvl) @@ -9788,7 +9780,7 @@ index 1a996fbbf50a0..388da1aea14a5 100644 /** diff --git a/tools/Makefile b/tools/Makefile -index 276f5d0d53a44..278d24723b74c 100644 +index 276f5d0d53a4..278d24723b74 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -28,6 +28,7 @@ help: @@ -9830,7 +9822,7 @@ index 276f5d0d53a44..278d24723b74c 100644 .PHONY: FORCE diff --git a/tools/sched_ext/.gitignore b/tools/sched_ext/.gitignore new file mode 100644 -index 0000000000000..d6264fe1c8cdb +index 000000000000..d6264fe1c8cd --- /dev/null +++ b/tools/sched_ext/.gitignore @@ -0,0 +1,2 @@ @@ -9838,7 +9830,7 @@ index 0000000000000..d6264fe1c8cdb +build/ diff --git a/tools/sched_ext/Makefile b/tools/sched_ext/Makefile new file mode 100644 -index 0000000000000..ca3815e572d8d +index 000000000000..ca3815e572d8 --- /dev/null +++ b/tools/sched_ext/Makefile @@ -0,0 +1,246 @@ @@ -10090,7 +10082,7 @@ index 0000000000000..ca3815e572d8d +.SECONDARY: diff --git a/tools/sched_ext/README.md b/tools/sched_ext/README.md new file mode 100644 -index 0000000000000..16a42e4060f64 +index 000000000000..16a42e4060f6 --- /dev/null +++ b/tools/sched_ext/README.md @@ -0,0 +1,270 @@ @@ -10366,7 +10358,7 @@ index 0000000000000..16a42e4060f64 +Seeing `llvm: [ OFF ]` here is not an issue. You can safely ignore. diff --git a/tools/sched_ext/include/bpf-compat/gnu/stubs.h b/tools/sched_ext/include/bpf-compat/gnu/stubs.h new file mode 100644 -index 0000000000000..ad7d139ce907b +index 000000000000..ad7d139ce907 --- /dev/null +++ b/tools/sched_ext/include/bpf-compat/gnu/stubs.h @@ -0,0 +1,11 @@ @@ -10383,7 +10375,7 @@ index 0000000000000..ad7d139ce907b + */ diff --git a/tools/sched_ext/include/scx/common.bpf.h b/tools/sched_ext/include/scx/common.bpf.h new file mode 100644 -index 0000000000000..225f61f9bfca8 +index 000000000000..225f61f9bfca --- /dev/null +++ b/tools/sched_ext/include/scx/common.bpf.h @@ -0,0 +1,427 @@ @@ -10816,7 +10808,7 @@ index 0000000000000..225f61f9bfca8 +#endif /* __SCX_COMMON_BPF_H */ diff --git a/tools/sched_ext/include/scx/common.h b/tools/sched_ext/include/scx/common.h new file mode 100644 -index 0000000000000..5b0f901521523 +index 000000000000..5b0f90152152 --- /dev/null +++ b/tools/sched_ext/include/scx/common.h @@ -0,0 +1,75 @@ @@ -10897,7 +10889,7 @@ index 0000000000000..5b0f901521523 +#endif /* __SCHED_EXT_COMMON_H */ diff --git a/tools/sched_ext/include/scx/compat.bpf.h b/tools/sched_ext/include/scx/compat.bpf.h new file mode 100644 -index 0000000000000..e5afe9efd3f31 +index 000000000000..e5afe9efd3f3 --- /dev/null +++ b/tools/sched_ext/include/scx/compat.bpf.h @@ -0,0 +1,47 @@ @@ -10950,7 +10942,7 @@ index 0000000000000..e5afe9efd3f31 +#endif /* __SCX_COMPAT_BPF_H */ diff --git a/tools/sched_ext/include/scx/compat.h b/tools/sched_ext/include/scx/compat.h new file mode 100644 -index 0000000000000..cc56ff9aa2529 +index 000000000000..cc56ff9aa252 --- /dev/null +++ b/tools/sched_ext/include/scx/compat.h @@ -0,0 +1,186 @@ @@ -11142,7 +11134,7 @@ index 0000000000000..cc56ff9aa2529 +#endif /* __SCX_COMPAT_H */ diff --git a/tools/sched_ext/include/scx/user_exit_info.h b/tools/sched_ext/include/scx/user_exit_info.h new file mode 100644 -index 0000000000000..8ce2734402e1d +index 000000000000..8ce2734402e1 --- /dev/null +++ b/tools/sched_ext/include/scx/user_exit_info.h @@ -0,0 +1,115 @@ @@ -11263,7 +11255,7 @@ index 0000000000000..8ce2734402e1d +#endif /* __USER_EXIT_INFO_H */ diff --git a/tools/sched_ext/scx_central.bpf.c b/tools/sched_ext/scx_central.bpf.c new file mode 100644 -index 0000000000000..8dd8eb73b6b8b +index 000000000000..8dd8eb73b6b8 --- /dev/null +++ b/tools/sched_ext/scx_central.bpf.c @@ -0,0 +1,361 @@ @@ -11630,7 +11622,7 @@ index 0000000000000..8dd8eb73b6b8b + .name = "central"); diff --git a/tools/sched_ext/scx_central.c b/tools/sched_ext/scx_central.c new file mode 100644 -index 0000000000000..21deea320bd78 +index 000000000000..21deea320bd7 --- /dev/null +++ b/tools/sched_ext/scx_central.c @@ -0,0 +1,135 @@ @@ -11771,7 +11763,7 @@ index 0000000000000..21deea320bd78 +} diff --git a/tools/sched_ext/scx_flatcg.bpf.c b/tools/sched_ext/scx_flatcg.bpf.c new file mode 100644 -index 0000000000000..b722baf6da4b9 +index 000000000000..b722baf6da4b --- /dev/null +++ b/tools/sched_ext/scx_flatcg.bpf.c @@ -0,0 +1,957 @@ @@ -12734,7 +12726,7 @@ index 0000000000000..b722baf6da4b9 + .name = "flatcg"); diff --git a/tools/sched_ext/scx_flatcg.c b/tools/sched_ext/scx_flatcg.c new file mode 100644 -index 0000000000000..5d24ca9c29d9e +index 000000000000..5d24ca9c29d9 --- /dev/null +++ b/tools/sched_ext/scx_flatcg.c @@ -0,0 +1,233 @@ @@ -12973,7 +12965,7 @@ index 0000000000000..5d24ca9c29d9e +} diff --git a/tools/sched_ext/scx_flatcg.h b/tools/sched_ext/scx_flatcg.h new file mode 100644 -index 0000000000000..6f2ea50acb1cb +index 000000000000..6f2ea50acb1c --- /dev/null +++ b/tools/sched_ext/scx_flatcg.h @@ -0,0 +1,51 @@ @@ -13030,7 +13022,7 @@ index 0000000000000..6f2ea50acb1cb +#endif /* __SCX_EXAMPLE_FLATCG_H */ diff --git a/tools/sched_ext/scx_qmap.bpf.c b/tools/sched_ext/scx_qmap.bpf.c new file mode 100644 -index 0000000000000..5b39bee9eb232 +index 000000000000..5b39bee9eb23 --- /dev/null +++ b/tools/sched_ext/scx_qmap.bpf.c @@ -0,0 +1,813 @@ @@ -13849,7 +13841,7 @@ index 0000000000000..5b39bee9eb232 + .name = "qmap"); diff --git a/tools/sched_ext/scx_qmap.c b/tools/sched_ext/scx_qmap.c new file mode 100644 -index 0000000000000..ac45a02b40559 +index 000000000000..ac45a02b4055 --- /dev/null +++ b/tools/sched_ext/scx_qmap.c @@ -0,0 +1,153 @@ @@ -14008,7 +14000,7 @@ index 0000000000000..ac45a02b40559 +} diff --git a/tools/sched_ext/scx_show_state.py b/tools/sched_ext/scx_show_state.py new file mode 100644 -index 0000000000000..8bc626ede1c48 +index 000000000000..8bc626ede1c4 --- /dev/null +++ b/tools/sched_ext/scx_show_state.py @@ -0,0 +1,40 @@ @@ -14054,7 +14046,7 @@ index 0000000000000..8bc626ede1c48 +print(f'enable_seq : {read_atomic("scx_enable_seq")}') diff --git a/tools/sched_ext/scx_simple.bpf.c b/tools/sched_ext/scx_simple.bpf.c new file mode 100644 -index 0000000000000..ed7e8d535fc5f +index 000000000000..ed7e8d535fc5 --- /dev/null +++ b/tools/sched_ext/scx_simple.bpf.c @@ -0,0 +1,156 @@ @@ -14216,7 +14208,7 @@ index 0000000000000..ed7e8d535fc5f + .name = "simple"); diff --git a/tools/sched_ext/scx_simple.c b/tools/sched_ext/scx_simple.c new file mode 100644 -index 0000000000000..76d83199545cb +index 000000000000..76d83199545c --- /dev/null +++ b/tools/sched_ext/scx_simple.c @@ -0,0 +1,107 @@ @@ -14329,7 +14321,7 @@ index 0000000000000..76d83199545cb +} diff --git a/tools/testing/selftests/sched_ext/.gitignore b/tools/testing/selftests/sched_ext/.gitignore new file mode 100644 -index 0000000000000..ae5491a114c09 +index 000000000000..ae5491a114c0 --- /dev/null +++ b/tools/testing/selftests/sched_ext/.gitignore @@ -0,0 +1,6 @@ @@ -14341,7 +14333,7 @@ index 0000000000000..ae5491a114c09 +!config diff --git a/tools/testing/selftests/sched_ext/Makefile b/tools/testing/selftests/sched_ext/Makefile new file mode 100644 -index 0000000000000..0754a2c110a1a +index 000000000000..0754a2c110a1 --- /dev/null +++ b/tools/testing/selftests/sched_ext/Makefile @@ -0,0 +1,218 @@ @@ -14565,7 +14557,7 @@ index 0000000000000..0754a2c110a1a +.SECONDARY: diff --git a/tools/testing/selftests/sched_ext/config b/tools/testing/selftests/sched_ext/config new file mode 100644 -index 0000000000000..0de9b4ee249d3 +index 000000000000..0de9b4ee249d --- /dev/null +++ b/tools/testing/selftests/sched_ext/config @@ -0,0 +1,9 @@ @@ -14580,7 +14572,7 @@ index 0000000000000..0de9b4ee249d3 +CONFIG_DEBUG_INFO_BTF=y diff --git a/tools/testing/selftests/sched_ext/create_dsq.bpf.c b/tools/testing/selftests/sched_ext/create_dsq.bpf.c new file mode 100644 -index 0000000000000..23f79ed343f02 +index 000000000000..23f79ed343f0 --- /dev/null +++ b/tools/testing/selftests/sched_ext/create_dsq.bpf.c @@ -0,0 +1,58 @@ @@ -14644,7 +14636,7 @@ index 0000000000000..23f79ed343f02 +}; diff --git a/tools/testing/selftests/sched_ext/create_dsq.c b/tools/testing/selftests/sched_ext/create_dsq.c new file mode 100644 -index 0000000000000..fa946d9146d4d +index 000000000000..fa946d9146d4 --- /dev/null +++ b/tools/testing/selftests/sched_ext/create_dsq.c @@ -0,0 +1,57 @@ @@ -14707,7 +14699,7 @@ index 0000000000000..fa946d9146d4d +REGISTER_SCX_TEST(&create_dsq) diff --git a/tools/testing/selftests/sched_ext/ddsp_bogus_dsq_fail.bpf.c b/tools/testing/selftests/sched_ext/ddsp_bogus_dsq_fail.bpf.c new file mode 100644 -index 0000000000000..e97ad41d354ad +index 000000000000..e97ad41d354a --- /dev/null +++ b/tools/testing/selftests/sched_ext/ddsp_bogus_dsq_fail.bpf.c @@ -0,0 +1,42 @@ @@ -14755,7 +14747,7 @@ index 0000000000000..e97ad41d354ad +}; diff --git a/tools/testing/selftests/sched_ext/ddsp_bogus_dsq_fail.c b/tools/testing/selftests/sched_ext/ddsp_bogus_dsq_fail.c new file mode 100644 -index 0000000000000..e65d22f23f3bc +index 000000000000..e65d22f23f3b --- /dev/null +++ b/tools/testing/selftests/sched_ext/ddsp_bogus_dsq_fail.c @@ -0,0 +1,57 @@ @@ -14818,7 +14810,7 @@ index 0000000000000..e65d22f23f3bc +REGISTER_SCX_TEST(&ddsp_bogus_dsq_fail) diff --git a/tools/testing/selftests/sched_ext/ddsp_vtimelocal_fail.bpf.c b/tools/testing/selftests/sched_ext/ddsp_vtimelocal_fail.bpf.c new file mode 100644 -index 0000000000000..dde7e7dafbfbc +index 000000000000..dde7e7dafbfb --- /dev/null +++ b/tools/testing/selftests/sched_ext/ddsp_vtimelocal_fail.bpf.c @@ -0,0 +1,39 @@ @@ -14863,7 +14855,7 @@ index 0000000000000..dde7e7dafbfbc +}; diff --git a/tools/testing/selftests/sched_ext/ddsp_vtimelocal_fail.c b/tools/testing/selftests/sched_ext/ddsp_vtimelocal_fail.c new file mode 100644 -index 0000000000000..abafee587cd60 +index 000000000000..abafee587cd6 --- /dev/null +++ b/tools/testing/selftests/sched_ext/ddsp_vtimelocal_fail.c @@ -0,0 +1,56 @@ @@ -14925,7 +14917,7 @@ index 0000000000000..abafee587cd60 +REGISTER_SCX_TEST(&ddsp_vtimelocal_fail) diff --git a/tools/testing/selftests/sched_ext/dsp_local_on.bpf.c b/tools/testing/selftests/sched_ext/dsp_local_on.bpf.c new file mode 100644 -index 0000000000000..efb4672decb41 +index 000000000000..efb4672decb4 --- /dev/null +++ b/tools/testing/selftests/sched_ext/dsp_local_on.bpf.c @@ -0,0 +1,65 @@ @@ -14996,7 +14988,7 @@ index 0000000000000..efb4672decb41 +}; diff --git a/tools/testing/selftests/sched_ext/dsp_local_on.c b/tools/testing/selftests/sched_ext/dsp_local_on.c new file mode 100644 -index 0000000000000..472851b568548 +index 000000000000..472851b56854 --- /dev/null +++ b/tools/testing/selftests/sched_ext/dsp_local_on.c @@ -0,0 +1,58 @@ @@ -15060,7 +15052,7 @@ index 0000000000000..472851b568548 +REGISTER_SCX_TEST(&dsp_local_on) diff --git a/tools/testing/selftests/sched_ext/enq_last_no_enq_fails.bpf.c b/tools/testing/selftests/sched_ext/enq_last_no_enq_fails.bpf.c new file mode 100644 -index 0000000000000..b0b99531d5d5d +index 000000000000..b0b99531d5d5 --- /dev/null +++ b/tools/testing/selftests/sched_ext/enq_last_no_enq_fails.bpf.c @@ -0,0 +1,21 @@ @@ -15087,7 +15079,7 @@ index 0000000000000..b0b99531d5d5d +}; diff --git a/tools/testing/selftests/sched_ext/enq_last_no_enq_fails.c b/tools/testing/selftests/sched_ext/enq_last_no_enq_fails.c new file mode 100644 -index 0000000000000..2a3eda5e2c0b4 +index 000000000000..2a3eda5e2c0b --- /dev/null +++ b/tools/testing/selftests/sched_ext/enq_last_no_enq_fails.c @@ -0,0 +1,60 @@ @@ -15153,7 +15145,7 @@ index 0000000000000..2a3eda5e2c0b4 +REGISTER_SCX_TEST(&enq_last_no_enq_fails) diff --git a/tools/testing/selftests/sched_ext/enq_select_cpu_fails.bpf.c b/tools/testing/selftests/sched_ext/enq_select_cpu_fails.bpf.c new file mode 100644 -index 0000000000000..b3dfc1033cd6a +index 000000000000..b3dfc1033cd6 --- /dev/null +++ b/tools/testing/selftests/sched_ext/enq_select_cpu_fails.bpf.c @@ -0,0 +1,43 @@ @@ -15202,7 +15194,7 @@ index 0000000000000..b3dfc1033cd6a +}; diff --git a/tools/testing/selftests/sched_ext/enq_select_cpu_fails.c b/tools/testing/selftests/sched_ext/enq_select_cpu_fails.c new file mode 100644 -index 0000000000000..dd1350e5f002d +index 000000000000..dd1350e5f002 --- /dev/null +++ b/tools/testing/selftests/sched_ext/enq_select_cpu_fails.c @@ -0,0 +1,61 @@ @@ -15269,7 +15261,7 @@ index 0000000000000..dd1350e5f002d +REGISTER_SCX_TEST(&enq_select_cpu_fails) diff --git a/tools/testing/selftests/sched_ext/exit.bpf.c b/tools/testing/selftests/sched_ext/exit.bpf.c new file mode 100644 -index 0000000000000..ae12ddaac921b +index 000000000000..ae12ddaac921 --- /dev/null +++ b/tools/testing/selftests/sched_ext/exit.bpf.c @@ -0,0 +1,84 @@ @@ -15359,7 +15351,7 @@ index 0000000000000..ae12ddaac921b +}; diff --git a/tools/testing/selftests/sched_ext/exit.c b/tools/testing/selftests/sched_ext/exit.c new file mode 100644 -index 0000000000000..31bcd06e21cd3 +index 000000000000..31bcd06e21cd --- /dev/null +++ b/tools/testing/selftests/sched_ext/exit.c @@ -0,0 +1,55 @@ @@ -15420,7 +15412,7 @@ index 0000000000000..31bcd06e21cd3 +REGISTER_SCX_TEST(&exit_test) diff --git a/tools/testing/selftests/sched_ext/exit_test.h b/tools/testing/selftests/sched_ext/exit_test.h new file mode 100644 -index 0000000000000..94f0268b9cb8e +index 000000000000..94f0268b9cb8 --- /dev/null +++ b/tools/testing/selftests/sched_ext/exit_test.h @@ -0,0 +1,20 @@ @@ -15446,7 +15438,7 @@ index 0000000000000..94f0268b9cb8e +#endif // # __EXIT_TEST_H__ diff --git a/tools/testing/selftests/sched_ext/hotplug.bpf.c b/tools/testing/selftests/sched_ext/hotplug.bpf.c new file mode 100644 -index 0000000000000..8f2601db39f37 +index 000000000000..8f2601db39f3 --- /dev/null +++ b/tools/testing/selftests/sched_ext/hotplug.bpf.c @@ -0,0 +1,61 @@ @@ -15513,7 +15505,7 @@ index 0000000000000..8f2601db39f37 +}; diff --git a/tools/testing/selftests/sched_ext/hotplug.c b/tools/testing/selftests/sched_ext/hotplug.c new file mode 100644 -index 0000000000000..87bf220b1bcee +index 000000000000..87bf220b1bce --- /dev/null +++ b/tools/testing/selftests/sched_ext/hotplug.c @@ -0,0 +1,168 @@ @@ -15687,7 +15679,7 @@ index 0000000000000..87bf220b1bcee +REGISTER_SCX_TEST(&hotplug_test) diff --git a/tools/testing/selftests/sched_ext/hotplug_test.h b/tools/testing/selftests/sched_ext/hotplug_test.h new file mode 100644 -index 0000000000000..73d236f90787d +index 000000000000..73d236f90787 --- /dev/null +++ b/tools/testing/selftests/sched_ext/hotplug_test.h @@ -0,0 +1,15 @@ @@ -15708,7 +15700,7 @@ index 0000000000000..73d236f90787d +#endif // # __HOTPLUG_TEST_H__ diff --git a/tools/testing/selftests/sched_ext/init_enable_count.bpf.c b/tools/testing/selftests/sched_ext/init_enable_count.bpf.c new file mode 100644 -index 0000000000000..47ea89a626c37 +index 000000000000..47ea89a626c3 --- /dev/null +++ b/tools/testing/selftests/sched_ext/init_enable_count.bpf.c @@ -0,0 +1,53 @@ @@ -15767,7 +15759,7 @@ index 0000000000000..47ea89a626c37 +}; diff --git a/tools/testing/selftests/sched_ext/init_enable_count.c b/tools/testing/selftests/sched_ext/init_enable_count.c new file mode 100644 -index 0000000000000..97d45f1e5597e +index 000000000000..97d45f1e5597 --- /dev/null +++ b/tools/testing/selftests/sched_ext/init_enable_count.c @@ -0,0 +1,166 @@ @@ -15939,7 +15931,7 @@ index 0000000000000..97d45f1e5597e +REGISTER_SCX_TEST(&init_enable_count) diff --git a/tools/testing/selftests/sched_ext/maximal.bpf.c b/tools/testing/selftests/sched_ext/maximal.bpf.c new file mode 100644 -index 0000000000000..00bfa9cb95d38 +index 000000000000..00bfa9cb95d3 --- /dev/null +++ b/tools/testing/selftests/sched_ext/maximal.bpf.c @@ -0,0 +1,164 @@ @@ -16109,7 +16101,7 @@ index 0000000000000..00bfa9cb95d38 +}; diff --git a/tools/testing/selftests/sched_ext/maximal.c b/tools/testing/selftests/sched_ext/maximal.c new file mode 100644 -index 0000000000000..f38fc973c3800 +index 000000000000..f38fc973c380 --- /dev/null +++ b/tools/testing/selftests/sched_ext/maximal.c @@ -0,0 +1,51 @@ @@ -16166,7 +16158,7 @@ index 0000000000000..f38fc973c3800 +REGISTER_SCX_TEST(&maximal) diff --git a/tools/testing/selftests/sched_ext/maybe_null.bpf.c b/tools/testing/selftests/sched_ext/maybe_null.bpf.c new file mode 100644 -index 0000000000000..27d0f386acfb1 +index 000000000000..27d0f386acfb --- /dev/null +++ b/tools/testing/selftests/sched_ext/maybe_null.bpf.c @@ -0,0 +1,36 @@ @@ -16208,7 +16200,7 @@ index 0000000000000..27d0f386acfb1 +}; diff --git a/tools/testing/selftests/sched_ext/maybe_null.c b/tools/testing/selftests/sched_ext/maybe_null.c new file mode 100644 -index 0000000000000..31cfafb0cf65a +index 000000000000..31cfafb0cf65 --- /dev/null +++ b/tools/testing/selftests/sched_ext/maybe_null.c @@ -0,0 +1,49 @@ @@ -16263,7 +16255,7 @@ index 0000000000000..31cfafb0cf65a +REGISTER_SCX_TEST(&maybe_null) diff --git a/tools/testing/selftests/sched_ext/maybe_null_fail_dsp.bpf.c b/tools/testing/selftests/sched_ext/maybe_null_fail_dsp.bpf.c new file mode 100644 -index 0000000000000..c0641050271d3 +index 000000000000..c0641050271d --- /dev/null +++ b/tools/testing/selftests/sched_ext/maybe_null_fail_dsp.bpf.c @@ -0,0 +1,25 @@ @@ -16294,7 +16286,7 @@ index 0000000000000..c0641050271d3 +}; diff --git a/tools/testing/selftests/sched_ext/maybe_null_fail_yld.bpf.c b/tools/testing/selftests/sched_ext/maybe_null_fail_yld.bpf.c new file mode 100644 -index 0000000000000..3c1740028e3b9 +index 000000000000..3c1740028e3b --- /dev/null +++ b/tools/testing/selftests/sched_ext/maybe_null_fail_yld.bpf.c @@ -0,0 +1,28 @@ @@ -16328,7 +16320,7 @@ index 0000000000000..3c1740028e3b9 +}; diff --git a/tools/testing/selftests/sched_ext/minimal.bpf.c b/tools/testing/selftests/sched_ext/minimal.bpf.c new file mode 100644 -index 0000000000000..6a7eccef01045 +index 000000000000..6a7eccef0104 --- /dev/null +++ b/tools/testing/selftests/sched_ext/minimal.bpf.c @@ -0,0 +1,21 @@ @@ -16355,7 +16347,7 @@ index 0000000000000..6a7eccef01045 +}; diff --git a/tools/testing/selftests/sched_ext/minimal.c b/tools/testing/selftests/sched_ext/minimal.c new file mode 100644 -index 0000000000000..6c5db8ebbf8ac +index 000000000000..6c5db8ebbf8a --- /dev/null +++ b/tools/testing/selftests/sched_ext/minimal.c @@ -0,0 +1,58 @@ @@ -16419,7 +16411,7 @@ index 0000000000000..6c5db8ebbf8ac +REGISTER_SCX_TEST(&minimal) diff --git a/tools/testing/selftests/sched_ext/prog_run.bpf.c b/tools/testing/selftests/sched_ext/prog_run.bpf.c new file mode 100644 -index 0000000000000..6a4d7c48e3f22 +index 000000000000..6a4d7c48e3f2 --- /dev/null +++ b/tools/testing/selftests/sched_ext/prog_run.bpf.c @@ -0,0 +1,33 @@ @@ -16458,7 +16450,7 @@ index 0000000000000..6a4d7c48e3f22 +}; diff --git a/tools/testing/selftests/sched_ext/prog_run.c b/tools/testing/selftests/sched_ext/prog_run.c new file mode 100644 -index 0000000000000..3cd57ef8daaa5 +index 000000000000..3cd57ef8daaa --- /dev/null +++ b/tools/testing/selftests/sched_ext/prog_run.c @@ -0,0 +1,78 @@ @@ -16542,7 +16534,7 @@ index 0000000000000..3cd57ef8daaa5 +REGISTER_SCX_TEST(&prog_run) diff --git a/tools/testing/selftests/sched_ext/reload_loop.c b/tools/testing/selftests/sched_ext/reload_loop.c new file mode 100644 -index 0000000000000..5cfba2d6e0568 +index 000000000000..5cfba2d6e056 --- /dev/null +++ b/tools/testing/selftests/sched_ext/reload_loop.c @@ -0,0 +1,75 @@ @@ -16623,7 +16615,7 @@ index 0000000000000..5cfba2d6e0568 +REGISTER_SCX_TEST(&reload_loop) diff --git a/tools/testing/selftests/sched_ext/runner.c b/tools/testing/selftests/sched_ext/runner.c new file mode 100644 -index 0000000000000..eab48c7ff3094 +index 000000000000..eab48c7ff309 --- /dev/null +++ b/tools/testing/selftests/sched_ext/runner.c @@ -0,0 +1,201 @@ @@ -16830,7 +16822,7 @@ index 0000000000000..eab48c7ff3094 +} diff --git a/tools/testing/selftests/sched_ext/scx_test.h b/tools/testing/selftests/sched_ext/scx_test.h new file mode 100644 -index 0000000000000..90b8d6915bb7e +index 000000000000..90b8d6915bb7 --- /dev/null +++ b/tools/testing/selftests/sched_ext/scx_test.h @@ -0,0 +1,131 @@ @@ -16967,7 +16959,7 @@ index 0000000000000..90b8d6915bb7e +#endif // # __SCX_TEST_H__ diff --git a/tools/testing/selftests/sched_ext/select_cpu_dfl.bpf.c b/tools/testing/selftests/sched_ext/select_cpu_dfl.bpf.c new file mode 100644 -index 0000000000000..2ed2991afafe3 +index 000000000000..2ed2991afafe --- /dev/null +++ b/tools/testing/selftests/sched_ext/select_cpu_dfl.bpf.c @@ -0,0 +1,40 @@ @@ -17013,7 +17005,7 @@ index 0000000000000..2ed2991afafe3 +}; diff --git a/tools/testing/selftests/sched_ext/select_cpu_dfl.c b/tools/testing/selftests/sched_ext/select_cpu_dfl.c new file mode 100644 -index 0000000000000..a53a40c2d2f0f +index 000000000000..a53a40c2d2f0 --- /dev/null +++ b/tools/testing/selftests/sched_ext/select_cpu_dfl.c @@ -0,0 +1,72 @@ @@ -17091,7 +17083,7 @@ index 0000000000000..a53a40c2d2f0f +REGISTER_SCX_TEST(&select_cpu_dfl) diff --git a/tools/testing/selftests/sched_ext/select_cpu_dfl_nodispatch.bpf.c b/tools/testing/selftests/sched_ext/select_cpu_dfl_nodispatch.bpf.c new file mode 100644 -index 0000000000000..4bb5abb2d3690 +index 000000000000..4bb5abb2d369 --- /dev/null +++ b/tools/testing/selftests/sched_ext/select_cpu_dfl_nodispatch.bpf.c @@ -0,0 +1,89 @@ @@ -17186,7 +17178,7 @@ index 0000000000000..4bb5abb2d3690 +}; diff --git a/tools/testing/selftests/sched_ext/select_cpu_dfl_nodispatch.c b/tools/testing/selftests/sched_ext/select_cpu_dfl_nodispatch.c new file mode 100644 -index 0000000000000..1d85bf4bf3a39 +index 000000000000..1d85bf4bf3a3 --- /dev/null +++ b/tools/testing/selftests/sched_ext/select_cpu_dfl_nodispatch.c @@ -0,0 +1,72 @@ @@ -17264,7 +17256,7 @@ index 0000000000000..1d85bf4bf3a39 +REGISTER_SCX_TEST(&select_cpu_dfl_nodispatch) diff --git a/tools/testing/selftests/sched_ext/select_cpu_dispatch.bpf.c b/tools/testing/selftests/sched_ext/select_cpu_dispatch.bpf.c new file mode 100644 -index 0000000000000..f0b96a4a04b2c +index 000000000000..f0b96a4a04b2 --- /dev/null +++ b/tools/testing/selftests/sched_ext/select_cpu_dispatch.bpf.c @@ -0,0 +1,41 @@ @@ -17311,7 +17303,7 @@ index 0000000000000..f0b96a4a04b2c +}; diff --git a/tools/testing/selftests/sched_ext/select_cpu_dispatch.c b/tools/testing/selftests/sched_ext/select_cpu_dispatch.c new file mode 100644 -index 0000000000000..0309ca8785b36 +index 000000000000..0309ca8785b3 --- /dev/null +++ b/tools/testing/selftests/sched_ext/select_cpu_dispatch.c @@ -0,0 +1,70 @@ @@ -17387,7 +17379,7 @@ index 0000000000000..0309ca8785b36 +REGISTER_SCX_TEST(&select_cpu_dispatch) diff --git a/tools/testing/selftests/sched_ext/select_cpu_dispatch_bad_dsq.bpf.c b/tools/testing/selftests/sched_ext/select_cpu_dispatch_bad_dsq.bpf.c new file mode 100644 -index 0000000000000..7b42ddce0f56c +index 000000000000..7b42ddce0f56 --- /dev/null +++ b/tools/testing/selftests/sched_ext/select_cpu_dispatch_bad_dsq.bpf.c @@ -0,0 +1,37 @@ @@ -17430,7 +17422,7 @@ index 0000000000000..7b42ddce0f56c +}; diff --git a/tools/testing/selftests/sched_ext/select_cpu_dispatch_bad_dsq.c b/tools/testing/selftests/sched_ext/select_cpu_dispatch_bad_dsq.c new file mode 100644 -index 0000000000000..47eb6ed7627d9 +index 000000000000..47eb6ed7627d --- /dev/null +++ b/tools/testing/selftests/sched_ext/select_cpu_dispatch_bad_dsq.c @@ -0,0 +1,56 @@ @@ -17492,7 +17484,7 @@ index 0000000000000..47eb6ed7627d9 +REGISTER_SCX_TEST(&select_cpu_dispatch_bad_dsq) diff --git a/tools/testing/selftests/sched_ext/select_cpu_dispatch_dbl_dsp.bpf.c b/tools/testing/selftests/sched_ext/select_cpu_dispatch_dbl_dsp.bpf.c new file mode 100644 -index 0000000000000..653e3dc0b4dc8 +index 000000000000..653e3dc0b4dc --- /dev/null +++ b/tools/testing/selftests/sched_ext/select_cpu_dispatch_dbl_dsp.bpf.c @@ -0,0 +1,38 @@ @@ -17536,7 +17528,7 @@ index 0000000000000..653e3dc0b4dc8 +}; diff --git a/tools/testing/selftests/sched_ext/select_cpu_dispatch_dbl_dsp.c b/tools/testing/selftests/sched_ext/select_cpu_dispatch_dbl_dsp.c new file mode 100644 -index 0000000000000..48ff028a3c46d +index 000000000000..48ff028a3c46 --- /dev/null +++ b/tools/testing/selftests/sched_ext/select_cpu_dispatch_dbl_dsp.c @@ -0,0 +1,56 @@ @@ -17598,7 +17590,7 @@ index 0000000000000..48ff028a3c46d +REGISTER_SCX_TEST(&select_cpu_dispatch_dbl_dsp) diff --git a/tools/testing/selftests/sched_ext/select_cpu_vtime.bpf.c b/tools/testing/selftests/sched_ext/select_cpu_vtime.bpf.c new file mode 100644 -index 0000000000000..7f3ebf4fc2ead +index 000000000000..7f3ebf4fc2ea --- /dev/null +++ b/tools/testing/selftests/sched_ext/select_cpu_vtime.bpf.c @@ -0,0 +1,92 @@ @@ -17696,7 +17688,7 @@ index 0000000000000..7f3ebf4fc2ead +}; diff --git a/tools/testing/selftests/sched_ext/select_cpu_vtime.c b/tools/testing/selftests/sched_ext/select_cpu_vtime.c new file mode 100644 -index 0000000000000..b4629c2364f5d +index 000000000000..b4629c2364f5 --- /dev/null +++ b/tools/testing/selftests/sched_ext/select_cpu_vtime.c @@ -0,0 +1,59 @@ @@ -17761,7 +17753,7 @@ index 0000000000000..b4629c2364f5d +REGISTER_SCX_TEST(&select_cpu_vtime) diff --git a/tools/testing/selftests/sched_ext/test_example.c b/tools/testing/selftests/sched_ext/test_example.c new file mode 100644 -index 0000000000000..ce36cdf03cdc5 +index 000000000000..ce36cdf03cdc --- /dev/null +++ b/tools/testing/selftests/sched_ext/test_example.c @@ -0,0 +1,49 @@ @@ -17816,7 +17808,7 @@ index 0000000000000..ce36cdf03cdc5 +REGISTER_SCX_TEST(&example) diff --git a/tools/testing/selftests/sched_ext/util.c b/tools/testing/selftests/sched_ext/util.c new file mode 100644 -index 0000000000000..e47769c919187 +index 000000000000..e47769c91918 --- /dev/null +++ b/tools/testing/selftests/sched_ext/util.c @@ -0,0 +1,71 @@ @@ -17893,7 +17885,7 @@ index 0000000000000..e47769c919187 +} diff --git a/tools/testing/selftests/sched_ext/util.h b/tools/testing/selftests/sched_ext/util.h new file mode 100644 -index 0000000000000..bc13dfec1267a +index 000000000000..bc13dfec1267 --- /dev/null +++ b/tools/testing/selftests/sched_ext/util.h @@ -0,0 +1,13 @@