selftest/bpf: Get rid of a bunch of explicit BPF program type setting
authorAndrii Nakryiko <andriin@fb.com>
Mon, 21 Oct 2019 03:39:02 +0000 (20:39 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 21 Oct 2019 12:49:12 +0000 (14:49 +0200)
commit1678e33c21b705e9e5d26385aa1611aabe5482dc
tree0a145a5dc6d4fd9502b3dff7adf4319f93bba302
parent8af1c8b8d6223c31fada6148fd870257407952d1
selftest/bpf: Get rid of a bunch of explicit BPF program type setting

Now that libbpf can correctly guess BPF program types from section
names, remove a bunch of explicit bpf_program__set_type() calls
throughout tests.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20191021033902.3856966-8-andriin@fb.com
tools/testing/selftests/bpf/prog_tests/attach_probe.c
tools/testing/selftests/bpf/prog_tests/core_reloc.c
tools/testing/selftests/bpf/prog_tests/rdonly_maps.c
tools/testing/selftests/bpf/test_maps.c