MCPcopy Create free account

hub / github.com/prometheus/procfs / functions

Functions751 in github.com/prometheus/procfs

↓ 2 callersFunctionNewFS
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 callersMethodNewTLSStat
NewTLSStat reads the tls_stat statistics.
net_tls_stat.go:64
↓ 2 callersMethodNewXfrmStat
NewXfrmStat reads the xfrm_stat statistics from the 'proc' filesystem.
net_xfrm.go:102
↓ 2 callersMethodOnline
Online returns the online status of a CPU from `/sys/devices/system/cpu/cpuN/online`.
sysfs/system_cpu.go:136
↓ 2 callersFunctionParseBool
ParseBool parses a string into a boolean pointer.
internal/util/parse.go:102
↓ 2 callersFunctionParseClientRPCStats
ParseClientRPCStats returns stats read from /proc/net/rpc/nfs.
nfs/parse_nfs.go:26
↓ 2 callersFunctionParseEcnEnable
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 callersFunctionParseEcnIfaceInfo
ParseEcnIfaceInfo scans predefined files in /sys/class/net/<iface>/ecn directory and gets their contents.
sysfs/net_class_ecn.go:181
↓ 2 callersFunctionParseServerRPCStats
ParseServerRPCStats returns stats read from /proc/net/rpc/nfsd.
nfs/parse_nfsd.go:26
↓ 2 callersFunctionPathExistsAndIsDir
Utility function that given a path will return if the path is a dir or not.
sysfs/net_class_ecn.go:379
↓ 2 callersMethodProcMaps
ProcMaps reads from /proc/[pid]/maps to get the memory-mappings of the process.
proc_maps.go:189
↓ 2 callersMethodProcSMapsRollup
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 callersMethodProcStat
ProcStat retrieves XFS filesystem runtime statistics from proc/fs/xfs/stat given the profs mount point.
xfs/xfs.go:516
↓ 2 callersMethodSASPhyClass
SASPhyClass parses entries in /sys/class/sas_phy.
sysfs/class_sas_phy.go:54
↓ 2 callersMethodSelf
Self returns a process for the current process.
proc.go:77
↓ 2 callersMethodStat
Stat returns the current status information of the process.
proc_stat.go:136
↓ 2 callersMethodStatm
Statm returns the current memory usage information of the process.
proc_statm.go:55
↓ 2 callersMethodStrings
()
sysfs/pci_device.go:61
↓ 2 callersMethodSysBlockDeviceMapperInfo
(device string)
blockdevice/stats.go:444
↓ 2 callersMethodSysBlockDeviceRotational
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 callersMethodSysBlockDeviceStat
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 callersFunctionSysReadFile
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 callersMethodSysctlInts
(sysctl string)
proc_sys.go:36
↓ 2 callersMethodSysctlStrings
(sysctl string)
proc_sys.go:27
↓ 2 callersMethodThermalThrottle
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 callersMethodTopology
Topology gets the topology information for a single CPU from `/sys/devices/system/cpu/cpuN/topology`.
sysfs/system_cpu.go:88
↓ 2 callersFunctionbinSearch
(elem uint16, elemSlice *[]uint16)
sysfs/system_cpu.go:159
↓ 2 callersFunctionbtreeStats
btreeStats builds a BTreeStats from a slice of uint32s.
xfs/parse.go:213
↓ 2 callersMethodint64
int64 interprets the underlying value as an int64 and returns that value. TODO: export if/when necessary.
internal/util/valueparser.go:52
↓ 2 callersFunctionisPathEnable
isPathEnable checks if the file "enable" contain enable message.
iscsi/get.go:61
↓ 2 callersFunctionisRaidType
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 callersMethodlistFiles
listFiles returns a list of files for a directory of the reader.
btrfs/get.go:121
↓ 2 callersFunctionmountOptionsParser
mountOptionsParser parses the mount options, superblock options.
mountinfo.go:148
↓ 2 callersFunctionnewNetDev
newNetDev creates a new NetDev from the contents of the given file.
net_dev.go:61
↓ 2 callersFunctionnewNetDevSNMP6
newNetDevSNMP6 creates a new NetDevSNMP6 from the contents of the given directory.
net_dev_snmp6.go:45
↓ 2 callersFunctionnewNetIPSocket
(file string)
net_ip_socket.go:76
↓ 2 callersFunctionnewNetIPSocketSummary
newNetIPSocketSummary creates a new NetIPSocket{,6} from the contents of the given file.
net_ip_socket.go:104
↓ 2 callersFunctionparseAddress
parseAddress converts a hex-string to a uintptr.
proc_maps.go:83
↓ 2 callersFunctionparseAddresses
parseAddresses parses the start-end address.
proc_maps.go:93
↓ 2 callersFunctionparseAerCounters
parseAerCounters scans predefined files in /sys/class/net/<iface>/device directory and gets their contents.
sysfs/net_class_aer.go:116
↓ 2 callersMethodparseCapabilities
(capabilities []string)
net_protocols.go:148
↓ 2 callersFunctionparseCgroupString
parseCgroupString parses each line of the /proc/[pid]/cgroup file Line format is hierarchyID:[controller1,controller2]:path.
proc_cgroup.go:49
↓ 2 callersFunctionparseCgroupSummaryString
parseCgroupSummary parses each line of the /proc/cgroup file Line format is `subsys_name hierarchy num_cgroups enabled`.
proc_cgroups.go:43
↓ 2 callersFunctionparseCounterFile
(path string)
bcachefs/get.go:327
↓ 2 callersFunctionparseDevice
parseDevice parses the device token of a line and converts it to a dev_t (mkdev) like structure.
proc_maps.go:63
↓ 2 callersFunctionparseIP
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 callersMethodparseLine
(line string)
proc_smaps.go:115
↓ 2 callersMethodparseLine
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 callersMethodparseLine
(rawLine string)
net_protocols.go:98
↓ 2 callersFunctionparseLoad
Parse /proc loadavg and return 1m, 5m and 15m.
loadavg.go:43
↓ 2 callersFunctionparseMDStat
parseMDStat parses data from mdstat file (/proc/mdstat) and returns a slice of structs containing the relevant info.
mdstat.go:103
↓ 2 callersFunctionparseMountInfoString
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 callersFunctionparseNFNetLinkQueueLine
parseNFNetLinkQueueLine parses each line of the /proc/net/netfilter/nfnetlink_queue file.
nfnetlink_queue.go:74
↓ 2 callersFunctionparseNetClassIface
parseNetClassIface scans predefined files in /sys/class/net/<iface> directory and gets their contents.
sysfs/net_class.go:219
↓ 2 callersFunctionparseNetRoute
(r io.Reader)
net_route.go:65
↓ 2 callersFunctionparseNetwork
(v []uint64)
nfs/parse.go:80
↓ 2 callersFunctionparsePseudoFloat
ParsePseudoFloat parses the peculiar format produced by bcache's bch_hprint.
bcache/get.go:92
↓ 2 callersFunctionparseRate
Parse rate (example: "100 Gb/sec (4X EDR)") and return it as bytes/second.
sysfs/class_infiniband.go:231
↓ 2 callersFunctionparseSockstat
parseSockstat reads the contents of a sockstat file and parses a NetSockstat.
net_sockstat.go:79
↓ 2 callersFunctionparseState
Parse InfiniBand state. Expected format: "<id>: <string-representation>".
sysfs/class_infiniband.go:216
↓ 2 callersFunctionparseSwapString
(swapString string)
swaps.go:61
↓ 2 callersFunctionparseUncorrectableAerCounters
parseUncorrectableAerCounters parses uncorrectable error counters in sys/class/net/<iface>/device/aer_dev_[non]fatal.
sysfs/net_class_aer.go:186
↓ 2 callersFunctionparseV2Stats
(v []uint64)
nfs/parse.go:119
↓ 2 callersFunctionparseV3Stats
(v []uint64)
nfs/parse.go:147
↓ 2 callersMethodprocSMapsRollupManual
Read /proc/pid/smaps and do the roll-up in Go code.
proc_smaps.go:90
↓ 2 callersFunctionreadNetUNIX
readNetUNIX reads data in /proc/net/unix format from the specified file.
net_unix.go:77
↓ 2 callersFunctionreadUintFile
(path string)
bcachefs/get.go:477
↓ 2 callersMethodstats
stats retrieves bcache runtime statistics for each bcache and priorityStats flag controls if we need to read priority_stats.
bcache/get.go:67
↓ 2 callersFunctiontestNetUNIX
(t *testing.T, testInode bool, got *NetUNIX)
net_unix_test.go:56
↓ 2 callersFunctionvalidateNetDevSNMP6
(have NetDevSNMP6)
net_dev_snmp6_test.go:53
↓ 1 callersMethodAerCounters
AerCounters returns AER counters for all net interfaces (iface) read from /sys/class/net/<iface>/device.
sysfs/net_class_aer.go:94
↓ 1 callersMethodBuddyInfo
BuddyInfo reads the buddyinfo statistics from the specified `proc` filesystem.
buddyinfo.go:35
↓ 1 callersMethodCPUInfo
CPUInfo returns information about current system CPUs. See https://www.kernel.org/doc/Documentation/filesystems/proc.txt
cpuinfo.go:67
↓ 1 callersMethodCPUTime
CPUTime returns the total CPU user and system time in seconds.
proc_stat.go:233
↓ 1 callersMethodCPUVulnerabilities
CPUVulnerabilities retrieves a map of vulnerability names to their mitigations.
sysfs/vulnerability.go:50
↓ 1 callersMethodClassCoolingDeviceStats
()
sysfs/class_cooling_device.go:36
↓ 1 callersMethodClassDRMCardAMDGPUStats
ClassDRMCardAMDGPUStats returns DRM card metrics for all amdgpu cards.
sysfs/class_drm_amdgpu.go:68
↓ 1 callersMethodClassThermalZoneStats
ClassThermalZoneStats returns Thermal Zone metrics for all zones.
sysfs/class_thermal.go:44
↓ 1 callersMethodClockSources
ClockSources returns clocksource information including current and available clocksources read from '/sys/devices/system/clocksource'.
sysfs/clocksource.go:34
↓ 1 callersMethodCmdLine
CmdLine returns the command line of the kernel.
cmdline.go:23
↓ 1 callersMethodCmdLine
CmdLine returns the command line of a process.
proc.go:130
↓ 1 callersMethodComm
Comm returns the command name of a process.
proc.go:165
↓ 1 callersMethodCwd
Cwd returns the absolute path to the current working directory of the process.
proc.go:185
↓ 1 callersMethodDMIClass
DMIClass returns Desktop Management Interface (DMI) information read from /sys/class/dmi.
sysfs/class_dmi.go:54
↓ 1 callersMethodDRMCardClass
DRMCardClass returns infos for all DRM devices read from sys/class/drm.
sysfs/class_drm_card.go:53
↓ 1 callersMethodDataBytes
DataBytes returns the process of data + stack size in bytes.
proc_statm.go:115
↓ 1 callersMethodEcnDevices
EcnDevices returns EcnIface for all net interfaces (iface) read from /sys/class/net/<iface>/ecn.
sysfs/net_class_ecn.go:150
↓ 1 callersMethodEnviron
Environ reads process environments from `/proc/<pid>/environ`.
proc_environ.go:23
↓ 1 callersMethodExecutable
Executable returns the absolute path of the executable command of a process.
proc.go:175
↓ 1 callersMethodFDInfo
FDInfo constructor. On kernels older than 3.8, InotifyInfos will always be empty.
proc_fdinfo.go:51
↓ 1 callersMethodFibreChannelClass
FibreChannelClass parses everything in /sys/class/fc_host.
sysfs/class_fibrechannel.go:65
↓ 1 callersMethodFileDescriptorTargets
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 callersMethodFileDescriptors
FileDescriptors returns the currently open file descriptors of a process.
proc.go:205
↓ 1 callersMethodFileDescriptorsLen
FileDescriptorsLen returns the number of currently open file descriptors of a process.
proc.go:245
↓ 1 callersMethodFscacheinfo
Fscacheinfo returns information about current fscache statistics. See https://www.kernel.org/doc/Documentation/filesystems/caching/fscache.txt
fscache.go:231
↓ 1 callersMethodGatherARPEntries
GatherARPEntries retrieves all the ARP entries, parse the relevant columns, and then return a slice of ARPEntry's.
arp.go:55
↓ 1 callersMethodGetEnergyMicrojoules
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 callersMethodGetFileioUdev
GetFileioUdev is getting the actual info to build up the FILEIO data and match with the enable target.
iscsi/get.go:135
↓ 1 callersMethodGetIblockUdev
GetIblockUdev is getting the actual info to build up the IBLOCK data and match with the enable target.
iscsi/get.go:157
↓ 1 callersMethodGetMounts
GetMounts retrieves mountinfo information from `/proc/self/mountinfo`.
mountinfo.go:192
← previousnext →101–200 of 751, ranked by callers