From: David Vernet Date: Wed, 31 Jul 2024 05:14:37 +0000 (-0500) Subject: scx/selftests: Verify we can call create_dsq from prog_run X-Git-Tag: v6.12-rc1~111^2~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=958b1891846e768584a4d44aed9fabc6f9a445fb;p=thirdparty%2Flinux.git scx/selftests: Verify we can call create_dsq from prog_run We already have some testcases verifying that we can call BPF_PROG_TYPE_SYSCALL progs and invoke scx_bpf_exit(). Let's extend that to also call scx_bpf_create_dsq() so we get coverage for that as well. Signed-off-by: David Vernet Signed-off-by: Tejun Heo --- diff --git a/tools/testing/selftests/sched_ext/prog_run.bpf.c b/tools/testing/selftests/sched_ext/prog_run.bpf.c index fd2c8f12af16a..6a4d7c48e3f22 100644 --- a/tools/testing/selftests/sched_ext/prog_run.bpf.c +++ b/tools/testing/selftests/sched_ext/prog_run.bpf.c @@ -16,6 +16,7 @@ char _license[] SEC("license") = "GPL"; SEC("syscall") int BPF_PROG(prog_run_syscall) { + scx_bpf_create_dsq(0, -1); scx_bpf_exit(0xdeadbeef, "Exited from PROG_RUN"); return 0; }