Documentation
¶
Index ¶
- func AddressToOffset(f *elf.File, addr uint64) (uint32, error)
- func SymbolToOffset(file, symbol string) (uint32, error)
- type EBPFContext
- func (ctx *EBPFContext) AttachURetprobe(pid int, name string, offset uint32) error
- func (ctx *EBPFContext) AttachUprobe(pid int, name string, offset uint32) error
- func (ctx *EBPFContext) Close()
- func (ctx *EBPFContext) GetBufferedTracepoints() []RawUProbeParams
- func (ctx *EBPFContext) UpdateArgMap(key uint64, goidOffset int64, args []UProbeArgMap, gAddrOffset uint64, ...) error
- type RawUProbeParam
- type RawUProbeParams
- type UProbeArgMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SymbolToOffset ¶
Types ¶
type EBPFContext ¶
type EBPFContext struct {
}
func LoadEBPFTracingProgram ¶
func LoadEBPFTracingProgram(path string) (*EBPFContext, error)
func (*EBPFContext) AttachURetprobe ¶
func (ctx *EBPFContext) AttachURetprobe(pid int, name string, offset uint32) error
func (*EBPFContext) AttachUprobe ¶
func (ctx *EBPFContext) AttachUprobe(pid int, name string, offset uint32) error
func (*EBPFContext) Close ¶
func (ctx *EBPFContext) Close()
func (*EBPFContext) GetBufferedTracepoints ¶
func (ctx *EBPFContext) GetBufferedTracepoints() []RawUProbeParams
func (*EBPFContext) UpdateArgMap ¶
func (ctx *EBPFContext) UpdateArgMap(key uint64, goidOffset int64, args []UProbeArgMap, gAddrOffset uint64, isret bool) error
type RawUProbeParam ¶
type RawUProbeParams ¶
type RawUProbeParams struct {
FnAddr int
GoroutineID int
IsRet bool
InputParams []*RawUProbeParam
ReturnParams []*RawUProbeParam
}
type UProbeArgMap ¶
type UProbeArgMap struct {
Offset int64 // Offset from the stackpointer.
Size int64 // Size in bytes.
Kind reflect.Kind // Kind of variable.
Pieces []int // Pieces of the variables as stored in registers.
InReg bool // True if this param is contained in a register.
Ret bool // True if this param is a return value.
}
Click to show internal directories.
Click to hide internal directories.