linux_dsm_epyc7002/tools/lib/bpf
Yonghong Song d7f5b5e051 tools/bpf: refactor to implement btf_get_from_id() in lib/bpf
The function get_btf() is implemented in tools/bpf/bpftool/map.c
to get a btf structure given a map_info. This patch
refactored this function to be function btf_get_from_id()
in tools/lib/bpf so that it can be used later.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2018-11-20 10:54:39 -08:00
..
.gitignore
bpf.c tools/bpf: add support to read .BTF.ext sections 2018-11-20 10:54:39 -08:00
bpf.h tools/bpf: add new fields for program load in lib/bpf 2018-11-20 10:54:39 -08:00
btf.c tools/bpf: refactor to implement btf_get_from_id() in lib/bpf 2018-11-20 10:54:39 -08:00
btf.h tools/bpf: refactor to implement btf_get_from_id() in lib/bpf 2018-11-20 10:54:39 -08:00
Build Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2018-09-25 20:29:38 -07:00
libbpf_errno.c libbpf: relicense libbpf as LGPL-2.1 OR BSD-2-Clause 2018-10-08 10:09:48 +02:00
libbpf.c tools/bpf: add support to read .BTF.ext sections 2018-11-20 10:54:39 -08:00
libbpf.h libbpf: cleanup after partial failure in bpf_object__pin 2018-11-10 15:56:10 -08:00
Makefile libbpf: Per-symbol visibility for DSO 2018-10-16 15:16:47 -07:00
netlink.c libbpf: relicense libbpf as LGPL-2.1 OR BSD-2-Clause 2018-10-08 10:09:48 +02:00
nlattr.c libbpf: relicense libbpf as LGPL-2.1 OR BSD-2-Clause 2018-10-08 10:09:48 +02:00
nlattr.h libbpf: relicense libbpf as LGPL-2.1 OR BSD-2-Clause 2018-10-08 10:09:48 +02:00
str_error.c libbpf: relicense libbpf as LGPL-2.1 OR BSD-2-Clause 2018-10-08 10:09:48 +02:00
str_error.h libbpf: relicense libbpf as LGPL-2.1 OR BSD-2-Clause 2018-10-08 10:09:48 +02:00