symbolizer

package
v0.0.0-...-af24b05 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 36

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

Cache caches symbolization results from Symbolizer in a thread-safe way.

func (*Cache) Symbolize

func (c *Cache) Symbolize(inner func(string, uint64) ([]Frame, error), bin string, pc uint64) ([]Frame, error)

type Frame

type Frame struct {
	PC     uint64
	Func   string
	File   string
	Line   int
	Inline bool
}

type Interner

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

Interner allows to intern/deduplicate strings. Interner.Do semantically returns the same string, but physically it will point to an existing string with the same contents (if there was one passed to Do in the past). Interned strings are also "cloned", that is, if the passed string points to a large buffer, it won't after interning (and won't prevent GC'ing of the large buffer). The type is not thread-safe.

func (*Interner) Do

func (in *Interner) Do(s string) string

type Symbol

type Symbol struct {
	Addr uint64
	Size int
}

type Symbolizer

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

func NewSymbolizer

func NewSymbolizer(target *targets.Target) *Symbolizer

func (*Symbolizer) Close

func (s *Symbolizer) Close()

func (*Symbolizer) ReadRodataSymbols

func (s *Symbolizer) ReadRodataSymbols(bin string) (map[string][]Symbol, error)

ReadRodataSymbols returns list of rodata symbols in the binary bin.

func (*Symbolizer) ReadTextSymbols

func (s *Symbolizer) ReadTextSymbols(bin string) (map[string][]Symbol, error)

ReadTextSymbols returns list of text symbols in the binary bin.

func (*Symbolizer) Symbolize

func (s *Symbolizer) Symbolize(bin string, pc uint64) ([]Frame, error)

func (*Symbolizer) SymbolizeArray

func (s *Symbolizer) SymbolizeArray(bin string, pcs []uint64) ([]Frame, error)

Jump to

Keyboard shortcuts

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