kubernetes/vendor/github.com/google/cadvisor/resctrl/utils.go

const cpuCgroup

const rootContainer

const monitoringGroupDir

const processTask

const cpusFileName

const cpusListFileName

const schemataFileName

const tasksFileName

const modeFileName

const sizeFileName

const infoDirName

const monDataDirName

const monGroupsDirName

const noPidsPassedError

const noContainerNameError

const noControlGroupFoundError

const llcOccupancyFileName

const mbmLocalBytesFileName

const mbmTotalBytesFileName

const containerPrefix

const minContainerNameLen

const unavailable

const monGroupPrefix

var rootResctrl

var pidsPath

var processPath

var enabledMBM

var enabledCMT

var isResctrlInitialized

var groupDirectories

func Setup() error {}

func prepareMonitoringGroup(containerName string, getContainerPids func() ([]string, error), inHostNamespace bool) (string, error) {}

func getPids(containerName string) ([]int, error) {}

// getAllProcessThreads obtains all available processes from directory.
// e.g. ls /proc/4215/task/ -> 4215, 4216, 4217, 4218
// func will return [4215, 4216, 4217, 4218].
func getAllProcessThreads(path string) ([]int, error) {}

// findGroup returns the path of a control/monitoring group in which the pids are.
func findGroup(group string, pids []string, includeGroup bool, exclusive bool) (string, error) {}

// arePIDsInGroup returns true if all of the pids are within control group.
func arePIDsInGroup(path string, pids []string, exclusive bool) (bool, error) {}

// readTasksFile returns pids map from given tasks path.
func readTasksFile(tasksPath string) (map[string]struct{}

func readStatFrom(path string, vendorID string) (uint64, error) {}

func getIntelRDTStatsFrom(path string, vendorID string) (intelrdt.Stats, error) {}