Create a new tracker instance This will: - Initialize the BPF subsystem - Bump memlock limits - Attach uprobes to all libc instances - Attach tracepoints for fork tracking
()
| 16 | /// - Attach uprobes to all libc instances |
| 17 | /// - Attach tracepoints for fork tracking |
| 18 | pub fn new() -> Result<Self> { |
| 19 | let mut instance = Self::new_without_allocators()?; |
| 20 | |
| 21 | let allocators = AllocatorLib::find_all()?; |
| 22 | debug!("Found {} allocator instance(s)", allocators.len()); |
| 23 | instance.attach_allocators(&allocators)?; |
| 24 | |
| 25 | Ok(instance) |
| 26 | } |
| 27 | |
| 28 | pub fn new_without_allocators() -> Result<Self> { |
| 29 | // Bump memlock limits |
nothing calls this directly
no test coverage detected