tiann / eadb

eBPF Android Debug Bridge
Apache License 2.0
465 stars 60 forks source link

Unable to find kernel headers. Try rebuilding kernel with CONFIG_IKHEADERS=m (module) or installing the kernel development package for your running kernel version. #11

Closed songxiaotao2015 closed 2 years ago

songxiaotao2015 commented 2 years ago

Unable to find kernel headers. Try rebuilding kernel with CONFIG_IKHEADERS=m (module) or installing the kernel development package for your running kernel version. chdir(/lib/modules/4.14.243-gff8eae656fe6-ab8007944/build): No such file or directory Traceback (most recent call last): File "/usr/share/bcc/tools/opensnoop", line 261, in b = BPF(text='') File "/usr/lib/python3/dist-packages/bcc/init.py", line 475, in init raise Exception("Failed to compile BPF module %s" % (src_file or "")) Exception: Failed to compile BPF module

Pixel4 运行 opensnoop 提示运行错误

tiann commented 2 years ago

Try rebuilding kernel with CONFIG_IKHEADERS=m (module) or installing the kernel development package for your running kernel version.

内核缺少编译选项。