Add bpf_get_prandom_u32 helper

This commit is contained in:
Pragyansh Chaturvedi
2025-10-27 01:08:56 +05:30
parent 5c1e7103a6
commit 5cbd9a531e
3 changed files with 30 additions and 1 deletions

View File

@ -1,7 +1,7 @@
from .helper_registry import HelperHandlerRegistry
from .helper_utils import reset_scratch_pool
from .bpf_helper_handler import handle_helper_call, emit_probe_read_kernel_str_call
from .helpers import ktime, pid, deref, comm, probe_read_str, XDP_DROP, XDP_PASS
from .helpers import ktime, pid, deref, comm, probe_read_str, random, XDP_DROP, XDP_PASS
# Register the helper handler with expr module
@ -65,6 +65,7 @@ __all__ = [
"deref",
"comm",
"probe_read_str",
"random",
"XDP_DROP",
"XDP_PASS",
]