-
Notifications
You must be signed in to change notification settings - Fork 77
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
ERROR Loading BPF program and maps into Kernel #44
Comments
weird, works on my linux (5.15.11-200.fc35.x86_64)... could be an arm thing? are the other probes working? |
reposting here for posterity, can you try removing the and then rebuild the probe locally? |
Same result:
|
Thanks @lgadban for pointing this out: https://nakryiko.com/posts/bpf-core-reference-guide/#guarding-potentially-failing-relocations |
After including vmlinux_arm.h:
and attempting a build I get:
|
Ahh ok this makes sense; a krpobe that uses the arguments needs to be recompiled for arm, as it uses different registers. |
|
Changing the build.sh from
to
worked.
But now when I run it I get:
|
Yeah we are currently hardcoding to x86 -- we definitely need to make the build more generic |
@nickschuetz try with |
That did it @yuval-k. A clean build of tcpconnect on arm64 without warnings or errors. It now runs as expected as well. |
tracking first-class arm64 support here: #55 |
Also need change vmlinux.h to arm64 version or building raise "error: incomplete definition of type 'struct user_pt_regs'". |
Note that this is a VM on a Mac M1 running Ubuntu 21.10 (GNU/Linux 5.13.0-23-generic aarch64). I compiled this bee binary on the same vm it's running on.
This same example runs on amd64 w/o issue.
The text was updated successfully, but these errors were encountered: