irsymcache

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileIDFromStringNoQuotes

func FileIDFromStringNoQuotes(s string) (libpf.FileID, error)

func SymbolizeNativeFrame

func SymbolizeNativeFrame(
	resolver NativeSymbolResolver,

	mappingName libpf.String,
	addr libpf.AddressOrLineno,
	fileID libpf.FileID,
	symbolize func(si SourceInfo),
)

Types

type NativeSymbolResolver

type NativeSymbolResolver interface {
	ResolveAddress(file libpf.FileID, addr uint64) (SourceInfo, error)
	Cleanup()
}

type Options

type Options struct {
	Path        string
	SizeEntries uint32
}

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func NewFSCache

func NewFSCache(logger log.Logger, impl TableFactory, opt Options) (*Resolver, error)

func (*Resolver) Cleanup

func (c *Resolver) Cleanup()

func (*Resolver) Close

func (c *Resolver) Close() error

func (*Resolver) ExecutableKnown

func (c *Resolver) ExecutableKnown(id libpf.FileID) bool

func (*Resolver) ObserveExecutable

func (c *Resolver) ObserveExecutable(fid libpf.FileID, md *reporter.ExecutableMetadata) error

func (*Resolver) ReportExecutable

func (c *Resolver) ReportExecutable(md *reporter.ExecutableMetadata)

func (*Resolver) ResolveAddress

func (c *Resolver) ResolveAddress(
	fid libpf.FileID,
	addr uint64,
) (SourceInfo, error)

type SourceInfo

type SourceInfo struct {
	LineNumber   libpf.SourceLineno
	FunctionName libpf.String
	FilePath     libpf.String
}

type Table

type Table interface {
	Lookup(addr uint64) (SourceInfo, error)
	Close()
}

type TableFactory

type TableFactory interface {
	ConvertTable(src *os.File, dst *os.File) error
	OpenTable(path string) (Table, error)
	Name() string
}

func NewTableFactory

func NewTableFactory() TableFactory

type TableTableFactory

type TableTableFactory struct {
	Options []lidia.Option
}

func (TableTableFactory) ConvertTable

func (t TableTableFactory) ConvertTable(src, dst *os.File) error

func (TableTableFactory) Name

func (t TableTableFactory) Name() string

func (TableTableFactory) OpenTable

func (t TableTableFactory) OpenTable(path string) (Table, error)

Jump to

Keyboard shortcuts

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