objectfile

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	ObjectFileForProcess(pid uint32, m *profile.Mapping) (*MappedObjectFile, error)
}

func NewCache

func NewCache(size int) Cache

NewCache creates a new cache for object files.

type MappedObjectFile

type MappedObjectFile struct {
	*ObjectFile

	PID  uint32
	File string
}

func (MappedObjectFile) Root

func (f MappedObjectFile) Root() string

type ObjectFile

type ObjectFile struct {
	Path    string
	BuildID string
	// contains filtered or unexported fields
}

func Open

func Open(filePath string, m *profile.Mapping) (*ObjectFile, error)

Open opens the specified executable or library file from the given path.

func (*ObjectFile) ObjAddr

func (f *ObjectFile) ObjAddr(addr uint64) (uint64, error)

Jump to

Keyboard shortcuts

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