joelagnel / adeb

A debian-based shell environment designed for Android and adb
Apache License 2.0
319 stars 100 forks source link

Failed to run some commands #33

Closed leeminghao closed 4 years ago

leeminghao commented 4 years ago

root@localhost:/usr/share/bcc/tools# filetop 5 10 sh: modprobe: command not found Unable to find kernel headers. Try rebuilding kernel with CONFIG_IKHEADERS=m (module) chdir(/lib/modules/4.9.186-perf-g4773f96/build): No such file or directory Traceback (most recent call last): File "/usr/share/bcc/tools/filetop", line 161, in b = BPF(text=bpf_text) File "/usr/lib/python2.7/dist-packages/bcc/init.py", line 343, in init raise Exception("Failed to compile BPF module %s" % (src_file or "")) Exception: Failed to compile BPF module

leeminghao commented 4 years ago

CONFIG_IKHEADERS=y on my device

leeminghao commented 4 years ago

I have resolved this issue like this:

https://github.com/novelinux/linux-4.x.y/tree/master/perf/eBPF