mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 22:24:09 +08:00
d7f5b5e051
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> |
||
---|---|---|
.. | ||
.gitignore | ||
bpf.c | ||
bpf.h | ||
btf.c | ||
btf.h | ||
Build | ||
libbpf_errno.c | ||
libbpf.c | ||
libbpf.h | ||
Makefile | ||
netlink.c | ||
nlattr.c | ||
nlattr.h | ||
str_error.c | ||
str_error.h |