process

package
v0.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExePathEnvVar = "OTEL_TARGET_EXE"
)

Variables

This section is empty.

Functions

func NewAnalyzer

func NewAnalyzer() *processAnalyzer

Types

type AllocationDetails added in v0.6.0

type AllocationDetails struct {
	Addr    uint64
	EndAddr uint64
}

type Func

type Func struct {
	Name          string
	Offset        uint64
	ReturnOffsets []uint64
}

func FindFunctionsStripped added in v0.6.4

func FindFunctionsStripped(elfF *elf.File, relevantFuncs map[string]interface{}) ([]*Func, error)

func FindFunctionsUnStripped added in v0.6.4

func FindFunctionsUnStripped(elfF *elf.File, relevantFuncs map[string]interface{}) ([]*Func, error)

type TargetArgs

type TargetArgs struct {
	ExePath string
	Stdout  bool
}

func ParseTargetArgs

func ParseTargetArgs() *TargetArgs

func (*TargetArgs) Validate

func (t *TargetArgs) Validate() error

type TargetDetails

type TargetDetails struct {
	PID               int
	Functions         []*Func
	GoVersion         *version.Version
	Libraries         map[string]string
	AllocationDetails *AllocationDetails
}

func (*TargetDetails) GetFunctionOffset

func (t *TargetDetails) GetFunctionOffset(name string) (uint64, error)

func (*TargetDetails) GetFunctionReturns

func (t *TargetDetails) GetFunctionReturns(name string) ([]uint64, error)

func (*TargetDetails) IsRegistersABI

func (t *TargetDetails) IsRegistersABI() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL