ksyms

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FnOffset

type FnOffset struct {
	SymName string
	Offset  uint64
}

FnOffset is a function location (function name + offset)

func (*FnOffset) ToString

func (fo *FnOffset) ToString() string

ToString returns a string representation of FnOffset

type Ksyms

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

Ksyms is a structure for kernel symbols

func KernelSymbols added in v1.0.0

func KernelSymbols() (*Ksyms, error)

func NewKsyms

func NewKsyms(procfs string) (*Ksyms, error)

NewKsyms creates a new Ksyms structure (by reading procfs/kallsyms)

func (*Ksyms) GetFnOffset

func (k *Ksyms) GetFnOffset(addr uint64) (*FnOffset, error)

GetFnOffset -- returns the FnOffset for a given address

Jump to

Keyboard shortcuts

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