MCPcopy
hub / github.com/keploy/keploy / AttachToProcessTree

Method AttachToProcessTree

pkg/agent/proxy/cbshim/iface.go:57–57  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

StartProxyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected