Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/prometheus/procfs
/ functions
Functions
751 in github.com/prometheus/procfs
⨍
Functions
751
◇
Types & classes
267
↓ 2 callers
Function
NewFS
NewFS returns a new Bcachefs filesystem using the given sys fs mount point. It will error if the mount point can't be read.
bcachefs/get.go:42
↓ 2 callers
Method
NewTLSStat
NewTLSStat reads the tls_stat statistics.
net_tls_stat.go:64
↓ 2 callers
Method
NewXfrmStat
NewXfrmStat reads the xfrm_stat statistics from the 'proc' filesystem.
net_xfrm.go:102
↓ 2 callers
Method
Online
Online returns the online status of a CPU from `/sys/devices/system/cpu/cpuN/online`.
sysfs/system_cpu.go:136
↓ 2 callers
Function
ParseBool
ParseBool parses a string into a boolean pointer.
internal/util/parse.go:102
↓ 2 callers
Function
ParseClientRPCStats
ParseClientRPCStats returns stats read from /proc/net/rpc/nfs.
nfs/parse_nfs.go:26
↓ 2 callers
Function
ParseEcnEnable
parses the ECN enable directory. It takes a path which should be a directory. This directory should have filenames that are uint8 and the content of t
sysfs/net_class_ecn.go:330
↓ 2 callers
Function
ParseEcnIfaceInfo
ParseEcnIfaceInfo scans predefined files in /sys/class/net/<iface>/ecn directory and gets their contents.
sysfs/net_class_ecn.go:181
↓ 2 callers
Function
ParseServerRPCStats
ParseServerRPCStats returns stats read from /proc/net/rpc/nfsd.
nfs/parse_nfsd.go:26
↓ 2 callers
Function
PathExistsAndIsDir
Utility function that given a path will return if the path is a dir or not.
sysfs/net_class_ecn.go:379
↓ 2 callers
Method
ProcMaps
ProcMaps reads from /proc/[pid]/maps to get the memory-mappings of the process.
proc_maps.go:189
↓ 2 callers
Method
ProcSMapsRollup
ProcSMapsRollup reads from /proc/[pid]/smaps_rollup to get summed memory information of the process. If smaps_rollup does not exists (require kernel
proc_smaps.go:62
↓ 2 callers
Method
ProcStat
ProcStat retrieves XFS filesystem runtime statistics from proc/fs/xfs/stat given the profs mount point.
xfs/xfs.go:516
↓ 2 callers
Method
SASPhyClass
SASPhyClass parses entries in /sys/class/sas_phy.
sysfs/class_sas_phy.go:54
↓ 2 callers
Method
Self
Self returns a process for the current process.
proc.go:77
↓ 2 callers
Method
Stat
Stat returns the current status information of the process.
proc_stat.go:136
↓ 2 callers
Method
Statm
Statm returns the current memory usage information of the process.
proc_statm.go:55
↓ 2 callers
Method
Strings
()
sysfs/pci_device.go:61
↓ 2 callers
Method
SysBlockDeviceMapperInfo
(device string)
blockdevice/stats.go:444
↓ 2 callers
Method
SysBlockDeviceRotational
SysBlockDeviceRotational returns the rotational value for the block device from /sys/block/<device>/queue/rotational. A value of 1 indicates a rotatio
blockdevice/stats.go:500
↓ 2 callers
Method
SysBlockDeviceStat
SysBlockDeviceStat returns stats for the block device read from /sys/block/<device>/stat. The number of stats read will be 15 if the discard stats are
blockdevice/stats.go:324
↓ 2 callers
Function
SysReadFile
SysReadFile is a simplified os.ReadFile that invokes syscall.Read directly. https://github.com/prometheus/node_exporter/pull/728/files Note that this
internal/util/sysreadfile.go:30
↓ 2 callers
Method
SysctlInts
(sysctl string)
proc_sys.go:36
↓ 2 callers
Method
SysctlStrings
(sysctl string)
proc_sys.go:27
↓ 2 callers
Method
ThermalThrottle
ThermalThrottle gets the cpu throttle count information for a single CPU from `/sys/devices/system/cpu/cpuN/thermal_throttle`.
sysfs/system_cpu.go:123
↓ 2 callers
Method
Topology
Topology gets the topology information for a single CPU from `/sys/devices/system/cpu/cpuN/topology`.
sysfs/system_cpu.go:88
↓ 2 callers
Function
binSearch
(elem uint16, elemSlice *[]uint16)
sysfs/system_cpu.go:159
↓ 2 callers
Function
btreeStats
btreeStats builds a BTreeStats from a slice of uint32s.
xfs/parse.go:213
↓ 2 callers
Method
int64
int64 interprets the underlying value as an int64 and returns that value. TODO: export if/when necessary.
internal/util/valueparser.go:52
↓ 2 callers
Function
isPathEnable
isPathEnable checks if the file "enable" contain enable message.
iscsi/get.go:61
↓ 2 callers
Function
isRaidType
check if a string's format is like the mdType Rule 1: mdType should not be like (...) Rule 2: mdType should not be like sda[0] .
mdstat.go:231
↓ 2 callers
Method
listFiles
listFiles returns a list of files for a directory of the reader.
btrfs/get.go:121
↓ 2 callers
Function
mountOptionsParser
mountOptionsParser parses the mount options, superblock options.
mountinfo.go:148
↓ 2 callers
Function
newNetDev
newNetDev creates a new NetDev from the contents of the given file.
net_dev.go:61
↓ 2 callers
Function
newNetDevSNMP6
newNetDevSNMP6 creates a new NetDevSNMP6 from the contents of the given directory.
net_dev_snmp6.go:45
↓ 2 callers
Function
newNetIPSocket
(file string)
net_ip_socket.go:76
↓ 2 callers
Function
newNetIPSocketSummary
newNetIPSocketSummary creates a new NetIPSocket{,6} from the contents of the given file.
net_ip_socket.go:104
↓ 2 callers
Function
parseAddress
parseAddress converts a hex-string to a uintptr.
proc_maps.go:83
↓ 2 callers
Function
parseAddresses
parseAddresses parses the start-end address.
proc_maps.go:93
↓ 2 callers
Function
parseAerCounters
parseAerCounters scans predefined files in /sys/class/net/<iface>/device directory and gets their contents.
sysfs/net_class_aer.go:116
↓ 2 callers
Method
parseCapabilities
(capabilities []string)
net_protocols.go:148
↓ 2 callers
Function
parseCgroupString
parseCgroupString parses each line of the /proc/[pid]/cgroup file Line format is hierarchyID:[controller1,controller2]:path.
proc_cgroup.go:49
↓ 2 callers
Function
parseCgroupSummaryString
parseCgroupSummary parses each line of the /proc/cgroup file Line format is `subsys_name hierarchy num_cgroups enabled`.
proc_cgroups.go:43
↓ 2 callers
Function
parseCounterFile
(path string)
bcachefs/get.go:327
↓ 2 callers
Function
parseDevice
parseDevice parses the device token of a line and converts it to a dev_t (mkdev) like structure.
proc_maps.go:63
↓ 2 callers
Function
parseIP
the /proc/net/{t,u}dp{,6} files are network byte order for ipv4 and for ipv6 the address is four words consisting of four bytes each. In each of those
net_ip_socket.go:140
↓ 2 callers
Method
parseLine
(line string)
proc_smaps.go:115
↓ 2 callers
Method
parseLine
parseLine parses a single line from the /proc/net/dev file. Header lines must be filtered prior to calling this method.
net_dev.go:89
↓ 2 callers
Method
parseLine
(rawLine string)
net_protocols.go:98
↓ 2 callers
Function
parseLoad
Parse /proc loadavg and return 1m, 5m and 15m.
loadavg.go:43
↓ 2 callers
Function
parseMDStat
parseMDStat parses data from mdstat file (/proc/mdstat) and returns a slice of structs containing the relevant info.
mdstat.go:103
↓ 2 callers
Function
parseMountInfoString
Parses a mountinfo file line, and converts it to a MountInfo struct. An important check here is to see if the hyphen separator, as if it does not exis
mountinfo.go:75
↓ 2 callers
Function
parseNFNetLinkQueueLine
parseNFNetLinkQueueLine parses each line of the /proc/net/netfilter/nfnetlink_queue file.
nfnetlink_queue.go:74
↓ 2 callers
Function
parseNetClassIface
parseNetClassIface scans predefined files in /sys/class/net/<iface> directory and gets their contents.
sysfs/net_class.go:219
↓ 2 callers
Function
parseNetRoute
(r io.Reader)
net_route.go:65
↓ 2 callers
Function
parseNetwork
(v []uint64)
nfs/parse.go:80
↓ 2 callers
Function
parsePseudoFloat
ParsePseudoFloat parses the peculiar format produced by bcache's bch_hprint.
bcache/get.go:92
↓ 2 callers
Function
parseRate
Parse rate (example: "100 Gb/sec (4X EDR)") and return it as bytes/second.
sysfs/class_infiniband.go:231
↓ 2 callers
Function
parseSockstat
parseSockstat reads the contents of a sockstat file and parses a NetSockstat.
net_sockstat.go:79
↓ 2 callers
Function
parseState
Parse InfiniBand state. Expected format: "<id>: <string-representation>".
sysfs/class_infiniband.go:216
↓ 2 callers
Function
parseSwapString
(swapString string)
swaps.go:61
↓ 2 callers
Function
parseUncorrectableAerCounters
parseUncorrectableAerCounters parses uncorrectable error counters in sys/class/net/<iface>/device/aer_dev_[non]fatal.
sysfs/net_class_aer.go:186
↓ 2 callers
Function
parseV2Stats
(v []uint64)
nfs/parse.go:119
↓ 2 callers
Function
parseV3Stats
(v []uint64)
nfs/parse.go:147
↓ 2 callers
Method
procSMapsRollupManual
Read /proc/pid/smaps and do the roll-up in Go code.
proc_smaps.go:90
↓ 2 callers
Function
readNetUNIX
readNetUNIX reads data in /proc/net/unix format from the specified file.
net_unix.go:77
↓ 2 callers
Function
readUintFile
(path string)
bcachefs/get.go:477
↓ 2 callers
Method
stats
stats retrieves bcache runtime statistics for each bcache and priorityStats flag controls if we need to read priority_stats.
bcache/get.go:67
↓ 2 callers
Function
testNetUNIX
(t *testing.T, testInode bool, got *NetUNIX)
net_unix_test.go:56
↓ 2 callers
Function
validateNetDevSNMP6
(have NetDevSNMP6)
net_dev_snmp6_test.go:53
↓ 1 callers
Method
AerCounters
AerCounters returns AER counters for all net interfaces (iface) read from /sys/class/net/<iface>/device.
sysfs/net_class_aer.go:94
↓ 1 callers
Method
BuddyInfo
BuddyInfo reads the buddyinfo statistics from the specified `proc` filesystem.
buddyinfo.go:35
↓ 1 callers
Method
CPUInfo
CPUInfo returns information about current system CPUs. See https://www.kernel.org/doc/Documentation/filesystems/proc.txt
cpuinfo.go:67
↓ 1 callers
Method
CPUTime
CPUTime returns the total CPU user and system time in seconds.
proc_stat.go:233
↓ 1 callers
Method
CPUVulnerabilities
CPUVulnerabilities retrieves a map of vulnerability names to their mitigations.
sysfs/vulnerability.go:50
↓ 1 callers
Method
ClassCoolingDeviceStats
()
sysfs/class_cooling_device.go:36
↓ 1 callers
Method
ClassDRMCardAMDGPUStats
ClassDRMCardAMDGPUStats returns DRM card metrics for all amdgpu cards.
sysfs/class_drm_amdgpu.go:68
↓ 1 callers
Method
ClassThermalZoneStats
ClassThermalZoneStats returns Thermal Zone metrics for all zones.
sysfs/class_thermal.go:44
↓ 1 callers
Method
ClockSources
ClockSources returns clocksource information including current and available clocksources read from '/sys/devices/system/clocksource'.
sysfs/clocksource.go:34
↓ 1 callers
Method
CmdLine
CmdLine returns the command line of the kernel.
cmdline.go:23
↓ 1 callers
Method
CmdLine
CmdLine returns the command line of a process.
proc.go:130
↓ 1 callers
Method
Comm
Comm returns the command name of a process.
proc.go:165
↓ 1 callers
Method
Cwd
Cwd returns the absolute path to the current working directory of the process.
proc.go:185
↓ 1 callers
Method
DMIClass
DMIClass returns Desktop Management Interface (DMI) information read from /sys/class/dmi.
sysfs/class_dmi.go:54
↓ 1 callers
Method
DRMCardClass
DRMCardClass returns infos for all DRM devices read from sys/class/drm.
sysfs/class_drm_card.go:53
↓ 1 callers
Method
DataBytes
DataBytes returns the process of data + stack size in bytes.
proc_statm.go:115
↓ 1 callers
Method
EcnDevices
EcnDevices returns EcnIface for all net interfaces (iface) read from /sys/class/net/<iface>/ecn.
sysfs/net_class_ecn.go:150
↓ 1 callers
Method
Environ
Environ reads process environments from `/proc/<pid>/environ`.
proc_environ.go:23
↓ 1 callers
Method
Executable
Executable returns the absolute path of the executable command of a process.
proc.go:175
↓ 1 callers
Method
FDInfo
FDInfo constructor. On kernels older than 3.8, InotifyInfos will always be empty.
proc_fdinfo.go:51
↓ 1 callers
Method
FibreChannelClass
FibreChannelClass parses everything in /sys/class/fc_host.
sysfs/class_fibrechannel.go:65
↓ 1 callers
Method
FileDescriptorTargets
FileDescriptorTargets returns the targets of all file descriptors of a process. If a file descriptor is not a symlink to a file (like a socket), that
proc.go:225
↓ 1 callers
Method
FileDescriptors
FileDescriptors returns the currently open file descriptors of a process.
proc.go:205
↓ 1 callers
Method
FileDescriptorsLen
FileDescriptorsLen returns the number of currently open file descriptors of a process.
proc.go:245
↓ 1 callers
Method
Fscacheinfo
Fscacheinfo returns information about current fscache statistics. See https://www.kernel.org/doc/Documentation/filesystems/caching/fscache.txt
fscache.go:231
↓ 1 callers
Method
GatherARPEntries
GatherARPEntries retrieves all the ARP entries, parse the relevant columns, and then return a slice of ARPEntry's.
arp.go:55
↓ 1 callers
Method
GetEnergyMicrojoules
GetEnergyMicrojoules returns the current microjoule value from the zone energy counter https://www.kernel.org/doc/Documentation/power/powercap/powerca
sysfs/class_powercap.go:92
↓ 1 callers
Method
GetFileioUdev
GetFileioUdev is getting the actual info to build up the FILEIO data and match with the enable target.
iscsi/get.go:135
↓ 1 callers
Method
GetIblockUdev
GetIblockUdev is getting the actual info to build up the IBLOCK data and match with the enable target.
iscsi/get.go:157
↓ 1 callers
Method
GetMounts
GetMounts retrieves mountinfo information from `/proc/self/mountinfo`.
mountinfo.go:192
← previous
next →
101–200 of 751, ranked by callers