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)
commitd41ea045a6e461673d1b2fad106b8cd04c3ba863
treebb1bae026275645e4ffb10b54c81a34f68b21f2a
parent15ea31fadd7f5b1076b4f91f75562bc319799c24
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