Commit 958b1891 authored by David Vernet's avatar David Vernet Committed by Tejun Heo

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: default avatarDavid Vernet <void@manifault.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 298dec19
...@@ -16,6 +16,7 @@ char _license[] SEC("license") = "GPL"; ...@@ -16,6 +16,7 @@ char _license[] SEC("license") = "GPL";
SEC("syscall") SEC("syscall")
int BPF_PROG(prog_run_syscall) int BPF_PROG(prog_run_syscall)
{ {
scx_bpf_create_dsq(0, -1);
scx_bpf_exit(0xdeadbeef, "Exited from PROG_RUN"); scx_bpf_exit(0xdeadbeef, "Exited from PROG_RUN");
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment