diff options
author | Andrii Nakryiko <andriin@fb.com> | 2020-08-18 14:33:56 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-08-18 17:16:15 -0700 |
commit | 68b08647c7d56ea15114435c3023adc017d11b81 (patch) | |
tree | c79294afedb4b82d2879dc690a9a4d844cfdaf43 /tools/lib/bpf/bpf_prog_linfo.c | |
parent | 70785cfb19287b4b075a266887be5e024bf1206a (diff) | |
download | linux-68b08647c7d56ea15114435c3023adc017d11b81.tar.gz linux-68b08647c7d56ea15114435c3023adc017d11b81.tar.bz2 linux-68b08647c7d56ea15114435c3023adc017d11b81.zip |
libbpf: Detect minimal BTF support and skip BTF loading, if missing
Detect whether a kernel supports any BTF at all, and if not, don't even
attempt loading BTF to avoid unnecessary log messages like:
libbpf: Error loading BTF: Invalid argument(22)
libbpf: Error loading .BTF into kernel: -22. BTF is optional, ignoring.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200818213356.2629020-8-andriin@fb.com
Diffstat (limited to 'tools/lib/bpf/bpf_prog_linfo.c')
0 files changed, 0 insertions, 0 deletions