Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Patch ¶
type Patch struct {
// contains filtered or unexported fields
}
Patch is used to modify functions at runtime.
func NewPatch ¶
NewPatch patches the fn using the provided .so file. soFile must be the path to a .so file and addr must be the index of the byte in the file where the function you want to patch with starts. fn *must* be a function, *not* a method.
Click to show internal directories.
Click to hide internal directories.