Structs§
- Bpffs
Prune Entry - Bpffs
Prune Options - Bpffs
Prune Report - PidAlias
Value - Proc
Module Key - Key for proc_module_offsets map: { pid:u32, pad:u32, cookie_lo:u32, cookie_hi:u32 }
- Proc
Module Offsets Value - Value for proc_module_offsets map - section offsets for a module
Enums§
Constants§
- ALLOWED_
PIDS_ MAP_ NAME - PID_
ALIASES_ MAP_ NAME - PROC_
OFFSETS_ MAP_ NAME - Map name as embedded in BPF object
Functions§
- allowed_
pids_ pin_ path - Compute the bpffs pin path for the allowed_pids map for current process
- bpffs_
mount_ hint_ for_ pin_ path - cleanup_
current_ pinned_ maps - Remove the current process’s pinned maps and its per-process directory (best effort). Safe to call multiple times; missing paths are ignored.
- cleanup_
stale_ pinned_ maps_ root - Remove stale per-process pinned map directories whose PID no longer exists.
- ensure_
pinned_ allowed_ pids_ exists - Ensure the pinned allowed_pids map exists under the per-process directory.
- ensure_
pinned_ pid_ aliases_ exists - Ensure the pinned pid_aliases map exists under the per-process directory.
- ensure_
pinned_ proc_ offsets_ exists - Ensure the pinned global proc_module_offsets map exists at the standard path. If not present, create and pin it with the specified capacity.
- insert_
allowed_ pid - Insert a PID into the allowed_pids pinned map.
- insert_
offsets_ for_ pid - Open the pinned global proc_module_offsets map and insert entries via raw bpf syscall.
- insert_
pid_ alias - Insert a runtime-pid -> proc-pid alias into the pinned pid_aliases map.
- pid_
aliases_ pin_ path - Compute the bpffs pin path for the pid_aliases map for current process.
- proc_
offsets_ pin_ dir - Pin directory containing the per-process offsets map
- proc_
offsets_ pin_ path - Compute the bpffs pin path for the proc_module_offsets map for current process Using per-process directory avoids conflicts across multiple GhostScope instances
- prune_
pinned_ maps_ root - purge_
offsets_ for_ pid - Purge all entries for a given pid in the pinned proc_module_offsets map.
- remove_
allowed_ pid - Remove a PID from the allowed_pids pinned map.
- remove_
pid_ alias - Remove a runtime-pid alias from the pinned pid_aliases map.