diff options
author | Andrea Righi <[email protected]> | 2024-06-27 20:45:22 +0200 |
---|---|---|
committer | Tejun Heo <[email protected]> | 2024-06-27 09:06:47 -1000 |
commit | b5ba2e1a955417e78a6018fb736a14c03df0abcd (patch) | |
tree | 39c4c7e57b2ab6405ef1acfc647fc0345519b669 | |
parent | 1ff4f169c9f576a73c529365770d82595c53b6ef (diff) |
sched_ext: add CONFIG_DEBUG_INFO_BTF dependency
Without BTF, attempting to load any sched_ext scheduler will result in
an error like the following:
libbpf: kernel BTF is missing at '/sys/kernel/btf/vmlinux', was CONFIG_DEBUG_INFO_BTF enabled?
This makes sched_ext pretty much unusable, so explicitly depend on
CONFIG_DEBUG_INFO_BTF to prevent these issues.
Signed-off-by: Andrea Righi <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
-rw-r--r-- | kernel/Kconfig.preempt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/Kconfig.preempt b/kernel/Kconfig.preempt index f035c87d02f1..f3d140c3acc1 100644 --- a/kernel/Kconfig.preempt +++ b/kernel/Kconfig.preempt @@ -135,7 +135,7 @@ config SCHED_CORE config SCHED_CLASS_EXT bool "Extensible Scheduling Class" - depends on BPF_SYSCALL && BPF_JIT + depends on BPF_SYSCALL && BPF_JIT && DEBUG_INFO_BTF help This option enables a new scheduler class sched_ext (SCX), which allows scheduling policies to be implemented as BPF programs to |