mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-24 10:19:07 +08:00
Add more UAPI headers from kernel tree since libbpf relies on their latest versions that may not be present on target system to use in build. if_link.h and netlink.h are synced to include/uapi/linux/ from [1] [1] https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/tree/tools/include/uapi/linux Signed-off-by: Andrey Ignatov <rdna@fb.com>
25 lines
893 B
Plaintext
25 lines
893 B
Plaintext
|
|
This is a mirror of bpf-next linux tree
|
|
(https://kernel.googlesource.com/pub/scm/linux/kernel/git/bpf/bpf-next)
|
|
bpf-next/tools/lib/bpf directory plus its supporting header files.
|
|
|
|
The following files will by sync'ed with bpf-next repo:
|
|
src/ <-> bpf-next/tools/lib/bpf/
|
|
include/uapi/linux/bpf.h <-> bpf-next/tools/include/uapi/linux/bpf.h
|
|
include/uapi/linux/btf.h <-> bpf-next/tools/include/uapi/linux/btf.h
|
|
include/uapi/linux/if_link.h <-> bpf-next/tools/include/uapi/linux/if_link.h
|
|
include/uapi/linux/netlink.h <-> bpf-next/tools/include/uapi/linux/netlink.h
|
|
include/tools/libc_compat.h <-> bpf-next/tools/include/tools/libc_compat.h
|
|
|
|
Other header files at this repo (include/linux/*.h) are reduced versions of
|
|
their counterpart files at bpf-next/tools/include/linux/*.h to make compilation
|
|
successful.
|
|
|
|
Build
|
|
=====
|
|
|
|
To build,
|
|
cd src
|
|
make
|
|
and it will build libbpf.a library
|