shirou
93a90ccfca
Merge pull request #856 from juan-leon/delayacct-blkio-ticks-as-iowait
...
Provide an estimation of Iowait metric per process
2020-04-15 22:59:17 +09:00
JuanLeon Lahoz
426b5148e3
Provide an estimation of Iowait metric per process
2020-04-14 16:03:21 +02:00
shirou
53cec6b37e
Merge pull request #839 from tklauser/move-parse-funcs
...
net: move parseNetLine and parseNetAddr to net_unix.go
2020-03-14 22:36:25 +09:00
shirou
2df80f551a
Merge pull request #850 from Lomanic/issue846
...
[process][windows] Fix #846 use win32 API in disk.IOCounters() instead of slow WMI call returning wrong values
2020-03-14 17:23:15 +09:00
Lomanic
f98100720e
[process][windows] Fix #846 use win32 API in disk.IOCounters() instead of slow WMI call returning wrong values
2020-03-13 23:57:17 +01:00
shirou
a3b23c5ccf
Merge pull request #834 from Helflym/master
...
net: add AIX support
2020-03-01 09:40:00 +09:00
shirou
0169511c59
Merge pull request #843 from shirou/feature/add_mac_build_on_circleci
...
add macos test on CircleCI.
2020-02-26 07:51:02 +09:00
shirou
dbbf1edf12
add macos test on CircleCI.
2020-02-26 01:11:33 +09:00
Tobias Klauser
22d8ee41e5
net: move parseNetLine and parseNetAddr to net_unix.go
...
These funcs are only used in net_unix.go which is only compiled for
darwin and freebsd.
2020-02-25 10:05:37 +01:00
Lomanic
27358e8a2f
Merge pull request #840 from devopsext/correct_exit_code_pid_existence
...
[process][linux] make process.IsRunning() return nil error if process does not exist
2020-02-16 19:10:08 +01:00
Ilya Prudnikov
f3598686cb
Correct returned error (set to nil) in case process is not exist
2020-02-16 19:03:32 +02:00
Lomanic
8a5c10c292
Merge pull request #838 from tklauser/fix-TestHostInfoStat_String
...
host: fix TestHostInfoStat_String
2020-02-13 19:54:10 +01:00
Tobias Klauser
7bee6a934d
host: fix TestHostInfoStat_String
...
TestHostInfoStat_String has been broken since kernelArch has been
introduced. Fix it.
Also adjust the error message to show the wanted string, aligned with
the gotten string so it's easier to spot differences.
2020-02-13 14:41:11 +01:00
Clément Chigot
77ff16c081
net: add AIX support
2020-02-10 11:22:52 +01:00
shirou
a9d510e7e5
Merge pull request #821 from devopsext/process_check_pid_exnistense_fix
...
Fix check pid existence when running in different process namespace (container)
2020-02-09 01:25:28 +09:00
shirou
33820ab930
Merge pull request #829 from xueweiz/mem
...
mem: collect Active(anon), Inactive(anon) and Unevictable
2020-02-01 18:54:16 +09:00
Xuewei Zhang
929068ccd5
mem: Add VirtualMemoryEx() and VirtualMemoryExWithContext()
2020-01-30 18:46:47 -08:00
Xuewei Zhang
3695635d09
Collect Active(anon), Inactive(anon) and Unevictable in /proc/meminfo
...
These fields helps people understand anonymous memory usage pattern.
2020-01-30 17:47:09 -08:00
Ilya Prudnikov
8dec3d81f3
Fix check pid existence when running in different process namespace (container)
2020-01-27 10:56:26 +02:00
shirou
0d7dd621d2
Merge pull request #826 from Lomanic/issue250iocounters
...
[process][windows] Use win32 API in process.IOCounters() instead of slow WMI call #250
2020-01-27 10:39:37 +09:00
Lomanic
1c8ddacaf7
[process][windows] Use win32 API in process.IOCounters() instead of slow WMI call #250
2020-01-26 21:14:23 +01:00
shirou
392f368142
add HOST_DEV environment variable to README.
2020-01-26 17:52:41 +09:00
shirou
dce23de000
Merge pull request #819 from devopsext/disk-fix_2.19.11
...
Fix for track disk stats when running in container
2020-01-26 17:52:06 +09:00
Ilya Prudnikov
256e00319e
implement proposed solution
2020-01-20 20:13:45 +02:00
shirou
3964e5b579
Merge pull request #822 from tgross/b-panic-on-empty-readline
...
fix host.Info() panic if /etc/debian_version is empty
2020-01-18 11:31:39 +09:00
Tim Gross
c69ef749eb
fix host.Info() panic if /etc/debian_version is empty
...
The ReadLines helper function doesn't guarantee that the length of
lines is non-zero or that the lines have contents. Most callers
include a check for length but this was missing for version
fingerprinting on Debian if `/etc/debian_version` was empty, leading
to a panic.
2020-01-17 14:23:27 -05:00
Ilya Prudnikov
7277cdf050
Fix for track disk stats when running in container
2020-01-17 11:09:10 +02:00
shirou
bcf28f0c37
Merge pull request #812 from tklauser/darwin-getfsstat
...
Use Getfsstat from golang.org/x/sys/unix on Darwin
2020-01-11 22:18:05 +09:00
shirou
02e3fadf83
Merge pull request #814 from tklauser/openbsd-getfssstat
...
Use Getfsstat from golang.org/x/sys/unix on OpenBSD
2020-01-11 21:44:36 +09:00
Tobias Klauser
7f9e55b000
Use Getfsstat from golang.org/x/sys/unix on OpenBSD
...
Use the syscall wrapper and types from golang.org/x/sys/unix instead of
implementing them locally.
Also remove unused generated types and consts.
Follow-up for #810 and #812
2020-01-08 10:42:16 +01:00
Tobias Klauser
422c4f61a1
Use Getfsstat from golang.org/x/sys/unix on Darwin
...
Starting with Go 1.12, direct syscalls on darwin are no longer
supported. Instead, libSystem is used when making syscalls. See
https://golang.org/doc/go1.12#darwin
In order to still support Getfsstat, use the syscall wrapper and types
from golang.org/x/sys/unix which uses the correct syscall method
depending on the Go version.
Also use the correct MNT_* consts and their respective strings according
to the mount(8) manpage.
Follow-up for #810
2020-01-07 23:24:48 +01:00
Lomanic
fa8ed3a978
Merge pull request #810 from tklauser/freebsd-getstatfs
...
Use Getstatfs from golang.org/x/sys/unix for 64-bit inode support on FreeBSD 12
2020-01-07 19:48:56 +01:00
Tobias Klauser
6aae71ca26
Use Getstatfs from golang.org/x/sys/unix for 64-bit inode support on FreeBSD 12
...
Use unix.Getstatfs and its associated Statfs_t type instead of
implementing them locally in this package. This allows to use 64-bit
inode fields on FreeBSD 12 while still keeping backwards compatibility
for old FreeBSD versions, as unix.Getfsstat will use the correct syscall
number and data structure version and convert its result
correspondingly.
Also see https://golang.org/cl/136816 for details.
2020-01-03 13:18:44 +01:00
shirou
c0410b92ca
Merge pull request #807 from tklauser/mnt-consts-bsd
...
Add missing mount option string decoding for FreeBSD and OpenBSD
2020-01-01 16:07:23 +09:00
Lomanic
87d6e832ff
Merge pull request #808 from MashaSamoylova/master
...
[process][windows] Change access right for GetProcessTimes call
2019-12-25 17:22:14 +01:00
MashaSamoylova
88d9e38aca
Change access right in GetProcessTimes call
2019-12-25 18:34:54 +07:00
Tobias Klauser
4d6c82fb03
Add missing OpenBSD mount option strings
...
Add missing mount option string decoding according to the OpenBSD
mount(8) manpage: https://man.openbsd.org/mount
2019-12-23 13:44:02 +01:00
Tobias Klauser
10cdcee035
Fix typos in FreeBSD mount option strings
...
Fix typos in FreeBSD mount option strings so they match the values given
in the mount(8) manpage: https://www.freebsd.org/cgi/man.cgi?mount(8)
2019-12-23 13:43:44 +01:00
Tobias Klauser
214c5bdb50
Use MNT_* consts from golang.org/x/sys/unix on freebsd and openbsd
...
Update vendored version of golang.org/x/sys/unix and use the MNT_*
constants there to replace the locally generated ones.
2019-12-23 13:31:05 +01:00
shirou
c141152a7b
Merge pull request #803 from lanixzcj/master
...
rename InActive(file) to Inactive(file) in mem_linux.go
2019-12-21 15:34:35 +09:00
shirou
e85b1baf3a
Merge pull request #785 from tklauser/use-x-sys-windows
...
Use golang.org/x/windows functions instead of github.com/shirou/w32
2019-12-21 10:26:48 +09:00
shirou
61b5bf8cef
Merge branch 'master' into use-x-sys-windows
2019-12-21 10:20:23 +09:00
shirou
f4fc0580b8
Merge pull request #802 from dmgk/master
...
Add support for freebsd/arm64
2019-12-21 10:01:17 +09:00
lanixzcj
38b78c3eac
rename InActive(file) to Inactive(file) in mem_linux.go
2019-12-20 08:39:36 +08:00
Lomanic
71ddd2ac23
Merge pull request #800 from Girbons/feature/restore-temperature-info-macos
...
Fix #797 restore temperature info for macOS
2019-12-18 00:20:28 +01:00
Dmitri Goutnik
270f6afc22
Add support for freebsd/arm64
2019-12-17 03:12:29 -05:00
Alessandro De Angelis
b7ac341eac
fix compilation warnings
2019-12-16 11:24:55 +01:00
Lomanic
f586a57353
Merge pull request #796 from Lomanic/issue795
...
[process][darwin][openbsd][freebsd] Fix #795 don't truncate process names to 16 characters
2019-12-15 23:31:26 +01:00
Alessandro De Angelis
65a2e0e9bb
Restored temperature info for macOS
2019-12-13 16:03:44 +01:00
Lomanic
8e4dde660a
[process][darwin] Fix Test_Process_Status and Status returning more than status letter
2019-12-07 00:39:46 +01:00