Skip to content

Compiled to native machine code

Step 7 of 9Concept
RUNTIME
native CPU
OVERHEAD
nanoseconds
ARCHS
x86 / ARM64
INTERPRETER
bypassed
  • syscall / bpf() load
  • verified native exec
  • kernel event / hook
Kernel Space & eBPF VM, step 7 of 9

Once verified, the JIT compiler translates generic 64-bit eBPF instructions straight into native x86-64, ARM64, or RISC-V machine code mapped into kernel memory.

Because eBPF registers map almost one-to-one onto physical CPU registers, verified hooks execute in hundreds of nanoseconds—fast enough for line-rate 40 Gbps packet paths.

What changed

  • Portable ELF bytecode → native x86-64 / ARM64 ops
  • Per-instruction VM loop → direct CPU execution
  • Read-only .rodata maps → immediate JIT constants

Type to search…

↑↓ navigate↵ selectEsc close