MCPcopy Create free account

hub / github.com/prometheus/procfs / functions

Functions751 in github.com/prometheus/procfs

↓ 163 callersMethodPInt64
PInt64 interprets the underlying value as an int64 and returns a pointer to that value.
internal/util/valueparser.go:41
↓ 151 callersMethodPath
Path is a helper function to get configfs path.
iscsi/iscsi.go:67
↓ 126 callersFunctionnewPInt64
(i int64)
vm_test.go:24
↓ 122 callersMethodPUInt64
PUInt64 interprets the underlying value as an uint64 and returns a pointer to that value.
internal/util/valueparser.go:71
↓ 102 callersMethodName
()
sysfs/pci_device.go:102
↓ 102 callersFunctionnewuint64
(i uint64)
crypto_test.go:143
↓ 65 callersFunctiongetProcFixtures
(t *testing.T)
fs_test.go:33
↓ 61 callersFunctionSysReadFile
SysReadFile is here implemented as a noop for builds that do not support the read syscall. For example Windows, or Linux on Google App Engine.
internal/util/sysreadfile_compat.go:24
↓ 59 callersFunctionNewFS
NewFS returns a new FS mounted under the given mountPoint. It will error if the mount point can't be read.
sysfs/fs.go:39
↓ 55 callersMethodErr
Err returns the last error, if any, encountered by the ValueParser.
internal/util/valueparser.go:89
↓ 46 callersMethodProc
Proc returns a process for the given pid.
proc.go:97
↓ 46 callersMethodreadValue
readValues reads a number of numerical values into an uint64 slice. Non-existing files are ignored.
bcache/get.go:201
↓ 44 callersFunctionReadFileNoStat
ReadFileNoStat uses io.ReadAll to read contents of entire file. This is similar to os.ReadFile but without the call to os.Stat, because many files in
internal/util/readfile.go:26
↓ 34 callersFunctionNewFS
NewFS returns a new proc FS mounted under the given proc mountPoint. It will error if the mount point directory can't be read or is a file.
fs.go:44
↓ 31 callersMethodpath
(pa ...string)
proc.go:306
↓ 28 callersMethodStat
Stat returns information about current cpu/process statistics. See: https://www.kernel.org/doc/Documentation/filesystems/proc.txt
stat.go:168
↓ 26 callersFunctionNewValueParser
NewValueParser creates a ValueParser using the input string.
internal/util/valueparser.go:32
↓ 23 callersFunctionsetFSCacheFields
(fields []string, setFields ...*uint64)
fscache.go:245
↓ 20 callersFunctionReadUintFromFile
ReadUintFromFile reads a file and attempts to parse a uint64 from it.
internal/util/parse.go:84
↓ 19 callersMethodreadValue
readValues reads a number of numerical values into an uint64 slice.
btrfs/get.go:108
↓ 16 callersFunctionparseUint
(s string)
proc_limits.go:152
↓ 14 callersFunctionmakeUint64
(v uint64)
sysfs/system_cpu_test.go:26
↓ 13 callersFunctionNewFS
NewFS returns a new FS mounted under the given mountPoint. It will error if the mount point can't be read.
internal/fs/fs.go:42
↓ 12 callersFunctionnewint64
(i int64)
crypto_test.go:139
↓ 11 callersFunctionparseHumanReadableBytes
(s string)
bcachefs/get.go:175
↓ 10 callersFunctionreadDRMCardField
(card, field string)
sysfs/class_drm.go:24
↓ 9 callersFunctionNewFS
NewFS returns a new blockdevice fs using the given mountPoints for proc and sys. It will error if either of these mount points can't be read.
blockdevice/stats.go:237
↓ 8 callersMethodGetByName
GetByName returns the SASPhy with the provided name.
sysfs/class_sas_phy.go:163
↓ 8 callersMethodNewStatus
NewStatus returns the current status information of the process.
proc_status.go:102
↓ 8 callersFunctionintp
(i int)
net_sockstat_test.go:213
↓ 8 callersFunctionparseWritebackRateDebug
ParseWritebackRateDebug parses lines from the writeback_rate_debug file.
bcache/get.go:250
↓ 8 callersMethodsetSubDir
(pathElements ...string)
bcache/get.go:194
↓ 7 callersMethodInt
Int interprets the underlying value as an int and returns that value.
internal/util/valueparser.go:37
↓ 7 callersFunctioncanIgnoreError
canIgnoreError returns true if the error is non-fatal and can be ignored. Some kernels and some devices don't expose specific attributes or return err
sysfs/net_class.go:124
↓ 7 callersFunctionfirstNonEmptyLine
firstNonEmptyLine advances the scanner to the first non-empty line and returns the contents of that line.
cpuinfo.go:510
↓ 7 callersFunctionintToU64
intToU64 convert int to uint64 and return it pointer.
net_udp_test.go:183
↓ 7 callersFunctiontestProcStatm
(pid int)
proc_statm_test.go:124
↓ 6 callersMethodGetByPhy
GetByPhy finds the SASHost that contains the provided PHY name.
sysfs/class_sas_host.go:101
↓ 6 callersFunctionNewFS
NewFS returns a new FS mounted under the given mountPoint. It will error if the mount point can't be read.
selinuxfs/fs.go:39
↓ 6 callersFunctionParseUint64s
ParseUint64s parses a slice of strings into a slice of uint64s.
internal/util/parse.go:39
↓ 6 callersMethodString
()
net_unix.go:224
↓ 6 callersFunctiondehumanize
Dehumanize converts a human-readable byte slice into a uint64.
bcache/get.go:119
↓ 6 callersFunctionopenIfExists
(path string)
bcachefs/get.go:585
↓ 6 callersFunctionparseMountInfo
Reads each line of the mountinfo file, and returns a list of formatted MountInfo structs.
mountinfo.go:56
↓ 6 callersFunctiontestProcStat
(pid int)
proc_stat_test.go:176
↓ 5 callersMethodSASPortClass
SASPortClass parses ports in /sys/class/sas_port. A SAS port in this context is a collection of SAS PHYs operating together. For example, it's commo
sysfs/class_sas_port.go:52
↓ 5 callersMethodSysBlockDevices
SysBlockDevices lists the device names from /sys/block/<dev>.
blockdevice/stats.go:309
↓ 5 callersFunctionparseIPPort
(s string)
ipvs.go:209
↓ 5 callersFunctionparseLinkrate
parseLinkRate turns the kernel's SAS linkrate values into floats. The kernel returns values like "12.0 Gbit". Valid speeds are currently 1.5, 3.0, 6.
sysfs/class_sas_phy.go:153
↓ 5 callersFunctionparseProcSchedstat
(contents string)
schedstat.go:98
↓ 5 callersFunctionreadMountInfo
readMountInfo reads a full mountinfo file (no 1 MiB cap, unlike util.ReadFileNoStat).
mountinfo.go:164
↓ 4 callersMethodGetByPort
GetByPort finds the SASHost that contains the provided SAS Port name.
sysfs/class_sas_host.go:111
↓ 4 callersMethodNVMeClass
NVMeClass returns info for all NVMe devices read from /sys/class/nvme.
sysfs/class_nvme.go:61
↓ 4 callersMethodNetClassByIface
NetClassByIface returns info for a single net interfaces (iface).
sysfs/net_class.go:87
↓ 4 callersMethodNetClassDevices
NetClassDevices scans /sys/class/net for devices and returns them as a list of names.
sysfs/net_class.go:67
↓ 4 callersFunctionParseStats
ParseStats parses a Stats from an input io.Reader, using the format found in /proc/fs/xfs/stat.
xfs/parse.go:27
↓ 4 callersMethodSASDeviceClass
SASDeviceClass parses devices in /sys/class/sas_device.
sysfs/class_sas_device.go:75
↓ 4 callersMethodSASHostClass
SASHostClass parses host[0-9]+ devices in /sys/class/sas_host. This generally only exists so that it can pull in SAS Port and SAS PHY entries. The sa
sysfs/class_sas_host.go:49
↓ 4 callersMethodSchedstat
Schedstat returns task scheduling information for the process.
proc.go:332
↓ 4 callersMethodfileDescriptors
()
proc.go:291
↓ 4 callersFunctionparseHexUint32s
(ss []string)
net_softnet.go:143
↓ 4 callersFunctionparseMountStats
parseMountStats parses a /proc/[pid]/mountstats file and returns a slice of Mount structures containing detailed information about each mount. If avai
mountstats.go:274
↓ 4 callersFunctionparsePSIStats
parsePSIStats parses the specified file for pressure stall information.
proc_psi.go:71
↓ 3 callersMethodAllThreads
AllThreads returns a list of all currently available threads for PID.
thread.go:38
↓ 3 callersMethodCPUs
CPUs returns a slice of all CPUs in `/sys/devices/system/cpu`.
sysfs/system_cpu.go:75
↓ 3 callersFunctionGetRaplZones
GetRaplZones returns a slice of RaplZones. When RAPL files are not present, returns nil with error. - https://www.kernel.org/doc/Documentation/power/p
sysfs/class_powercap.go:39
↓ 3 callersMethodNVMeSubsystemClass
NVMeSubsystemClass returns info for all NVMe subsystems read from sys/class/nvme-subsystem.
sysfs/class_nvme_subsystem.go:72
↓ 3 callersMethodPSIStatsForResource
PSIStatsForResource reads pressure stall information for the specified resource from /proc/pressure/<resource>. At time of writing this can be either
proc_psi.go:61
↓ 3 callersFunctiondehumanizeSigned
(str string)
bcache/get.go:176
↓ 3 callersFunctionnewNetTCP
newNetTCP creates a new NetTCP{,6} from the contents of the given file.
net_tcp.go:59
↓ 3 callersFunctionnewNetTCPSummary
(file string)
net_tcp.go:65
↓ 3 callersFunctionnewNetUDP
newNetUDP creates a new NetUDP{,6} from the contents of the given file.
net_udp.go:51
↓ 3 callersFunctionnewNetUDPSummary
(file string)
net_udp.go:57
↓ 3 callersFunctionparseBuddyInfo
(r io.Reader)
buddyinfo.go:45
↓ 3 callersFunctionparseCPUInfoARM
(info []byte)
cpuinfo.go:190
↓ 3 callersFunctionparseCPURange
(data []byte)
sysfs/system_cpu.go:412
↓ 3 callersFunctionparseConntrackStat
Reads the contents of a conntrack statistics file and parses a slice of ConntrackStatEntries.
net_conntrackstat.go:68
↓ 3 callersFunctionparseNetIPSocketLine
parseNetIPSocketLine parses a single line, represented by a list of fields.
net_ip_socket.go:163
↓ 3 callersFunctionparsePciDeviceLocation
(loc string)
sysfs/pci_device.go:135
↓ 3 callersFunctionparsePriorityStats
ParsePriorityStats parses lines from the priority_stats file.
bcache/get.go:221
↓ 3 callersMethodparseSASDeviceClass
sasDeviceClasses reads all of the SAS devices from a specific set of /sys/class/sas*/ entries. The sas_device, sas_end_device, and sas_expander class
sysfs/class_sas_device.go:52
↓ 3 callersMethodreadAllocationStats
readAllocationStats reads Btrfs allocation data for the current path.
btrfs/get.go:136
↓ 3 callersMethodreadFile
readFile reads a file relative to the path of the reader. Non-existing files are ignored.
btrfs/get.go:99
↓ 3 callersFunctionreadSockstat
readSockstat opens and parses a NetSockstat from the input file.
net_sockstat.go:61
↓ 3 callersFunctionreadSysfsFile
(path string)
bcachefs/get.go:469
↓ 2 callersMethodAerCountersByIface
AerCounters returns info for a single net interfaces (iface).
sysfs/net_class_aer.go:77
↓ 2 callersMethodAllProcs
AllProcs returns a list of all currently available processes.
proc.go:105
↓ 2 callersMethodCrypto
Crypto parses an crypto-file (/proc/crypto) and returns a slice of structs containing the relevant info. More information available here: https://ker
crypto.go:56
↓ 2 callersMethodDMMultipathDevices
DMMultipathDevices discovers DM-multipath devices by scanning sys/block/dm-* and filtering on dm/uuid prefix "mpath-". It returns a slice of DMMultip
blockdevice/dm_multipath.go:57
↓ 2 callersMethodEcnByIface
EcnByIface returns info for a single net interfaces (iface).
sysfs/net_class_ecn.go:123
↓ 2 callersMethodFileDescriptorsInfo
FileDescriptorsInfo retrieves information about all file descriptors of the process.
proc.go:312
↓ 2 callersMethodGetByEndDevice
GetByEndDevice finds the SASPort that contains the provided SAS end device name.
sysfs/class_sas_port.go:126
↓ 2 callersMethodGetByExpander
GetByExpander finds the SASPort that contains the provided SAS expander name.
sysfs/class_sas_port.go:116
↓ 2 callersMethodIsComplete
IsComplete returns true if ARP entry is marked with complete flag.
arp.go:115
↓ 2 callersMethodLimits
Limits returns the current soft limits of the process.
proc_limits.go:89
↓ 2 callersMethodNetDev
NetDev returns kernel/system statistics read from /proc/net/dev.
net_dev.go:51
↓ 2 callersMethodNetDevSNMP6
Returns kernel/system statistics read from interface files within the /proc/net/dev_snmp6/ directory.
net_dev_snmp6.go:34
↓ 2 callersMethodNetSoftnetStat
NetSoftnetStat reads data from /proc/net/softnet_stat.
net_softnet.go:59
↓ 2 callersFunctionNewFS
NewFS returns a new Btrfs filesystem using the given sys fs mount point. It will error if the mount point can't be read.
btrfs/get.go:44
↓ 2 callersFunctionNewFS
NewFS returns a new Bcache using the given sys fs mount point. It will error if the mount point can't be read.
bcache/get.go:42
next →1–100 of 751, ranked by callers