Structs§
- 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
Constants§
- ALLOWED_
PIDS_ 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
- cleanup_
pinned_ proc_ offsets - Remove the pinned proc_module_offsets map and its per-process directory (best effort). Safe to call multiple times; missing paths are ignored.
- ensure_
pinned_ allowed_ pids_ exists - Ensure the pinned allowed_pids 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.
- 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
- 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.