ksyms

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 10 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.3.2

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

func (*Ksyms) GetKmod added in v1.3.2

func (k *Ksyms) GetKmod(name string) (string, error)

func (*Ksyms) IsAvailable added in v1.3.2

func (k *Ksyms) IsAvailable(name string) bool

Jump to

Keyboard shortcuts

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