cgtracker

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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