Ville Skyttä
093e68cb91
[mem][solaris] improve prtconf memory size scraping
...
Accept uppercase Memory, that's how it appears to be at least in Solaris
11.3 and OpenIndiana oi_151a7.
2021-10-22 18:27:43 +03:00
Ville Skyttä
768c3b1888
[mem][solaris] don't hardcode path to prtconf in error message
2021-10-22 18:22:07 +03:00
Adrien CABARBAYE
0953979fef
Use ole with Arm Windows support
2021-10-19 17:45:03 +01:00
shirou
1777fa2fcc
[v3][plan9][mem] fix fallback build tag
2021-10-17 13:44:12 +00:00
shirou
4db4dc09a0
[v3] fix Signal import on dragonfly OS in fallback
2021-10-17 13:13:57 +00:00
shirou
3e7da36a46
[mem][solaris] fix wrong variable name.
2021-10-17 10:13:04 +00:00
shirou
b96339ab43
[v3] update x/sys version.
2021-10-17 09:56:58 +00:00
shirou
79c6edf913
Merge pull request #1148 from lufia/add-plan9-mem
...
[v3][mem] add plan9 support
2021-10-09 23:33:43 +09:00
shirou
54eae75ed3
Merge pull request #1150 from shirou/feature/fix_mem_bsd
...
[mem][bsd] fix missing arg
2021-10-09 22:54:00 +09:00
WAKAYAMA shirou
46d6fcc192
[mem][bsd] fix missing arg
2021-10-09 22:49:58 +09:00
shirou
285b4a4a01
Merge pull request #1142 from maier/master
...
fixes for mem_solaris.go
2021-10-09 22:48:31 +09:00
lufia
0eae055018
[v3][mem] add plan9 support
2021-10-09 07:44:59 +09:00
Lars Meyer
db020a3546
[host][windows][v3] Fix Windows 11 reporting
...
While ProductName remains "Windows 10", versions with Build no. >= 22000
are Windows 11.
2021-10-08 09:36:43 +02:00
maier
4dcbf38c38
remove go1.17 build constraint
2021-10-07 08:57:42 -04:00
shirou
3ff6b5dd8b
[v3][mem] add missing files.
2021-10-07 12:57:31 +00:00
shirou
5bdd02c944
Merge pull request #1140 from punya/proc-created-v3
...
Copy load.MiscStat ProcsCreated field from v2 to v3 (supersedes #1123 )
2021-10-07 20:19:23 +09:00
maier
d644c6bef6
fix: mem/mem_solaris.go:148:42: cannot use swapsCommandPath (type string) as type context.Context in argument to invoke.CommandWithContext - add ctx to call
2021-10-06 11:11:09 -04:00
maier
87fc40cbd6
fix: mem/mem_solaris.go:146:59: undefined: swapCommand - typo swapsCommand
2021-10-06 11:10:07 -04:00
Punya Biswal
bf1ba03736
Copy BSD implementation to v3
2021-10-01 14:22:36 -04:00
shirou
c2f6682078
Merge pull request #1133 from derekhjray/master
...
v3/diss (Linux): fix disk retrieve partition issue while using in container
2021-09-30 22:51:49 +09:00
shirou
7be7e7807f
[process] extend maxElapsedTime on process_test
2021-09-30 07:47:05 +00:00
shirou
9e82343ffb
[mem] fix import path
2021-09-30 07:08:34 +00:00
shirou
8177d340fd
[mem] Add swapdevice
2021-09-30 02:15:30 +00: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
Derek Ray
1fa38051cb
v3/diss (Linux): fix disk retrieve partition issue while using in container
2021-09-18 17:17:59 +08:00
Ross Smith II
14b7231917
Add arm/arm64 support on Windows
2021-09-14 17:06:54 -07:00
sunshineplan
785e379e67
v3/process (Win): fix Kill() DuplicateHandle error
2021-09-05 11:09:45 +08: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
Tom Barker
9248140c98
Wait for server connection to be established before checking
...
connections.
2021-08-23 16:30:51 -04:00
Tom Barker
d26900de91
Copy ProcessCreated field from v2 to v3.
2021-08-19 11:01:42 -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
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
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
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
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
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
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
78e21dd887
Merge pull request #1097 from secDre4mer/master
...
feat: Add support for environment variable read
2021-07-23 22:24:38 +09:00
odinje
a3e22baec0
Ensure rhel platform family for Rocky Linux
2021-07-21 23:04:09 +02:00
Max Altgelt
9ad6c64727
fix: Remove superfluous EnvironWithContext definitions
...
Since Darwin / FreeBSD / OpenBSD all use process_bsd.go, remove
the duplicated "not implemented" EnvironWithContext definitions
from their custom go files.
Signed-off-by: Max Altgelt <max.altgelt@nextron-systems.com>
2021-07-19 09:22:20 +02:00
Max Altgelt
5f61473ffd
fix: Correct UNICODE_STRING64 definition
...
Correct the UNICODE_STRING64 definition. The length is only
16 bits, followed by 16 bit max length and 32 bit padding.
2021-07-19 07:34:42 +02:00
Aneurin Barker Snook
42f69011cc
fix wmi version
2021-07-13 16:38:10 +01:00