Commit Graph

1670 Commits (ca10f91f44e0894306b2ac517fbd282c292182d8)
 

Author SHA1 Message Date
shirou bcf28f0c37
Merge pull request #812 from tklauser/darwin-getfsstat
Use Getfsstat from golang.org/x/sys/unix on Darwin
5 years ago
shirou 02e3fadf83
Merge pull request #814 from tklauser/openbsd-getfssstat
Use Getfsstat from golang.org/x/sys/unix on OpenBSD
5 years ago
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
5 years ago
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
5 years ago
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
5 years ago
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.
5 years ago
shirou c0410b92ca
Merge pull request #807 from tklauser/mnt-consts-bsd
Add missing mount option string decoding for FreeBSD and OpenBSD
5 years ago
Lomanic 87d6e832ff
Merge pull request #808 from MashaSamoylova/master
[process][windows] Change access right for GetProcessTimes call
5 years ago
MashaSamoylova 88d9e38aca Change access right in GetProcessTimes call 5 years ago
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
5 years ago
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)
5 years ago
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.
5 years ago
shirou c141152a7b
Merge pull request #803 from lanixzcj/master
rename InActive(file) to Inactive(file) in mem_linux.go
5 years ago
shirou e85b1baf3a
Merge pull request #785 from tklauser/use-x-sys-windows
Use golang.org/x/windows functions instead of github.com/shirou/w32
5 years ago
shirou 61b5bf8cef
Merge branch 'master' into use-x-sys-windows 5 years ago
shirou f4fc0580b8
Merge pull request #802 from dmgk/master
Add support for freebsd/arm64
5 years ago
lanixzcj 38b78c3eac rename InActive(file) to Inactive(file) in mem_linux.go 5 years ago
Lomanic 71ddd2ac23
Merge pull request #800 from Girbons/feature/restore-temperature-info-macos
Fix #797 restore temperature info for macOS
5 years ago
Dmitri Goutnik 270f6afc22
Add support for freebsd/arm64 5 years ago
Alessandro De Angelis b7ac341eac fix compilation warnings 5 years ago
Lomanic f586a57353
Merge pull request #796 from Lomanic/issue795
[process][darwin][openbsd][freebsd] Fix #795 don't truncate process names to 16 characters
5 years ago
Alessandro De Angelis 65a2e0e9bb Restored temperature info for macOS 5 years ago
Lomanic 8e4dde660a [process][darwin] Fix Test_Process_Status and Status returning more than status letter 5 years ago
TakayukiB Goto 7306b38ac6 [Process] Remove Groups() from process_openbsd 5 years ago
Lomanic a8fd6e1956
Merge pull request #798 from like-inspur/master
add HOST_RUN config description
5 years ago
likerj 2ae2e5bda0
add HOST_RUN config description
there are five system environment variable can be config in common/common.go
5 years ago
Lomanic e7090ba9fc [process] Fix Test_Children test regression because of some other running test 5 years ago
Lomanic 1fcea92f73 [process] Skip if not implemented Test_IsRunning (for openbsd) 5 years ago
Lomanic e4f087a4af [process] Test process.Name() with long names #795 5 years ago
Lomanic 4f0e679e35 [process][darwin][openbsd][freebsd] Fix #795 don't truncate process names to 16 characters 5 years ago
Lomanic fc7e5e7af6
Merge pull request #790 from Lomanic/issue773
[process] Fix #773 remove data race in NewProcess
5 years ago
Lomanic e34a731c69 [process] Fix #773 remove data race in NewProcess
Reproduction case https://github.com/shirou/gopsutil/issues/773#issuecomment-554723678
5 years ago
Lomanic c9a2a69ca7
Merge pull request #789 from shirou/feature/add_length_check_to_cpuinfo
[cpu][linux]: add cpuinfo parse check.
5 years ago
shirou b0025409e9 [cpu][linux]: add cpuinfo parse check. 5 years ago
Tobias Klauser a61c905252 Use golang.org/x/windows functions instead of github.com/shirou/w32
All functions used from github.com/shirou/w32 are also available from
golang.org/x/sys/windows which is already used in other places. Convert
the remaining usages to use the functions from x/sys/windows.
5 years ago
shirou 7c51a74806
Merge pull request #783 from Brian-Williams/Without
Add WithoutUids funcs for Connections
5 years ago
shirou 44ad96e2ab
Merge pull request #786 from shirou/feature/change_circleci_1_11
change cirleci version to 1.11
5 years ago
shirou dec0e04600 change cirleci version to 1.11 5 years ago
Brian C. Williams f00df5cffe Add WithoutUids funcs 5 years ago
TakayukiB Goto 9c6cedb822 [Process] Fix typo 5 years ago
TakayukiB Goto a93796494b [Process] Define the Groups() only once 5 years ago
shirou 0a33b6d8d2
Merge pull request #778 from alialaee/issue777
Fix #777 cpu.Total should not add Guest and GuestNice
5 years ago
Lomanic 2d37960e4c
Merge pull request #776 from sajoupa/revert-f4e2355
Revert "[process] Fix #599 cap percent values returned by *Percent() …
5 years ago
alialaee b8f51de8f6 Fix #777 cpu.Total should not add Guest and GuestNice 5 years ago
Laurent Sesques b3cfb9abc3 Revert "[process] Fix #599 cap percent values returned by *Percent() between 0 and 100"
This reverts commit f4e23559a2.
Fixes #755
5 years ago
TakayukiB Goto f55f202e81 [Process] Implement Groups() to get additional gids. 6 years ago
shirou 1c09419d4b
Merge pull request #767 from shirou/feature/revert_pr_763
Revert "Merge pull request #763 from Iqoqo/add-android-support-for-host"
6 years ago
shirou 5d6f343619
Merge pull request #772 from shirou/feature/remove_modules
remove go module settings
6 years ago
shirou 93f397e135 remove go module settings. 6 years ago
shirou a21ed69d3a Revert "Merge pull request #763 from Iqoqo/add-android-support-for-host"
This reverts commit f58b2e3677, reversing
changes made to 84e6215770.
6 years ago