Skip to main content

replace_ranges_for_pid

Function replace_ranges_for_pid 

Source
pub fn replace_ranges_for_pid(
    pid: u32,
    items: &[(u64, ProcModuleOffsetsValue)],
) -> Result<usize>
Expand description

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.