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

const blockDir

const cacheDir

const netDir

const dmiDir

const ppcDevTree

const s390xDevTree

const meminfoFile

const distanceFile

const sysFsCPUTopology

const CPUPhysicalPackageID

const CPUCoreID

const coreIDFilePath

const packageIDFilePath

const bookIDFilePath

const drawerIDFilePath

const cpuDirPattern

const nodeDirPattern

const HugePagesNrFile

var nodeDir

type CacheInfo

type SysFs

type realSysFs

func NewRealSysFs() SysFs {}

func (fs *realSysFs) GetNodesPaths() ([]string, error) {}

func (fs *realSysFs) GetCPUsPaths(cpusPath string) ([]string, error) {}

func (fs *realSysFs) GetCoreID(cpuPath string) (string, error) {}

func (fs *realSysFs) GetCPUPhysicalPackageID(cpuPath string) (string, error) {}

func (fs *realSysFs) GetBookID(cpuPath string) (string, error) {}

func (fs *realSysFs) GetDrawerID(cpuPath string) (string, error) {}

func (fs *realSysFs) GetMemInfo(nodePath string) (string, error) {}

func (fs *realSysFs) GetDistances(nodePath string) (string, error) {}

func (fs *realSysFs) GetHugePagesInfo(hugePagesDirectory string) ([]os.FileInfo, error) {}

func (fs *realSysFs) GetHugePagesNr(hugepagesDirectory string, hugePageName string) (string, error) {}

func (fs *realSysFs) GetBlockDevices() ([]os.FileInfo, error) {}

func (fs *realSysFs) GetBlockDeviceNumbers(name string) (string, error) {}

func (fs *realSysFs) IsBlockDeviceHidden(name string) (bool, error) {}

func (fs *realSysFs) GetBlockDeviceScheduler(name string) (string, error) {}

func (fs *realSysFs) GetBlockDeviceSize(name string) (string, error) {}

func (fs *realSysFs) GetNetworkDevices() ([]os.FileInfo, error) {}

func (fs *realSysFs) GetNetworkAddress(name string) (string, error) {}

func (fs *realSysFs) GetNetworkMtu(name string) (string, error) {}

func (fs *realSysFs) GetNetworkSpeed(name string) (string, error) {}

func (fs *realSysFs) GetNetworkStatValue(dev string, stat string) (uint64, error) {}

func (fs *realSysFs) GetCaches(id int) ([]os.FileInfo, error) {}

func toFileInfo(dirs []os.DirEntry) ([]os.FileInfo, error) {}

func bitCount(i uint64) (count int) {}

func getCPUCount(cache string) (count int, err error) {}

func (fs *realSysFs) GetCacheInfo(cpu int, name string) (CacheInfo, error) {}

func (fs *realSysFs) GetSystemUUID() (string, error) {}

func (fs *realSysFs) IsCPUOnline(cpuPath string) bool {}

func getCPUID(dir string) (uint16, error) {}

// isCPUOnline is copied from github.com/opencontainers/runc/libcontainer/cgroups/fs and modified to suite cAdvisor
// needs as Apache 2.0 license allows.
// It parses CPU list (such as: 0,3-5,10) into a struct that allows to determine quickly if CPU or particular ID is online.
// see: https://github.com/opencontainers/runc/blob/ab27e12cebf148aa5d1ee3ad13d9fc7ae12bf0b6/libcontainer/cgroups/fs/cpuset.go#L45
func isCPUOnline(path string, cpuID uint16) (bool, error) {}

// Looks for sysfs cpu path containing given CPU property, e.g. core_id or physical_package_id
// and returns number of unique values of given property, exemplary usage: getting number of CPU physical cores
func GetUniqueCPUPropertyCount(cpuAttributesPath string, propertyName string) int {}