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)
commit928ca75e59d7cf10ad2c4b446c7b5d046e244027
tree12d5c147cb01dc2420a2efbcc5561c2923185e06
parentc9e4c3010c8c98aa867fce386ee459a32c00a487
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