Skip to main content

Module compiler

Module compiler 

Source
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§

CharRange

Enums§

CompileError
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.