Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
program: don't return error when kmod BTF is disabled
In kernels where the flag CONFIG_DEBUG_INFO_BTF_MODULES is not set, including kernels 5.10 and below (because the flag was introduced in 5.11), loading a program that attaches to kernel module functions and relied on CORE failed because the module's BTF is not available. This fix allows the program to run, obviously only as long as it only relies on the kernel's BTF and not on the specific module's BTF. Fixes: #1436 Signed-off-by: Ori Shussman <[email protected]>
- Loading branch information