pkg/proc: Parse Goroutine ID in eBPF tracer (#2654)

This patch enables the eBPF tracer backend to parse the ID of the
Goroutine which hit the uprobe. This implementation is specific to AMD64
and will have to be generalized further in order to be used on other
architectures.
This commit is contained in:
Derek Parker
2021-08-24 05:53:27 -07:00
committed by GitHub
parent c379296cc8
commit 1b2f7f0051
25 changed files with 210 additions and 33 deletions

View File

@ -46,7 +46,7 @@ type ProcessInternal interface {
EraseBreakpoint(*Breakpoint) error
SupportsBPF() bool
SetUProbe(string, []ebpf.UProbeArgMap) error
SetUProbe(string, int64, []ebpf.UProbeArgMap) error
// DumpProcessNotes returns ELF core notes describing the process and its threads.
// Implementing this method is optional.