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
7b10596d95
Poke CI
2021-10-04 12:23:07 -04:00
shirou
5e4b256b03
Merge pull request #1141 from shirou/feature/update_github_action_environment_202110
...
Update github action virtual environments and golang version
2021-10-03 23:35:08 +09:00
shirou
bf37f4d1ec
Update github action virtual environments and golang version
...
Golang: 15,16 -> 16, 17
Ubuntu: 1604, 1804 -> 1804, 2004
Mac: 10.14, 11.0 -> 10.15, 11
2021-10-03 13:11:22 +00:00
Punya Biswal
bf1ba03736
Copy BSD implementation to v3
2021-10-01 14:22:36 -04:00
shirou
b057cf4b84
add release recipe in Makefile
2021-10-01 12:53:48 +00:00
shirou
c2f6682078
Merge pull request #1133 from derekhjray/master
...
v3/diss (Linux): fix disk retrieve partition issue while using in container
v3.21.9
2021-09-30 22:51:49 +09:00
shirou
b39f8bb90e
[v2][disk][linux] apply DiskPartiton change to v2
2021-09-30 21:42:30 +09:00
shirou
8d02cf8b0c
Merge pull request #1138 from shirou/feature/v3_add_swapdevice
...
[mem] Add mem.SwapDevices() to v3
2021-09-30 18:06:37 +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
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
Florent
27a70bceed
Change usage from os.*File.Readdir to os.*File.ReadDir.
2021-09-26 17:10:01 +02: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
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
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
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
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
Ville Skyttä
a21240a319
Simplify some if blocks
2021-08-18 17:09:11 +03:00
Ville Skyttä
fb0c322260
Check error identity with errors.Is
2021-08-18 17:09:11 +03:00
Ville Skyttä
633e77013f
Use short if
2021-08-18 17:09:11 +03:00
Ville Skyttä
ce9d35436e
Merge variable declaration with assignment
2021-08-18 17:09:11 +03:00
Ville Skyttä
5d0724f42f
Comment convention fixes
2021-08-18 17:09:03 +03:00
Ville Skyttä
803cea9d67
Don't use underscores in variable names
2021-08-18 16:44:20 +03:00
Ville Skyttä
65616500e8
Remove unnecessary empty lines
2021-08-18 16:42:17 +03:00
Ville Skyttä
a9b1ce2dec
Remove unnecessary conversions
2021-08-18 16:42:11 +03:00
Ville Skyttä
7743265113
Rewrite if-else chains as switches
2021-08-18 16:37:51 +03:00