]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
scx/selftests: Verify we can call create_dsq from prog_run
authorDavid Vernet <void@manifault.com>
Wed, 31 Jul 2024 05:14:37 +0000 (00:14 -0500)
committerTejun Heo <tj@kernel.org>
Wed, 31 Jul 2024 17:47:34 +0000 (07:47 -1000)
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 <void@manifault.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/sched_ext/prog_run.bpf.c

index fd2c8f12af16ac1843fa52c42232911e316c8851..6a4d7c48e3f224e452e6de4b417bc91e39131ae1 100644 (file)
@@ -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;
 }