selftests/bpf: Add link pinning selftests
authorAndrii Nakryiko <andriin@fb.com>
Tue, 3 Mar 2020 04:31:59 +0000 (20:31 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 3 Mar 2020 06:06:27 +0000 (22:06 -0800)
commit6489b8e1e3cf0eb8639e96610002837c53a677cd
treeca5fb6ac35ee781923f2f2be5bb66b83e4e29c1b
parentc016b68edc7a2adf3db0f11fb649797c1f9216ea
selftests/bpf: Add link pinning selftests

Add selftests validating link pinning/unpinning and associated BPF link
(attachment) lifetime.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200303043159.323675-4-andriin@fb.com
tools/testing/selftests/bpf/prog_tests/link_pinning.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_link_pinning.c [new file with mode: 0644]