# Packages
No description provided by the author
# Functions
DetectCgroupFSMagic() runs by default DetectCgroupMode() CgroupFsMagicStr() Returns "Cgroupv2" or "Cgroupv1" based on passed magic.
CgroupNameFromCstr() Returns a Golang string from the passed C language format string.
DetectCgroupFSMagic() runs by default DetectCgroupMode() Return the Cgroupfs v1 or v2 that will be used by bpf programs.
DetectCgroupMode() Returns the current Cgroup mode that is applied to the system This applies to systemd and non-systemd machines, possible values: - CGROUP_UNDEF: undefined - CGROUP_LEGACY: Cgroupv1 legacy controllers - CGROUP_HYBRID: Cgroupv1 and Cgroupv2 set up by systemd - CGROUP_UNIFIED: Pure Cgroupv2 hierarchy
Reference: https://systemd.io/CGROUP_DELEGATION/.
No description provided by the author
DiscoverSubSysIds() Discover Cgroup SubSys IDs and indexes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetCgrpControllerName() returns the name of the controller that is being used as fallback from the css to get cgroup information and track processes.
GetCgrpHierarchyID() returns the ID of the Cgroup hierarchy that is used to track processes.
GetCgrpSubsystemIdx() returns the Index of the subsys or hierarchy to be used to track processes.
No description provided by the author
HostCgroupRoot tries to retrieve the host cgroup root
For cgroupv1, we return the directory of the contoller currently used.
# Constants
The default hierarchy for cgroupv2.
No description provided by the author
No description provided by the author
Max cgroup subsystems count that is used from BPF side to define a max index for the default controllers on tasks.
Cgroup Mode:
* https://systemd.io/CGROUP_DELEGATION/
* But this should work also for non-systemd environments: where
* only legacy or unified are available by default.
No description provided by the author
Generic unset value that means undefined or not set.
Container docker, podman, etc.
K8s deployment.
Systemd service.
Systemd user session.
Deployment modes.
# Variables
Cgroup controllers that we are interested in
* are usually the ones that are setup by systemd
* or other init programs.
# Structs
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author