kernel

package
v0.0.0-...-b6b98ab Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BTFFormat

func BTFFormat(fstring [6]string, fname string, args [6]uint64) string

func BTFFormatBytes

func BTFFormatBytes(fname string, idx int, bytes []byte) string

func BTFGetFuncProto

func BTFGetFuncProto(fname string) *btf.FuncProto

func BTFPrepare

func BTFPrepare() (err error)

func BpfProgSymbol

func BpfProgSymbol(ID int) (name string, err error)

func BpfSrc

func BpfSrc(prog string, pc uint64) string

func GetHelpersFromBpfPrograms

func GetHelpersFromBpfPrograms(ctx context.Context) (helpers []string, err error)

func Kaddr

func Kaddr(sym string) uint64

func RefreshKallsyms

func RefreshKallsyms()

Types

type BpfSource

type BpfSource struct {
	Pc  uint64
	Src string
}

type Ins

type Ins struct {
	Pc        string   `json:"pc"`
	Operation string   `json:"operation"`
	Opcodes   []string `json:"opcodes"`
	Src       string   `json:"src"`
}

type Prog

type Prog struct {
	Id   int    `json:"id"`
	Type string `json:"type"`
	Tag  string `json:"tag"`
}

type ProgDetail

type ProgDetail struct {
	Name  string `json:"name"`
	Insns []Ins  `json:"insns"`
}

type Symbol

type Symbol struct {
	Name string
	Addr uint64
}

func NearestSymbol

func NearestSymbol(addr uint64) Symbol

Jump to

Keyboard shortcuts

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