pclntab

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindGoFunc

func FindGoFunc(ef *pfelf.File, goPCLnTabInfo *GoPCLnTabInfo, symtab *libpf.SymbolMap) (data []byte, goFuncVal uint64, err error)

func FindModuleData

func FindModuleData(ef *pfelf.File, goPCLnTabInfo *GoPCLnTabInfo, symtab *libpf.SymbolMap) (data []byte, address uint64, returnedErr error)

func HeaderSize

func HeaderSize() int

HeaderSize returns the minimal pclntab header size.

func SearchGoPclntab

func SearchGoPclntab(ef *pfelf.File) (data []byte, address uint64, err error)

Types

type GoPCLnTabInfo

type GoPCLnTabInfo struct {
	Address    uint64        // goPCLnTab address
	Data       []byte        // goPCLnTab data
	Version    HeaderVersion // gopclntab header version
	Offsets    TableOffsets
	GoFuncAddr uint64 // goFunc address
	GoFuncData []byte // goFunc data
	// contains filtered or unexported fields
}

func FindGoPCLnTab

func FindGoPCLnTab(ef *pfelf.File) (goPCLnTabInfo *GoPCLnTabInfo, err error)

type HeaderVersion

type HeaderVersion int

func (HeaderVersion) String

func (h HeaderVersion) String() string

type TableOffsets

type TableOffsets struct {
	FuncNameTabOffset uint64
	CuTabOffset       uint64
	FileTabOffset     uint64
	PcTabOffset       uint64
	FuncTabOffset     uint64
}

Jump to

Keyboard shortcuts

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