libbpf: Sanitize global functions
authorAlexei Starovoitov <ast@kernel.org>
Fri, 10 Jan 2020 06:41:19 +0000 (22:41 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 10 Jan 2020 16:20:07 +0000 (17:20 +0100)
commit2d3eb67f64ec317bbfe340cfcc8325d40a6ff317
tree5af845b22b56292a359da753e7dff4d53aa49aa6
parentf41aa387a7896c193b384c5fb531cd2cb9e00128
libbpf: Sanitize global functions

In case the kernel doesn't support BTF_FUNC_GLOBAL sanitize BTF produced by the
compiler for global functions.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20200110064124.1760511-2-ast@kernel.org
tools/include/uapi/linux/btf.h
tools/lib/bpf/libbpf.c