process

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 17 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 Func

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

type TargetArgs

type TargetArgs struct {
	ExePath string
}

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
}

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

Jump to

Keyboard shortcuts

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