]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Complete SEC() table unification for BPF_APROG_SEC/BPF_EAPROG_SEC
authorAndrii Nakryiko <andrii@kernel.org>
Tue, 28 Sep 2021 16:19:44 +0000 (09:19 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 28 Sep 2021 20:51:19 +0000 (13:51 -0700)
commit59d518765dbd9896cababec920066cff301bf4ef
treebb1bae026275645e4ffb10b54c81a34f68b21f2a
parent557141163963b82120b178dfe2cd8045efe79093
libbpf: Complete SEC() table unification for BPF_APROG_SEC/BPF_EAPROG_SEC

Complete SEC() table refactoring towards unified form by rewriting
BPF_APROG_SEC and BPF_EAPROG_SEC definitions with
SEC_DEF(SEC_ATTACHABLE_OPT) (for optional expected_attach_type) and
SEC_DEF(SEC_ATTACHABLE) (mandatory expected_attach_type), respectively.
Drop BPF_APROG_SEC, BPF_EAPROG_SEC, and BPF_PROG_SEC_IMPL macros after
that, leaving SEC_DEF() macro as the only one used.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Dave Marchevsky <davemarchevsky@fb.com>
Link: https://lore.kernel.org/bpf/20210928161946.2512801-9-andrii@kernel.org
tools/lib/bpf/libbpf.c