ksym

package
v0.9.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFunctionNotFound = errors.New("kernel function not found")

Functions

This section is empty.

Types

type Cache added in v0.6.0

type Cache struct {
	Stats CacheStats
	// contains filtered or unexported fields
}

func NewKsymCache

func NewKsymCache(logger log.Logger) *Cache

func (*Cache) Resolve added in v0.6.0

func (c *Cache) Resolve(addrs map[uint64]struct{}) (map[uint64]string, error)

TODO(kakkoyun): https://github.com/aquasecurity/libbpfgo/blob/main/helpers/kernel_symbols.go

type CacheStats added in v0.8.0

type CacheStats struct {
	Hits  int
	Total int
}

func (CacheStats) HitRate added in v0.8.0

func (c CacheStats) HitRate() float64

func (CacheStats) String added in v0.8.0

func (c CacheStats) String() string

Jump to

Keyboard shortcuts

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