Versions in this module Expand all Collapse all v0 v0.1.0 Oct 4, 2021 Changes in this version + var DEBUG = "" + var ErrPatchedAlready = errors.New("patched already") + var ErrPointNotFound = errors.New("function point not found") + var ErrTypeUnsupported = errors.New("type unsupported") + var ErrUnsupportAction = errors.New("unsupport action") + var ErrUnsupportedType = errors.New("unsupported type") + func CopyToLocation(location uintptr, data []byte) + func DwarfTree(dw *dwarf.Data) (map[string]*godwarf.Tree, error) + func GetPtr(t interface{}) uintptr + func LoadTree(off dwarf.Offset, dw *dwarf.Data) (*godwarf.Tree, error) + func MakeFunc(tree *godwarf.Tree, dw *dwarf.Data) (reflect.Type, error) + func MakeType(typ godwarf.Type, dw *dwarf.Data) (reflect.Type, error) + func MprotectCrossPage(addr uintptr, length int, prot int) + func PageStart(ptr uintptr) uintptr + func RawMemoryAccess(p uintptr, length int) []byte + type Action string + const DELAY + const PANIC + const RETURN + const SET + type ActionFunc func(*Runtime, Request) (*Guard, error) + type DelayPoint struct + Val int + type Guard struct + func Patch(target, replacement interface{}) *Guard + func (g *Guard) Restore() + func (g *Guard) Unpatch() + type HijackPoint struct + Action Action + Func string + type PanicPoint struct + Val string + type Request map[string]interface + type ReturnPoint struct + Index int + Val interface{} + type Runtime struct + C chan func() + M sync.Map + func New(pid int) (*Runtime, error) + func (r *Runtime) Funcs() []string + func (r *Runtime) Hijack(m Request) error + func (r *Runtime) Points() []string + func (r *Runtime) Release(fn string) + func (r *Runtime) Run(ctx context.Context) + type SetPoint struct + Index int + Val interface{} + type Tree struct + Children []*Tree + Offset dwarf.Offset + Tag dwarf.Tag