objectfile

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoFile = errors.New("cannot load object file for mappings with empty file")

Functions

func NewCache

func NewCache(size int, profiligDuration time.Duration) *cache

NewCache creates a new cache for object files.

Types

type MappedObjectFile

type MappedObjectFile struct {
	*ObjectFile

	PID  int
	File string
}

func (MappedObjectFile) Root

func (f MappedObjectFile) Root() string

type ObjectFile

type ObjectFile struct {
	Path    string
	BuildID string
	ElfFile *elf.File
	// 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