Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <void@manifault.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

David Vernet and committed by
Tejun Heo
958b1891 298dec19

+1
+1
tools/testing/selftests/sched_ext/prog_run.bpf.c
··· 16 16 SEC("syscall") 17 17 int BPF_PROG(prog_run_syscall) 18 18 { 19 + scx_bpf_create_dsq(0, -1); 19 20 scx_bpf_exit(0xdeadbeef, "Exited from PROG_RUN"); 20 21 return 0; 21 22 }