Expand description
Dynamic runtime JIT compilation of regex and literal components. JIT Compiler for dynamic eBPF filter generation.
Generates raw instruction sequences allowing structural searches to run natively in kernel-space without bridging context switching.
Structs§
Enums§
- Compile
Error - Error returned when BPF compilation fails.
Constants§
- MAX_
BPF_ PATTERN_ LEN - Maximum pattern length the BPF verifier can handle.
Functions§
- compile_
alternation - Compile a single-byte alternation matcher by evaluating alternatives in sequence.
- compile_
char_ class - A character class range for BPF compilation.
- compile_
character_ class - Compile a character class (e.g.,
a-z0-9) into BPF byte-comparison logic. - compile_
literal_ search - Compile a literal search pattern into BPF instructions.
- compile_
with_ limit - Validates generated instruction count before assembling BPF code.