diff options
| author | 2020-08-18 14:33:56 -0700 | |
|---|---|---|
| committer | 2020-08-18 17:16:15 -0700 | |
| commit | 68b08647c7d56ea15114435c3023adc017d11b81 (patch) | |
| tree | c79294afedb4b82d2879dc690a9a4d844cfdaf43 /tools/perf/scripts/python/bin | |
| parent | libbpf: Switch tracing and CO-RE helper macros to bpf_probe_read_kernel() (diff) | |
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/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
