1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-05-10 19:29:14 +08:00

1841 Commits

Author SHA1 Message Date
shirou
8177d340fd [mem] Add swapdevice 2021-09-30 02:15:30 +00:00
shirou
8d7a3abddb
Merge pull request #1131 from punya/tbarker25-swap-contd
Add swapdevices method (continued from #1120)
2021-09-30 00:22:03 +09:00
shirou
532241fa78
Merge pull request #1137 from mx-psi/mx-psi/fix-duplicate-symbol
Rename `readdrivestat` function on v3
2021-09-29 23:41:00 +09:00
shirou
582bb14d8a
[linux][mem] remove unnecessary import 2021-09-29 22:55:44 +09:00
Pablo Baeyens
78e8d0adf0
Rename 'readdrivestat' function on v3
Signed-off-by: Pablo Baeyens <pablo.baeyens@datadoghq.com>
2021-09-29 12:41:41 +02:00
Punya Biswal
32b14a3723 Use invoke.CommandWithContext 2021-09-28 10:09:43 -04:00
shirou
cc70488af8
Merge pull request #1134 from rasa/patch-2
Fix minor typos, formatting tweaks
2021-09-26 20:51:49 +09:00
Ross Smith II
5f0e37d823
Fix minor typos, formatting tweaks 2021-09-25 07:11:07 -07:00
shirou
80d5b57405
Merge pull request #1132 from rasa/rasa/add_arm_support
Add arm/arm64 support on Windows (fixes #916)
2021-09-19 23:44:51 +09:00
Ross Smith II
14b7231917 Add arm/arm64 support on Windows 2021-09-14 17:06:54 -07:00
shirou
ce5729cbcd
Merge pull request #1130 from sunshineplan/master
v3/process (Win): fix Kill() DuplicateHandle error
2021-09-11 11:11:55 +09:00
Punya Biswal
5169bfe02d
Update mem/mem_bsd.go
Co-authored-by: shirou <shirou.faw@gmail.com>
2021-09-10 21:36:00 -04:00
Punya Biswal
7c1aa06a5e Respond to review comments
* use LookPath for better error messages
* support procfs in containers
2021-09-08 16:15:26 -04:00
sunshineplan
785e379e67 v3/process (Win): fix Kill() DuplicateHandle error 2021-09-05 11:09:45 +08:00
shirou
f8cc3bd072
Merge pull request #1128 from shibukawa/fix/readmeformat
convert README from reStructuredText to Markdown
2021-09-02 21:48:22 +09:00
Yoshiki Shibukawa
05e51b6d4b convert README from reStructuredText to Markdown 2021-09-02 21:29:46 +09:00
shirou
5268453c1e
Merge pull request #1126 from tklauser/sysconf-update
Update github.com/tklauser/go-sysconf to v0.3.9
v3.21.8
2021-09-01 14:06:00 +09:00
Tobias Klauser
b764840fbf Update github.com/tklauser/go-sysconf to v0.3.9
This fixes the build with older Go versions due to missing GOARCH build
tags.

Release notes: https://github.com/tklauser/go-sysconf/releases/tag/v0.3.9
List of changes: https://github.com/tklauser/go-sysconf/compare/v0.3.8...v0.3.9
2021-08-30 16:29:54 +02:00
shirou
0d0659af18
Merge pull request #1122 from secDre4mer/master
chore: Drop PROCESS_QUERY_INFORMATION support
2021-08-28 12:33:15 +09:00
shirou
595a6297e0
Merge pull request #1119 from tbarker25/process-fixes-1
Fixes for Test_Connections in process_linux.go
2021-08-28 12:31:58 +09:00
Tom Barker
9248140c98 Wait for server connection to be established before checking
connections.
2021-08-23 16:30:51 -04:00
Tom Barker
bc4661937d Minor cleanups motivated by staticcheck warnings. 2021-08-19 10:43:06 -04:00
Tom Barker
5ce887df8f Make sure that Test_AllProcesses_cmdLine doesn't ignore failures. 2021-08-19 10:43:06 -04:00
Tom Barker
34cdfa258b Test_Connections currently fails intermittently on Linux (and maybe
other OSs), and fails consistently if run with `go test -times=N`

On inspection, Go closes TCP connections when they go out of scope and
are garbage collected. I've re-written Test_Connections() to explicitly
close connectections once the test has finished. This has the other
benefit of closing gracefully, which means the -times argument should
work.

I've also removed the t.Skip() calls inside goroutines as they are
unsupported.
2021-08-19 10:40:27 -04:00
Tom Barker
84a665b712 Add mem.SwapDevices() method. 2021-08-19 10:16:30 -04:00
Max Altgelt
d07af877ef
chore: Drop PROCESS_QUERY_INFORMATION support
PROCESS_QUERY_INFORMATION was used for compatibility reasons with
Windows XP / Server 2003. Both are no longer supported in Golang
and haven't been for a while (since Go 1.11). It should be safe
to drop this flag. PROCESS_QUERY_LIMITED_INFORMATION supports
PPL process such as LSASS, which are not queryable without this
change.
2021-08-19 15:41:50 +02:00
shirou
f86a042980
Merge pull request #1117 from tklauser/update-go-sysconf
Update github.com/tklauser/go-sysconf to v0.3.8
2021-08-16 19:14:16 +09:00
Tobias Klauser
cb29e40ade Update github.com/tklauser/go-sysconf to v0.3.8
This fixes the build of go-sysconf on openbsd/386 and openbsd/arm, see
tklauser/go-sysconf#21 and rclone/rclone#5402 for context.

List of changes: https://github.com/tklauser/go-sysconf/compare/v0.3.6...v0.3.8
2021-08-16 10:49:52 +02:00
shirou
ff3e668a6d
Create FUNDING.yml 2021-08-15 22:59:43 +09:00
shirou
ab783600d3
Merge pull request #1116 from shirou/feature/port_to_v2_from_1112
[v2][process][linux] port 1112 to v2.
2021-08-14 17:39:38 +09:00
shirou
b27be3812b [v2][process][linux] port 1112 to v2.
This port includes only code. test is not included.
2021-08-14 08:22:57 +00:00
shirou
efc3e519be
Merge pull request #1112 from xuyang2/process-name-linux
[process][linux] get name from /proc/(pid)/comm
2021-08-14 17:17:55 +09:00
xuyang2
45a01f678c [process][linux] get name from /proc/(pid)/comm 2021-08-12 11:06:28 +08:00
xuyang2
7485c8041d [process][linux] get name from /proc/(pid)/comm 2021-08-12 09:47:11 +08:00
xuyang2
a9757c7de9 [process][linux] get name from /proc/(pid)/comm 2021-08-12 09:35:49 +08:00
shirou
ae17bb5860
Merge pull request #1110 from shirou/feature/change_test_support_version_to_115_and_116
change test support version to 1.15 and 1.16.
v3.21.7
2021-07-31 11:05:28 +09:00
shirou
1273f2cffb change test support version to 1.15 and 1.16. 2021-07-30 07:18:43 +00:00
shirou
5c29bd904d
Merge pull request #1109 from shirou/dependabot/go_modules/v3/github.com/tklauser/go-sysconf-0.3.7
Bump github.com/tklauser/go-sysconf from 0.3.6 to 0.3.7 in /v3
2021-07-30 08:40:39 +09:00
dependabot[bot]
f41cf8143a
Bump github.com/tklauser/go-sysconf from 0.3.6 to 0.3.7 in /v3
Bumps [github.com/tklauser/go-sysconf](https://github.com/tklauser/go-sysconf) from 0.3.6 to 0.3.7.
- [Release notes](https://github.com/tklauser/go-sysconf/releases)
- [Commits](https://github.com/tklauser/go-sysconf/compare/v0.3.6...v0.3.7)

---
updated-dependencies:
- dependency-name: github.com/tklauser/go-sysconf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-29 23:00:22 +00:00
shirou
656e0c758a
Merge pull request #1108 from shirou/dependabot/go_modules/v3/github.com/stretchr/testify-1.7.0
Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 in /v3
2021-07-30 07:59:26 +09:00
dependabot[bot]
cd789c0cf9
Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 in /v3
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.6.1...v1.7.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-29 22:06:24 +00:00
shirou
d7540e6cfc
Merge pull request #1113 from lespea/fixWmiAgain
Newest version of wmi
2021-07-30 07:05:34 +09:00
Adam Lesperance
7993cb68cc Newest version of wmi 2021-07-29 16:48:26 -05:00
xuyang2
7203001e29 [process][linux] get name from /proc/(pid)/comm 2021-07-29 14:16:16 +08:00
shirou
48ca99694c
Merge pull request #1099 from edge/master
fix wmi version
2021-07-24 17:21:52 +09:00
shirou
a94b35811c
Merge pull request #1107 from rasa/patch-1
docs: fix typos and grammer
2021-07-24 17:10:25 +09:00
Ross Smith II
dda0350d41
Update README.rst 2021-07-23 06:26:39 -07:00
shirou
78e21dd887
Merge pull request #1097 from secDre4mer/master
feat: Add support for environment variable read
2021-07-23 22:24:38 +09:00
shirou
5fe3154cd3
Merge pull request #1106 from odinje/host-platform_family_rocky
Ensure rhel platform family for Rocky Linux
2021-07-23 18:56:37 +09:00
Max Altgelt
3ce14ac1bb
chore: Update golang.org/x/sys to NTStatus support
Update the requested version for golang.org/x/sys to the commit
that introduces support for NTStatus which is now used.
2021-07-22 07:53:12 +02:00