Hi, if a kernel is compiled with CONFIG_DEBUG_INFO_BTF disabled then the libbpf fails on perf lock contention with: ``` libbpf: failed to find valid kernel BTF libbpf: Error loading vmlinux BTF: -3 libbpf: failed to load object 'lock_contention_bpf' libbpf: failed to load BPF skeleton 'lock_contention_bpf': -3 Failed to load lock-contention BPF skeleton lock contention BPF setup failed ``` The same error message is seen with BCC's libbpf-tools. I saw these messages on default Rapberry Pi OS that is derived from Debian (more context in https://bugzilla.kernel.org/show_bug.cgi?id=218401). Given that distributions are shipping perf and libbpf-tools that assume BTF is enabled, should CONFIG_DEBUG_INFO_BTF be enabled by default in the kernel? Perhaps: ``` libbpf: Error loading vmlinux BTF: -3 ``` Would be better as (especially if the user is root): ``` libbpf: Error loading vmlinux BTF: -3 (was the kernel compiled with CONFIG_DEBUG_INFO_BTF?) ``` Thanks, Ian