mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
The sched_ext selftests is missing proper cross-compilation support, a
proper target entry, and out-of-tree build support.
When building the kselftest suite, e.g.:
make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- \
TARGETS=sched_ext SKIP_TARGETS="" O=/output/foo \
-C tools/testing/selftests install
or:
make ARCH=arm64 LLVM=1 TARGETS=sched_ext SKIP_TARGETS="" \
O=/output/foo -C tools/testing/selftests install
The expectation is that the sched_ext is included, cross-built, the
correct toolchain is picked up, and placed into /output/foo.
In contrast to the BPF selftests, the sched_ext suite does not use
bpftool at test run-time, so it is sufficient to build bpftool for the
build host only.
Add ARCH, CROSS_COMPILE, OUTPUT, and TARGETS support to the sched_ext
selftest. Also, remove some variables that were unused by the
Makefile.
Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: David Vernet <void@manifault.com>
Tested-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| config | ||
| create_dsq.bpf.c | ||
| create_dsq.c | ||
| ddsp_bogus_dsq_fail.bpf.c | ||
| ddsp_bogus_dsq_fail.c | ||
| ddsp_vtimelocal_fail.bpf.c | ||
| ddsp_vtimelocal_fail.c | ||
| dsp_local_on.bpf.c | ||
| dsp_local_on.c | ||
| enq_last_no_enq_fails.bpf.c | ||
| enq_last_no_enq_fails.c | ||
| enq_select_cpu_fails.bpf.c | ||
| enq_select_cpu_fails.c | ||
| exit_test.h | ||
| exit.bpf.c | ||
| exit.c | ||
| hotplug_test.h | ||
| hotplug.bpf.c | ||
| hotplug.c | ||
| init_enable_count.bpf.c | ||
| init_enable_count.c | ||
| Makefile | ||
| maximal.bpf.c | ||
| maximal.c | ||
| maybe_null_fail_dsp.bpf.c | ||
| maybe_null_fail_yld.bpf.c | ||
| maybe_null.bpf.c | ||
| maybe_null.c | ||
| minimal.bpf.c | ||
| minimal.c | ||
| prog_run.bpf.c | ||
| prog_run.c | ||
| reload_loop.c | ||
| runner.c | ||
| scx_test.h | ||
| select_cpu_dfl_nodispatch.bpf.c | ||
| select_cpu_dfl_nodispatch.c | ||
| select_cpu_dfl.bpf.c | ||
| select_cpu_dfl.c | ||
| select_cpu_dispatch_bad_dsq.bpf.c | ||
| select_cpu_dispatch_bad_dsq.c | ||
| select_cpu_dispatch_dbl_dsp.bpf.c | ||
| select_cpu_dispatch_dbl_dsp.c | ||
| select_cpu_dispatch.bpf.c | ||
| select_cpu_dispatch.c | ||
| select_cpu_vtime.bpf.c | ||
| select_cpu_vtime.c | ||
| test_example.c | ||
| util.c | ||
| util.h | ||