Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpi5-kernel: can't run eBPF tools due to missing BTF debug info #53258

Open
kdrag0n opened this issue Nov 29, 2024 · 0 comments
Open

rpi5-kernel: can't run eBPF tools due to missing BTF debug info #53258

kdrag0n opened this issue Nov 29, 2024 · 0 comments
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed

Comments

@kdrag0n
Copy link

kdrag0n commented Nov 29, 2024

Is this a new report?

Yes

System Info

Void 6.6.42_1 aarch64 Unknown notuptodate rrnFFF

Package(s) Affected

rpi5-kernel-6.6.42_1

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

execsnoop and other eBPF tracing tools from bcc-tools run successfully.

Actual behaviour

execsnoop doesn't start because the kernel is missing BTF debug info, which is required for eBPF CO-RE:

libbpf: kernel BTF is missing at '/sys/kernel/btf/vmlinux', was CONFIG_DEBUG_INFO_BTF enabled?
libbpf: failed to find valid kernel BTF
modprobe: FATAL: Module kheaders not found in directory /lib/modules/6.6.42_1
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/6.6.42_1/build): No such file or directory
Traceback (most recent call last):
  File "/usr/bin/execsnoop", line 272, in <module>
    b = BPF(text=bpf_text)
        ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/bcc/__init__.py", line 480, in __init__
    raise Exception("Failed to compile BPF module %s" % (src_file or "<text>"))
Exception: Failed to compile BPF module <text>

Steps to reproduce

  1. xbps-install bcc-tools
  2. execsnoop
@kdrag0n kdrag0n added bug Something isn't working needs-testing Testing a PR or reproducing an issue needed labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed
Projects
None yet
Development

No branches or pull requests

1 participant