]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: switch tests to new bpf_object__open_{file, mem}() APIs
authorAndrii Nakryiko <andriin@fb.com>
Fri, 4 Oct 2019 22:40:37 +0000 (15:40 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 6 Oct 2019 01:09:48 +0000 (18:09 -0700)
commit0b3b72bea364e1d2ba388755e2e4a8cb6fb0c957
tree12d5c147cb01dc2420a2efbcc5561c2923185e06
parente4807e8fdbb617ecfbc679be670f6664cb847bd4
selftests/bpf: switch tests to new bpf_object__open_{file, mem}() APIs

Verify new bpf_object__open_mem() and bpf_object__open_file() APIs work
as expected by switching test_attach_probe test to use embedded BPF
object and bpf_object__open_mem() and test_reference_tracking to
bpf_object__open_file().

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/prog_tests/attach_probe.c
tools/testing/selftests/bpf/prog_tests/reference_tracking.c