cgtracker

package
v1.4.0-pre.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MapEntries = 16 * 1024
	MapName    = "tg_cgtracker_map"
)

Variables

This section is empty.

Functions

func AddCgroupTrackerPath

func AddCgroupTrackerPath(cgRoot string) error

func Lookup

func Lookup(cgID uint64) (uint64, error)

func RegisterCgroupTracker

func RegisterCgroupTracker(sensor *sensors.Sensor) (*sensors.Sensor, error)

Types

type Map

type Map struct {
	*ebpf.Map
}

cgtracker map

func OpenMap

func OpenMap(fname string) (Map, error)

func (*Map) Add

func (m *Map) Add(tracked, tracker uint64) error

func (*Map) AddCgroupTrackerPath

func (m *Map) AddCgroupTrackerPath(trackerPath string) error

func (*Map) Dump

func (m *Map) Dump() (map[uint64][]uint64, error)

Jump to

Keyboard shortcuts

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