]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: test_progs/sockopt_sk: Convert to use BPF skeleton
authorYauheni Kaliuta <yauheni.kaliuta@redhat.com>
Thu, 8 Apr 2021 06:13:03 +0000 (09:13 +0300)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 9 Apr 2021 06:54:47 +0000 (23:54 -0700)
commitd4c845c45d766c62e37e1a184f34bcec24dcc35b
tree2f20219f033b40ba6455b5d4748bcee02c805b9c
parent2c8edc37e68bb16ad71159c2e7a249ea832f974d
selftests/bpf: test_progs/sockopt_sk: Convert to use BPF skeleton

Switch the test to use BPF skeleton to save some boilerplate and
make it easy to access bpf program bss segment.

The latter will be used to pass PAGE_SIZE from userspace since there
is no convenient way for bpf program to get it from inside of the
kernel.

Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210408061310.95877-2-yauheni.kaliuta@redhat.com
tools/testing/selftests/bpf/prog_tests/sockopt_sk.c