Crate solana_rbpf

source ·
Expand description

Virtual machine and JIT compiler for eBPF programs.

Modules

  • Aligned memory
  • This module translates eBPF assembly language to binary.
  • Functions in this module are used to handle eBPF programs with a higher level representation, for example to disassemble the code into a human-readable format.
  • This module contains all the definitions related to eBPF, and some functions permitting to manipulate eBPF instructions.
  • This module relocates a BPF ELF
  • Dependency-less 64 bit ELF parser
  • Internal ELF parser abstraction.
  • This module contains all the definitions related to eBPF, and some functions permitting to manipulate eBPF instructions.
  • This module defines memory regions
  • Module provides API to create eBPF programs by Rust programming language
  • Interpreter for eBPF programs.
  • This module defines memory regions
  • Common interface for built-in and user supplied programs
  • Static Byte Code Analysis
  • This module implements some built-in syscalls that can be called from within an eBPF program.
  • This “verifier” performs simple checks when the eBPF program is loaded into the VM (before it is interpreted or JIT-compiled). It has nothing to do with the much more elaborated verifier inside Linux kernel. There is no verification regarding the program flow control (should be a Direct Acyclic Graph) or the consistency for registers usage (the verifier of the kernel assigns types to the registers and is much stricter).
  • Virtual machine for eBPF programs.

Macros