selftests/bpf: Test bpf_link's get_next_id, get_fd_by_id, and get_obj_info
authorAndrii Nakryiko <andriin@fb.com>
Wed, 29 Apr 2020 00:16:10 +0000 (17:16 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 29 Apr 2020 00:27:08 +0000 (17:27 -0700)
commit2c2837b09e9ab4874353186599609fa2e1ccabce
tree0e0412388fc77286acd54445ed4c6deccdcc18fa
parent0dbc866832a0fbf9f2b98d412da44c5cfd1b7756
selftests/bpf: Test bpf_link's get_next_id, get_fd_by_id, and get_obj_info

Extend bpf_obj_id selftest to verify bpf_link's observability APIs.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200429001614.1544-7-andriin@fb.com
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
tools/testing/selftests/bpf/progs/test_obj_id.c