uprobe.go 534 B

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