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: error parsing BPF object #903
Comments
This most likely means that write_trace.bpf.o is invalid. How are you compiling the ebpf code? |
With the approach of loading the object like: let mut bpf = Bpf::load_file("./write_trace.bpf.o")?;
Seems like what gets to the unwrap is undefined(/empty), but I don't know why |
Hey!
I'm trying to run an eBPF program, but i keep getting this error:
Rust program:
The commented code was my initial approach that also does not work, The code is done following one of your examples
eBPF program
The error pops when I run the command
cargo run
Thanks!
The text was updated successfully, but these errors were encountered: