]> asedeno.scripts.mit.edu Git - linux.git/commit
libbpf: Extract common user-facing helpers
authorAndrii Nakryiko <andriin@fb.com>
Sat, 14 Dec 2019 01:43:29 +0000 (17:43 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 15 Dec 2019 23:58:05 +0000 (15:58 -0800)
commit544402d4b49332a4a9b2b8fff20f9d9f5ef86559
treeaea0437dbae1de2c6db8bc2bf4fd50ad6bc7a191
parent917f6b7b07a46e53fa73e112d23c97d1b201a877
libbpf: Extract common user-facing helpers

LIBBPF_API and DECLARE_LIBBPF_OPTS are needed in many public libbpf API
headers. Extract them into libbpf_common.h to avoid unnecessary
interdependency between btf.h, libbpf.h, and bpf.h or code duplication.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191214014341.3442258-6-andriin@fb.com
tools/lib/bpf/bpf.h
tools/lib/bpf/btf.h
tools/lib/bpf/libbpf.h
tools/lib/bpf/libbpf_common.h [new file with mode: 0644]