# Functions
CheckCgroup2UnifiedMode return whether it is in cgroupv2 env.
GetAbsCgroupPath get absolute cgroup path for relative cgroup path.
No description provided by the author
GetCgroupRootPath get cgroupfs root path compatible with v1 and v2.
GetContainerAbsCgroupPath returns absolute cgroup path for container level.
GetContainerRelativeCgroupPath returns relative cgroup path for container level.
GetKubernetesAbsCgroupPath returns absolute cgroup path for kubernetes with the given suffix without considering whether the path exists or not.
GetKubernetesAnyExistAbsCgroupPath returns any absolute cgroup path that exists for kubernetes.
GetKubernetesAnyExistRelativeCgroupPath returns any relative cgroup path that exists for kubernetes.
GetKubernetesCgroupRootPathWithSubSys returns all Cgroup paths to run container for kubernetes, and the returned values are merged with subsys.
GetPodAbsCgroupPath returns absolute cgroup path for pod level.
InitKubernetesCGroupPath can only be called once to init dynamic cgroup path configurations.
InstrumentedWriteFileIfChange wraps WriteFileIfChange with audit logic.
No description provided by the author
IsCPUIdleSupported checks if cpu idle supported by checking if the cpu.idle interface file exists.
ParseCgroupNumaValue parse cgroup numa stat files like memory.numa_stat, the format is like "anon N0=1686843392 N1=1069957120 N2=316747776 N3=163962880".
No description provided by the author
# Constants
CgroupFSMountPoint default cgroup mount point.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CgroupSubsysNetCls is the net_cls sub-system.
CgroupTasksFileV1 thread id file for cgroupv1.
CgroupTasksFileV2 thread id file for cgroupv2.
No description provided by the author
No description provided by the author
DefaultSelectedSubsys cgroupv1 default select subsys.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
CgroupMetrics cgroup metrics.
CPUData set cgroup cpu data.
CPUMetrics get cpu cgroup metrics.
CPUSetData set cgroup cpuset data.
CPUSetStats get cgroup cpuset data.
CPUStats get cgroup cpu data.
IOCostModelData is the io.cost.model data supported in cgroupv2.
IOCostQoSData is the io.cost.qos data supported in cgroupv2.
MemoryData set cgroup memory data.
MemoryMetrics get memory cgroup metrics.
MemoryNumaMetrics get per-numa level memory cgroup metrics.
MemoryPressure get cgroup memory pressure.
MemoryStats get cgroup memory data.
NetClsData is the net class data.
PidMetrics get pid cgroup metrics.
# Type aliases
CgroupType defines the cgroup type that kubernetes version uses, and CgroupTypeCgroupfs will used as the default one.
No description provided by the author
No description provided by the author
No description provided by the author