2 ms·
Thanks. Follow on question :-) Would it be useful to have an intermediate language "eBPF assembler" rather than do it in C or Rust?
by emmelaich 9y ago
Thanks. Follow on question :-)
Would it be useful to have an intermediate language "eBPF assembler" rather than do it in C or Rust?
- jvns 9y agoI don't know about assemblers exactly, but you might be interested in https://wkz.github.io/ply/ https://wkz.github.io/ply/, it's a smaller language inspired by dtrace. A nice thing about using C is that you can #include C header files, so you have access to all the constants defined in those files.
- emmelaich 9y agoThanks, this looks the closest to Solaris' dtrace. (as acknowledged in its docs)
- lathiat 9y agoThere is also work going on for Python to EBPF; the idea being that you can have both the script and the BPF code in Python like many of the BCC tools currently do: https://github.com/facebookresearch/py2bpf https://github.com/facebookresearch/py2bpf