]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: use section names understood by libbpf in test_sockmap
authorJakub Sitnicki <jakub@cloudflare.com>
Wed, 22 May 2024 08:09:36 +0000 (10:09 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 30 May 2024 21:42:17 +0000 (14:42 -0700)
commit46253c4ae96162a840ad65c1394de63796d7798a
tree98bfab486b5aafec09ad9f13464fabcec8de480b
parentf088cabffcb646b559055464bb5fa79206752f07
selftests/bpf: use section names understood by libbpf in test_sockmap

libbpf can deduce program type and attach type from the ELF section name.
We don't need to pass it out-of-band if we switch to libbpf convention [1].

[1] https://docs.kernel.org/bpf/libbpf/program_types.html

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240522080936.2475833-1-jakub@cloudflare.com
tools/testing/selftests/bpf/progs/test_sockmap_kern.h
tools/testing/selftests/bpf/test_sockmap.c