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

Exception: Failed to compile BPF module  #49

@Linuxuser4

Description

@Linuxuser4

Hi,
I am trying to use bpfd with host as ubuntu (4.4.0-116) and target as android(arm64 linux version 4.4). For any utility I run, I get the error "Exception: Failed to compile BPF module "
More detailed log is below. Am I missing anything very obvious? autoconf.h will not be present as part of kernel source since all build generated files will be in 'out' directory created by android build environment. If I point to the generated 'out' directory, 'filetop' will complain that './include/linux/kconfig.h' file not found which is not in 'out' directory, but in the main kernel sources. How do I give path of both 'out' folder and kernel folder sources? Do I have to manually merge these and try out?

(bcc) root@hostname:$ filetop
In file included from :1:
././include/linux/kconfig.h:4:10: fatal error: 'generated/autoconf.h' file not found
#include <generated/autoconf.h>
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Traceback (most recent call last):
File "/usr/local/bpfd-install/share/bcc/tools/filetop", line 156, in
b = BPF(text=bpf_text)
File "/usr/local/bpfd-install/lib/python2.7/dist-packages/bcc/init.py", line 321, in init
raise Exception("Failed to compile BPF module %s" % src_file)
Exception: Failed to compile BPF module
(bcc) root@hostname:
$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions