Skip to content

luaebpf v0.1

Latest

Choose a tag to compare

@lneto lneto released this 22 Nov 16:27

The first release of luaebpf, the Lua to eBPF compiler of Lunatik, as it leaves Lunatik's tree for a repository of its own (luainkernel/lunatik#2598). It is experimental: the compiler, the modules a program file's body requires and the part of Lua it compiles may change in a minor release.

Highlights

Requirements

  • Lunatik at the commit that mounts this release at luaebpf/, luainkernel/lunatik@18388fb67 or later, whose make builds the compiler and its loader and whose make install installs them.
  • libbpf 1.0 or later, which the loader is built against, and the kernel's BTF, /sys/kernel/btf/vmlinux.

Known issues

  • Kernel scripts installed by a Lunatik older than the compiler stop lunatik bpf at an index error inside the compiler (#9).
  • A method call in a function of more than 256 constants is refused as a table read (#10).
  • A function that compiles past 32767 instructions fails in string.pack, with a message that names the compiler's file and not the program file's line (#4).
  • On a big-endian kernel, a struct member typed __le16, __le32 or __le64 reads in the kernel's order (#8).
  • Indexing a value that is not a table is refused naming it "a table" (#6).

Contributors

  • Lourival Vieira Neto (@lneto)