exec

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package goexec provides the utilities to analyse the executable code

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindExeSymbols added in v0.3.1

func FindExeSymbols(f *elf.File) (map[string]Sym, error)

func FindLibMaps

func FindLibMaps(pid int32) ([]*procfs.ProcMap, error)

func FindProcLanguage added in v0.3.1

func FindProcLanguage(pid int32, elfF *elf.File) svc.InstrumentableType

func LibPath

func LibPath(name string, maps []*procfs.ProcMap) *procfs.ProcMap

Types

type FileInfo

type FileInfo struct {
	Service svc.ID

	CmdExePath     string
	ProExeLinkPath string
	ELF            *elf.File
	Pid            int32
	Ppid           int32
	Ino            uint64
}

func FindExecELF

func FindExecELF(p *services.ProcessInfo, svcID svc.ID) (*FileInfo, error)

func (*FileInfo) ExecutableName

func (fi *FileInfo) ExecutableName() string

type Sym added in v0.3.1

type Sym struct {
	Off  uint64
	Len  uint64
	Prog *elf.Prog
}

Jump to

Keyboard shortcuts

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