Documentation
¶
Index ¶
- Variables
- func GetCgroupParamKeyValue(t string) (string, uint64, error)
- func GetCgroupParamString(cgroupPath, cgroupFile string) (string, error)
- func GetCgroupParamUint(cgroupPath, cgroupFile string) (uint64, error)
- func ParseUint(s string, base, bitSize int) (uint64, error)
- func ReadFile(dir, file string) (string, error)
- func WriteFile(dir, file, data string) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetCgroupParamKeyValue ¶
Parses a cgroup param and returns as name, value
i.e. "io_service_bytes 1234" will return as io_service_bytes, 1234
func GetCgroupParamString ¶
Gets a string value from the specified cgroup file
func GetCgroupParamUint ¶
Gets a single uint64 value from the specified cgroup file.
func ParseUint ¶
Saturates negative values at zero and returns a uint64. Due to kernel bugs, some of the memory cgroup stats can be negative.
Types ¶
This section is empty.
Source Files
¶
- fscommon.go
- utils.go
Click to show internal directories.
Click to hide internal directories.