joelagnel / adeb

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

Exception: Failed to compile BPF module <text> #32

Closed meishaoqing closed 5 years ago

meishaoqing commented 5 years ago

I want to use adeb on my phone, but I got the above error.

root@localhost:/# filetop
sh: modprobe: command not found
Unable to find kernel headers. Try rebuilding kernel with CONFIG_IKHEADERS=m (module)
chdir(/lib/modules/4.14.117-perf-g63f048d/build): No such file or directory
Traceback (most recent call last):
  File "/usr/share/bcc/tools/filetop", line 161, in <module>
    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 "<text>"))
Exception: Failed to compile BPF module <text>

From the git log, we can see the '--kernelsrc' option was removed, so I can't specify the header path.

Can you tell me why this option was removed? And is there an alternative option? Thanks.

yboren commented 4 years ago

I met this problem too, can you provide some information about your solution?