3 ms·
I wrote a not very well known LuaJIT to BPF compiler as a part of bcc precisely because of this. It doesn't depend on anything besides LuaJIT (no LLVM, no C, no
by vavrusa 8y ago
I wrote a not very well known LuaJIT to BPF compiler as a part of bcc precisely because of this. It doesn't depend on anything besides LuaJIT (no LLVM, no C, no libbpf, etc). Caveats: it's Lua, it doesn't fast track all the latest from bcc as it's a "for fun" project.
https://github.com/iovisor/bcc/tree/master/src/lua#luajit-bpf-compiler https://github.com/iovisor/bcc/tree/master/src/lua#luajit-bp...
- any1 8y agoThanks for sharing this, I will look into it. We have luajit on our system so this might be just what I need.