# Functions
GetRaplZones returns a slice of RaplZones.
NewDefaultFS returns a new FS mounted under the default mountPoint.
NewFS returns a new FS mounted under the given mountPoint.
ParseNetClassAttribute parses a given file in /sys/class/net/<iface> and sets the value in a given NetClassIface object if the value was readable.
# Constants
DefaultMountPoint is the common mount point of the sys filesystem.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
VulnerabilityHumanEncoding allows mapping the vulnerability state (encoded as an int) onto a human friendly string.
# Structs
ClassCoolingDeviceStats contains info from files in /sys/class/thermal/cooling_device[0-9]* for a single device.
ClassDRMCardAMDGPUStats contains info from files in /sys/class/drm/card<card>/device for a single amdgpu card.
ClassThermalZoneStats contains info from files in /sys/class/thermal/thermal_zone<zone> for a single <zone>.
ClockSource contains metrics related to the clock source.
CPUThermalThrottle contains data from `/sys/devices/system/cpu/cpu[0-9]*/thermal_throttle`.
CPUTopology contains data located in `/sys/devices/system/cpu/cpu[0-9]*/topology`.
DMIClass contains info from files in /sys/class/dmi/id.
No description provided by the author
No description provided by the author
FS represents the pseudo-filesystem sys, which provides an interface to kernel data structures.
InfiniBandCounters contains counter values from files in /sys/class/infiniband/<Name>/ports/<Port>/counters or /sys/class/infiniband/<Name>/ports/<Port>/counters_ext for a single port of one InfiniBand device.
InfiniBandDevice contains info from files in /sys/class/infiniband for a single InfiniBand device.
InfiniBandHwCounters contains counter value from files in /sys/class/infiniband/<Name>/ports/<Port>/hw_counters for a single port of one InfiniBand device.
InfiniBandPort contains info from files in /sys/class/infiniband/<Name>/ports/<Port> for a single port of one InfiniBand device.
Mdraid holds info parsed from relevant files in the /sys/block/md*/md directory.
No description provided by the author
NetClassIface contains info from files in /sys/class/net/<iface> for single interface (iface).
NVMeDevice contains info from files in /sys/class/nvme for a single NVMe device.
PowerSupply contains info from files in /sys/class/power_supply for a single power supply.
RaplZone stores the information for one RAPL power zone.
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
SystemCPUCpufreqStats contains stats from `/sys/devices/system/cpu/cpu[0-9]*/cpufreq/...`.
No description provided by the author
Vulnerability represents a single vulnerability extracted from /sys/devices/system/cpu/vulnerabilities/.
WatchdogStats contains info from files in /sys/class/watchdog for a single watchdog device.
# Type aliases
CPU represents a path to a CPU located in `/sys/devices/system/cpu/cpu[0-9]*`.
No description provided by the author
InfiniBandClass is a collection of every InfiniBand device in /sys/class/infiniband.
NetClass is collection of info for every interface (iface) in /sys/class/net.
NVMeClass is a collection of every NVMe device in /sys/class/nvme.
PowerSupplyClass is a collection of every power supply in /sys/class/power_supply.
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
WatchdogClass is a collection of statistics for every watchdog device in /sys/class/watchdog.