kbknapp / blog-kbknapp-dev

Articles from kbknapp.dev blog in Markdown along with Utterances comment issues
0 stars 0 forks source link

ebpf-part-iv/ #1

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Kevin K's Blog - eBPF and Rust (Part 4)

https://kbknapp.dev/ebpf-part-iv/

massoudasadi commented 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 :(

kbknapp commented 3 years ago

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).

DevasiaThomas commented 2 years ago

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

kbknapp commented 2 years ago

@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.

DevasiaThomas commented 2 years ago

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 :)