Extending eBPF to GPU Device and Driver Contexts
summary
Prototypes offload eBPF into GPU device contexts by compiling eBPF to PTX/SPIR-V and adding a verifier, helpers and map support built on bpftime, with driver-side verified attach points for CUDA device function entry/exit, thread begin/end, memory ops and scheduling hooks. Implementation includes gpu_ext and gpu_ext-kernel-modules, roughly 100 lines of instrumentation inside the NVIDIA open driver, and shows runtime wins (about 3–10× faster than NVBit, 4× speedup in some tests and 1.5× on VRM). Current limits: injection uses LD_PRELOAD or library injection before kernel launch and cannot attach into an already-running GPU kernel.
AI-written summary · about
