selftests/bpf: Tests libbpf autoattach APIs
authorHao Luo <haoluo@google.com>
Tue, 16 Aug 2022 23:40:12 +0000 (16:40 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 17 Aug 2022 16:42:07 +0000 (09:42 -0700)
commit738a2f2f9130f98f92ccb3efd94d4879c0a0990c
treef59098cb9084556a110c7a27850f5d85929ae774
parent43cb8cbadffa21e88a65dd1129c86f5552d6c42e
selftests/bpf: Tests libbpf autoattach APIs

Adds test for libbpf APIs that toggle bpf program auto-attaching.

Signed-off-by: Hao Luo <haoluo@google.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220816234012.910255-2-haoluo@google.com
tools/testing/selftests/bpf/prog_tests/autoattach.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_autoattach.c [new file with mode: 0644]