eunomia-bpf / bpftime

Userspace eBPF runtime for Observability, Network & General Extensions Framework
https://eunomia.dev/bpftime/
MIT License
833 stars 78 forks source link

llvm-jit: patch lddw helpers at compile time #323

Closed Officeyutong closed 3 months ago

Officeyutong commented 3 months ago

This PR updated llvm-jit so it will execute lddw helpers (https://docs.kernel.org/bpf/standardization/instruction-set.html#id33) at runtime and hardcodes generated values into LLVM IR, thus reducing runtime oveahead

Also set default implementation for map_by_fd and map_by_idx: returning its input value