]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit223ec3cfcb5685970fb64d37296eeb60dca5446a
treef59098cb9084556a110c7a27850f5d85929ae774
parentad4d0124f36c684578872e0986bbd86e141df2ee
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]