syms

package
v0.0.0-...-0fcddf3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DemangleType

type DemangleType string
const (
	DemangleNone       DemangleType = "NONE"
	DemangleSimplified DemangleType = "SIMPLIFIED"
	DemangleTemplates  DemangleType = "TEMPLATES"
	DemangleFull       DemangleType = "FULL"
)

func (DemangleType) ToOptions

func (dt DemangleType) ToOptions() []demangle.Option

type EmptyResolver

type EmptyResolver struct{}

func (*EmptyResolver) Cleanup

func (*EmptyResolver) Cleanup()

func (*EmptyResolver) Refresh

func (*EmptyResolver) Refresh()

func (*EmptyResolver) Resolve

func (*EmptyResolver) Resolve(uint64) Symbol

type KernSym

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

func NewKernSym

func NewKernSym() (*KernSym, error)

func (*KernSym) Cleanup

func (s *KernSym) Cleanup()

func (*KernSym) Rebase

func (s *KernSym) Rebase(base uint64)

func (*KernSym) Refresh

func (s *KernSym) Refresh()

func (*KernSym) Resolve

func (s *KernSym) Resolve(addr uint64) Symbol

type ProcModule

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

func NewProcModule

func NewProcModule(name string, procmap *proc.Map, path *procPath, opts *SymbolOptions) *ProcModule

func (*ProcModule) Cleanup

func (m *ProcModule) Cleanup()

func (*ProcModule) Resolve

func (m *ProcModule) Resolve(addr uint64) string

type ProcModuleType

type ProcModuleType string
const (
	UNKNOWN ProcModuleType = "UNKNOWN"
	EXEC    ProcModuleType = "EXEC"
	SO      ProcModuleType = "SO"
	VDSO    ProcModuleType = "VDSO"
)

type ProcSymbol

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

func NewProcSymbol

func NewProcSymbol(pid int, opts *SymbolOptions) (*ProcSymbol, error)

func (*ProcSymbol) Cleanup

func (s *ProcSymbol) Cleanup()

func (*ProcSymbol) Refresh

func (s *ProcSymbol) Refresh()

func (*ProcSymbol) Resolve

func (s *ProcSymbol) Resolve(addr uint64) Symbol

type Resolver

type Resolver interface {
	Resolve(addr uint64) Symbol
	Cleanup()
	Refresh()
}

func NewResolver

func NewResolver(pid int, opts *SymbolOptions) (Resolver, error)

type Symbol

type Symbol struct {
	Start  uint64 `json:"start,omitempty"`
	Name   string `json:"name,omitempty"`
	Module string `json:"module,omitempty"`
}

type SymbolOptions

type SymbolOptions struct {
	DemangleType DemangleType
	UseDebugFile bool
}

type SymbolTable

type SymbolTable interface {
	Resolve(addr uint64) string
	Cleanup()
	IsDead() bool
	Size() int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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