Skip to main content

Module pinned_bpf_maps

Module pinned_bpf_maps 

Source

Structs§

BpffsPruneEntry
BpffsPruneOptions
BpffsPruneReport
PidAliasValue
Value for the pinned pid_aliases map.
ProcModuleKey
Key for the pinned proc_module_offsets map.
ProcModuleOffsetsValue
Value for the pinned proc_module_offsets map.
ProcModuleRangeKey
Key for the pinned proc_module_ranges map.
ProcModuleRangeMeta
Value for the pinned proc_module_range_meta map.
ProcModuleRangeValue
Value for the pinned proc_module_ranges map.

Enums§

BpffsPruneMode
BpffsPruneStatus

Constants§

ALLOWED_PIDS_MAP_NAME
BT_MODULE_ROW_RANGES_MAP_NAME
BT_UNWIND_ROWS_MAP_NAME
PID_ALIASES_MAP_NAME
PROC_MODULE_RANGES_MAP_NAME
PROC_MODULE_RANGE_META_MAP_NAME
PROC_OFFSETS_MAP_NAME
Map name as embedded in BPF object
SYSMON_MAP_CHANGE_UNFILTERED_MAP_NAME
TARGET_EXEC_COMM_MAP_NAME

Functions§

allowed_pid_exists
Return whether a PID is already present in the allowed_pids pinned map.
allowed_pids_pin_path
Compute the bpffs pin path for the allowed_pids map for current process
bpffs_mount_hint_for_pin_path
bt_module_row_ranges_pin_path
bt_unwind_rows_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_backtrace_cfi_maps_exist
Ensure the session-shared backtrace CFI maps exist under the per-process pin directory. These maps are shared by all trace loaders in one GhostScope process when backtrace rows are module-normalized.
ensure_pinned_pid_aliases_exists
Ensure the pinned pid_aliases map exists under the per-process directory.
ensure_pinned_proc_module_ranges_exist
Ensure the pinned module range maps exist 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.
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_module_range_meta_pin_path
Compute the bpffs pin path for the proc_module_range_meta map.
proc_module_ranges_max_entries
proc_module_ranges_pin_path
Compute the bpffs pin path for the proc_module_ranges map.
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.
purge_ranges_for_pid
Purge all module range index entries for a given pid.
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.
replace_ranges_for_pid
Replace the raw-address range index for a PID using a full /proc/<pid>/maps snapshot. The inactive slot is rewritten first, then the PID meta entry is flipped so eBPF readers either see the old complete snapshot or the new one.