symtab

package
v0.0.0-...-baa3643 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 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 BCCSymTable

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

func NewBCCSymbolTable

func NewBCCSymbolTable(pid int) *BCCSymTable

func (*BCCSymTable) Close

func (t *BCCSymTable) Close()

func (*BCCSymTable) Resolve

func (t *BCCSymTable) Resolve(addr uint64, refresh bool) Symbol

type GoSymbolTable

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

func NewGoSymbolTable

func NewGoSymbolTable(file string, fallback *func() SymbolTable) (*GoSymbolTable, error)

if c { ... } else { ... return } can be simplified to if !c { ... return } revive:disable:early-return

func (*GoSymbolTable) Close

func (g *GoSymbolTable) Close()

func (*GoSymbolTable) Resolve

func (g *GoSymbolTable) Resolve(addr uint64, refresh bool) Symbol

type SimpleSymbolTable

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

func NewSimpleSymbolTable

func NewSimpleSymbolTable(symbols []SimpleSymbolTableEntry) *SimpleSymbolTable

func (*SimpleSymbolTable) Rebase

func (t *SimpleSymbolTable) Rebase(base uint64)

func (*SimpleSymbolTable) Resolve

func (t *SimpleSymbolTable) Resolve(addr uint64) string

type SimpleSymbolTableEntry

type SimpleSymbolTableEntry struct {
	Entry uint64
	End   uint64
	Name  string
}

type SymSession

type SymSession struct {
	SymCache    *SymbolCache
	RoundNumber int
	CacheSize   int
}

func NewSymSession

func NewSymSession(cacheSize int) (*SymSession, error)

func (*SymSession) WalkStack

func (s *SymSession) WalkStack(line *bytes.Buffer, stack []byte, pid uint32, userspace bool)

type Symbol

type Symbol struct {
	Name   string
	Module string
	Offset uint64
}

type SymbolCache

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

func NewSymbolCache

func NewSymbolCache(cacheSize int) (*SymbolCache, error)

func (*SymbolCache) BccResolve

func (sc *SymbolCache) BccResolve(pid uint32, addr uint64, roundNumber int) Symbol

func (*SymbolCache) Clear

func (sc *SymbolCache) Clear()

func (*SymbolCache) GetOrCreateCacheEntry

func (sc *SymbolCache) GetOrCreateCacheEntry(pid pidKey) *symbolCacheEntry

type SymbolTable

type SymbolTable interface {
	Resolve(addr uint64, refresh bool) Symbol
	Close()
}

Jump to

Keyboard shortcuts

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