cgrouptrackmap

package
v0.8.20 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CgrpTrackingKey

type CgrpTrackingKey struct {
	CgrpId uint64
}

func (*CgrpTrackingKey) DeepCopyMapKey

func (k *CgrpTrackingKey) DeepCopyMapKey() bpf.MapKey

func (*CgrpTrackingKey) GetKeyPtr

func (k *CgrpTrackingKey) GetKeyPtr() unsafe.Pointer

func (*CgrpTrackingKey) NewValue

func (k *CgrpTrackingKey) NewValue() bpf.MapValue

func (*CgrpTrackingKey) String

func (k *CgrpTrackingKey) String() string

type CgrpTrackingValue

type CgrpTrackingValue struct {
	/* State of cgroup */
	State int32 `align:"state"`

	/* Unique id for the hierarchy this is mostly for cgroupv1 */
	HierarchyId uint32 `align:"hierarchy_id"`

	/* The depth this cgroup is at - We don't track ancestors as they may change */
	Level uint32 `align:"level"`

	Pad uint32 `align:"pad"`

	/* Cgroup kernfs_node name */
	Name [processapi.CGROUP_NAME_LENGTH]byte `align:"name"`
}

func LookupTrackingCgroup

func LookupTrackingCgroup(mapPath string, cgrpid uint64) (*CgrpTrackingValue, error)

func (*CgrpTrackingValue) DeepCopyMapValue

func (v *CgrpTrackingValue) DeepCopyMapValue() bpf.MapValue

func (*CgrpTrackingValue) GetValuePtr

func (v *CgrpTrackingValue) GetValuePtr() unsafe.Pointer

func (*CgrpTrackingValue) String

func (v *CgrpTrackingValue) String() string

Jump to

Keyboard shortcuts

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