eunomia-bpf / bpf-developer-tutorial

eBPF Developer Tutorial: Learning eBPF Step by Step with Examples
https://eunomia.dev/tutorials/
MIT License
2.62k stars 369 forks source link

[BUG]使用ecli运行时提示找不到 vmlinux BTF #118

Open xuanyuan-mercury opened 6 months ago

xuanyuan-mercury commented 6 months ago

Bpf error: Failed to start polling: Bpf("Failed to build skeleton: All ways tried to find vmlinux BTF, but not found. Please provide the vmlinux btf using env BTF_FILE_PATH. (Tried parameter btf_archive_path, BTF_FILE_PATH, and /sys/kernel/btf/vmlinux)"), RecvError

Officeyutong commented 6 months ago

Bpf error: Failed to start polling: Bpf("Failed to build skeleton: All ways tried to find vmlinux BTF, but not found. Please provide the vmlinux btf using env BTF_FILE_PATH. (Tried parameter btf_archive_path, BTF_FILE_PATH, and /sys/kernel/btf/vmlinux)"), RecvError

Please check whether your kernel is built with BTF

xuanyuan-mercury commented 6 months ago

Bpf 错误:无法开始轮询:Bpf(“无法构建骨架:所有方法都试图找到 vmlinux BTF,但未找到。请使用 env 提供 vmlinux btf。(尝试参数 、 BTF_FILE_PATH 和 /sys/kernel/btf/vmlinux)“)、RecvErrorBTF_FILE_PATH``btf_archive_path

请检查您的内核是否是用 BTD 构建的

Hello, I didn't find anything related to BTD in the kernel version info

Officeyutong commented 6 months ago

Bpf 错误:无法开始轮询:Bpf(“无法构建骨架:所有方法都试图找到 vmlinux BTF,但未找到。请使用 env 提供 vmlinux btf。(尝试参数 、 BTF_FILE_PATH 和 /sys/kernel/btf/vmlinux)“)、RecvErrorBTF_FILE_PATHbtf_archive_path ``

请检查您的内核是否是用 BTD 构建的

Hello, I didn't find anything related to BTD in the kernel version info

Sorry, my fault. It should be BTF. You may check CONFIG_DEBUG_INFO_BTF in your kernel config