Open utterances-bot opened 3 years ago
thanks for your articles Kevin! it helped me a lot to understand eBPF and XDP. it is possible to write BPF programs in Go instead of C and Rust ? i searched a lot but didn't find anything :( all of Go libraries out there can only load Compiled BPF programs :(
I don't know of any Go BPF compilers, but that is not my area of expertise. I believe the Go runtime is the problem. Both C and Rust don't have runtimes (or rather extremely minimal ones).
HI Kevin, I'm just starting to look into ebpfs, and I was wondering if redbpf allows for CO-RE development - I went through a few issues and everyone seems to talk about targeting kernels to develop against
@DevasiaThomas apologies for not seeing the comment earlier! I haven't used the latest version of redbpf, but at least previously they did not support CO-RE. There is another BPF library in Rust spaces making waves called aya which was created by one of the original creators of redbpf. I don't know if they support CO-RE either, however development has been very active there and it'd be a good place to look.
Cool thanks for replying regardless. At this point I have already started dev'ing with with libbpf-rs . I did come across aya when doing some light reading. I guess, I'll see how much easier it is to code with aya when I have some downtime :)
Kevin K's Blog - eBPF and Rust (Part 4)
https://kbknapp.dev/ebpf-part-iv/