Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

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

Closed
meishaoqing opened this issue Oct 8, 2019 · 1 comment
Closed

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

meishaoqing opened this issue Oct 8, 2019 · 1 comment

Comments

@meishaoqing
Copy link

meishaoqing commented Oct 8, 2019

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
Copy link

yboren commented Aug 20, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants