uprobe.go 519 B

123456789101112131415161718192021
  1. package tracer
  2. type UprobeLocation int
  3. const (
  4. AtEntry UprobeLocation = iota
  5. AtRet
  6. AtGoroutineExit
  7. AtGoroutineNewproc1
  8. AtGoroutineNewproc1Ret
  9. )
  10. type Uprobe struct {
  11. Funcname string
  12. Address uint64 // absolute address of the function entry
  13. AbsOffset uint64 // absolute offset to the binary entry (ELF file beginning)
  14. RelOffset uint64 // relative to the function entry
  15. Location UprobeLocation // location of the probe
  16. // FetchArgs []*FetchArg // fetch arguments
  17. Wanted bool
  18. }