Commit Graph

1700 Commits (a44e7585f91387faa28ce946df48ce8a8a8800e2)
 

Author SHA1 Message Date
shirou 4e6138ae09
Merge pull request #901 from nightmared/expose-available-memory-as-free-win
Set the 'free' memory value to the 'available' memory on windows
5 years ago
shirou bbcb80cd3f
Merge pull request #891 from tribes/master
[process][windows] implement suspending and resuming with ntdll library
5 years ago
shirou efc768ada6
Merge pull request #898 from tyldavis/master
Fix MemoryMaps on ARM
5 years ago
shirou 7a4809ba68
Merge pull request #908 from tklauser/host-bsd-boottime
Use common implementation for BootTime/Uptime on all BSDs
5 years ago
Tobias Klauser 28890b0482 Use common implementation for BootTime/Uptime on all BSDs
All BSDs use the same implementation to get BootTime{,WithContext} and
Uptime{,WithContext} based on the kern.boottime sysctl. Move this
implementation to a separate host/host_bsd.go file shared by darwin,
freebsd and openbsd. Also use SysctlTimeval to get
the boot time directly as a type Timeval instead of manually
extracting it using package unsafe. It will also allow for easier reuse
to support package host on e.g. Dragonfly BSD or NetBSD.

This requires updating the golang.org/x/sys/unix dependency to the
latest revision.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
5 years ago
Simon Thoby 3b64944534 Set the 'free' memory value to the 'available' memory on windows 5 years ago
Tyler Davis 8d28f1b305 Clean up boolean condition 5 years ago
Tyler Davis 9473d01f0f Fix MemoryMaps on ARM
ARM has some tab characters in smaps instead of spaces, hence switching to strings.Fields instead of strings.Split which handles splitting on all whitespace instead of just spaces.
5 years ago
shirou 6d64cd6d43
Merge pull request #882 from james-bebbington/mem-linux-pgmajfault
Add pgmajfault to data returned by vmstat on Linux
5 years ago
James Bebbington 28b2246b5b Add processes created to misc stats 5 years ago
James Bebbington 61cb122a84
Added comment noting that PgMajFault is Linux specific 5 years ago
shirou 10a398abdd add RISC-V and DragonFlyBSD to partial support. 5 years ago
shirou c8251cf603
Merge pull request #896 from tklauser/host-linux-riscv64-support
Add linux/riscv64 support
5 years ago
Tobias Klauser 1934eadfcb Add linux/riscv64 build test 5 years ago
Tobias Klauser 1e61ed79fa host: add support for linux/riscv64 5 years ago
shirou 01afd763e6
Merge pull request #893 from gballet/cpu-add-dragonflybsd-support
cpu: support for DragonflyBSD
5 years ago
shirou 7d13aa15fc
Merge pull request #895 from tklauser/freebsd-statvfs-type
Fix FreeBSD build with latest x/sys/unix
5 years ago
Tobias Klauser d5eecd689d Fix FreeBSD build with latest x/sys/unix
There was a breaking change in upstream golang.org/x/sys/unix which
changed the type of some Statvfs members, see #853. As it looks like
this change won't be reverted, adjust gopsutil to work with it and allow
to build against the latest version of x/sys/unix.
5 years ago
Guillaume Ballet baec973ff6 Fix stepping extraction 5 years ago
Guillaume Ballet 877e0a6603 more typo fixes 5 years ago
Guillaume Ballet 8968457048 fix typo 5 years ago
Guillaume Ballet 771601b292 use sysctl instead of parsing dmesg output 5 years ago
shirou b806400ff0
Merge pull request #894 from citruspi/improved-lxc-guest-discovery
LXC Guest Detection from Environ Procfile
5 years ago
Guillaume Ballet 9390667f0f
Update cpu/cpu_dragonfly.go
Co-authored-by: shirou <shirou.faw@gmail.com>
5 years ago
Mihir Singh 92d6df6d8f Attempted LXC guest detection from environ procfile 5 years ago
Guillaume Ballet 56d9e0b7be cpu: support for DragonflyBSD 5 years ago
Merwan Ouddane f459195bc0 [process][windows] implement suspending and resuming with ntdll library 5 years ago
Lomanic 6f7ec36749
Merge pull request #888 from Lomanic/issue853-pin-sys
[disk][freebsd] Work around #853, pin x/sys with dep to the hash just before upstream breaking change
5 years ago
Lomanic ca4849b710
Merge pull request #889 from Lomanic/issue832
[darwin][disk][host] Move C dependencies to satisfy go mod and have descriptive file names
5 years ago
Lomanic 5aca383d4f [disk][darwin][cgo] Rename C files dependencies to more descriptive names 5 years ago
Lomanic 42c6875555 [host][darwin][cgo] Fix #832 work around once-again broken go modules not including C files
Supersedes #885 by @afontaine
5 years ago
Lomanic e9ecebec5a [disk][freebsd] Work around #853, pin x/sys with dep to the hash just before upstream breaking change 5 years ago
Lomanic 663af789c0
Merge pull request #872 from renaynay/update-docs-cputimes
Update docs for TimesStat with correct time unit
5 years ago
Lomanic a901d160ca
Merge pull request #870 from renaynay/naming-consistency
Renamed variables storing `CLK_TCK` value for consistency across OSs
5 years ago
Lomanic a303ddc7d1
Merge pull request #880 from Lomanic/issue867
[process][darwin][nocgo] Fix #867 iterate on every lines returned by lsof to handle potential warnings
5 years ago
James Bebbington 16fdb92bfc Add pgmajfault to data returned by vmstat on Linux 5 years ago
Lomanic 42aec722ba
Merge pull request #878 from fancybits/android-loadavg
[load][linux] implement Avg() on top of sysinfo syscall when /proc/loadavg is not readable
5 years ago
Aman Gupta f42052bee7 [load][android] implement on top of sysinfo syscall 5 years ago
Lomanic 8f969117ab [process][darwin][nocgo] Fix #867 iterate on every lines returned by lsof to handle potential warnings 5 years ago
Lomanic c89193f22d
Merge pull request #857 from Gui13/fix_837
Do not cache boot time for linux. Fix #837
5 years ago
Lomanic b6c59f1e77
Merge pull request #862 from mxmauro/quick_cmdline_windows
Fixed slow command line retrieval on Windows
5 years ago
Lomanic c972b298b3
Merge pull request #876 from gtosh4/patch-1
Don't ignore context for io counters
5 years ago
Lomanic ee64e05b02
Merge pull request #869 from renaynay/master
Added check for `CLK_TCK` for darwin
5 years ago
gtosh4 936d3b27f1
Don't ignore context for io counters 5 years ago
renaynay 5e1b882e37
updated docs for TimesStat with correct time unit 5 years ago
renaynay 0e9462eed2
renamed CLK_TCK variables for consistency across OSs 5 years ago
renaynay d4985c9690
added check for CLK_TCK 5 years ago
Mauro Leggieri 7783e1d58e Added retrieval of OS platform to determine better a process platform. 5 years ago
Lomanic 987c949880
Merge pull request #864 from GameXG/master
fix #863 Swap.UsedPercent is inconsistent
5 years ago
GameXG 144c67833a
fix #863 Swap.UsedPercent is inconsistent 5 years ago