unwinder

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package unwider provides unwinder for Go call stacks.

https://www.grant.pizza/blog/go-stack-traces-bpf/

Package unwider provides unwinder for Go call stacks.

https://www.grant.pizza/blog/go-stack-traces-bpf/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	File string
	Line int
	Func *gosym.Func
}

func (*Entry) String

func (e *Entry) String() string

type ObjectFile added in v0.2.0

type ObjectFile interface {
	Section(name string) Section
	Close() error
}

type Section added in v0.2.0

type Section interface {
	io.ReaderAt
	Data() ([]byte, error)
	Addr() uint64
}

type Unwinder

type Unwinder interface {
	Symtab() *gosym.Table
	BuildInfo() *buildinfo.BuildInfo
	Unwind(pid int, pc, bp uintptr) ([]Entry, error)
}

func New

func New(binary string) (Unwinder, error)