diff options
| author | Tejun Heo <tj@kernel.org> | 2024-07-31 08:56:31 -1000 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2024-08-01 07:08:01 -1000 |
| commit | a2f4b16e736d62892ffd333996a7d682b57f6664 (patch) | |
| tree | 0c7020e73715691cd881c028a85601759b93f573 /kernel/Kconfig.preempt | |
| parent | scx/selftests: Verify we can call create_dsq from prog_run (diff) | |
| download | linux-a2f4b16e736d62892ffd333996a7d682b57f6664.tar.gz linux-a2f4b16e736d62892ffd333996a7d682b57f6664.zip | |
sched_ext: Build fix on !CONFIG_STACKTRACE[_SUPPORT]
scx_dump_task() uses stack_trace_save_tsk() which is only available when
CONFIG_STACKTRACE. Make CONFIG_SCHED_CLASS_EXT select CONFIG_STACKTRACE if
the support is available and skip capturing stack trace if
!CONFIG_STACKTRACE.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202407161844.reewQQrR-lkp@intel.com/
Acked-by: David Vernet <void@manifault.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/Kconfig.preempt')
| -rw-r--r-- | kernel/Kconfig.preempt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/Kconfig.preempt b/kernel/Kconfig.preempt index f3d140c3acc1..fe782cd77388 100644 --- a/kernel/Kconfig.preempt +++ b/kernel/Kconfig.preempt @@ -136,6 +136,7 @@ config SCHED_CORE config SCHED_CLASS_EXT bool "Extensible Scheduling Class" depends on BPF_SYSCALL && BPF_JIT && DEBUG_INFO_BTF + select STACKTRACE if STACKTRACE_SUPPORT help This option enables a new scheduler class sched_ext (SCX), which allows scheduling policies to be implemented as BPF programs to |
