How to enable BTF support for ubuntu 20.04?
- Dominant language
- C
- Stars
- 22.7k
- Forks
- 4.1k
- Avg merge
- 10d 4h
- Merged PRs (30d)
- 3
Description
I tried to enable BTF support by rebuilding kernel with CONFIG_DEBUG_INFO_BTF=y.
The specific configuration is shown below:
Kernel version:

Clang and LLVM version:


And /sys/kernel/btf/vmlinux exist.

bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux.h is OK.
**However, I encouter this problem:**

**So actually opensnoop use kprobe and kretprobe to get the filled funcation arguments.
KFUNC and KRETFUNC are not load successfully.**
I don't know what's going wrong. Is there anybody meet similar problems? Very gratefull if you have any suggestions!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.