AttachToProcessTree performs a one-shot scan of rootPID and its descendants for libcrypto/libpq mappings and attaches uprobes. Subsequent late-loaded libraries are handled by the implementation's own BPF-side discovery hook (see StartProcEventConsumer below).
(rootPID int)
| 55 | // implementation's own BPF-side discovery hook (see |
| 56 | // StartProcEventConsumer below). |
| 57 | AttachToProcessTree(rootPID int) error |
| 58 | |
| 59 | // StartProcEventConsumer spawns the ringbuf consumer goroutine |
| 60 | // that listens for library-mmap events from the BPF program and |