Commit Graph

2160 Commits (5bbcabf17dee532f94fb85cf24aa6e1bd731a85a)
 

Author SHA1 Message Date
shirou c2f6682078
Merge pull request #1133 from derekhjray/master
v3/diss (Linux): fix disk retrieve partition issue while using in container
4 years ago
shirou b39f8bb90e
[v2][disk][linux] apply DiskPartiton change to v2 4 years ago
shirou 8d02cf8b0c
Merge pull request #1138 from shirou/feature/v3_add_swapdevice
[mem] Add mem.SwapDevices() to v3
4 years ago
shirou 7be7e7807f [process] extend maxElapsedTime on process_test 4 years ago
shirou 9e82343ffb [mem] fix import path 4 years ago
shirou 8177d340fd [mem] Add swapdevice 4 years ago
shirou 8d7a3abddb
Merge pull request #1131 from punya/tbarker25-swap-contd
Add swapdevices method (continued from #1120)
4 years ago
shirou 532241fa78
Merge pull request #1137 from mx-psi/mx-psi/fix-duplicate-symbol
Rename `readdrivestat` function on v3
4 years ago
shirou 582bb14d8a
[linux][mem] remove unnecessary import 4 years ago
Pablo Baeyens 78e8d0adf0
Rename 'readdrivestat' function on v3
Signed-off-by: Pablo Baeyens <pablo.baeyens@datadoghq.com>
4 years ago
Punya Biswal 32b14a3723 Use invoke.CommandWithContext 4 years ago
Florent 27a70bceed Change usage from os.*File.Readdir to os.*File.ReadDir. 4 years ago
shirou cc70488af8
Merge pull request #1134 from rasa/patch-2
Fix minor typos, formatting tweaks
4 years ago
Ross Smith II 5f0e37d823
Fix minor typos, formatting tweaks 4 years ago
shirou 80d5b57405
Merge pull request #1132 from rasa/rasa/add_arm_support
Add arm/arm64 support on Windows (fixes #916)
4 years ago
Derek Ray 1fa38051cb v3/diss (Linux): fix disk retrieve partition issue while using in container 4 years ago
Ross Smith II 14b7231917 Add arm/arm64 support on Windows 4 years ago
shirou ce5729cbcd
Merge pull request #1130 from sunshineplan/master
v3/process (Win): fix Kill() DuplicateHandle error
4 years ago
Punya Biswal 5169bfe02d
Update mem/mem_bsd.go
Co-authored-by: shirou <shirou.faw@gmail.com>
4 years ago
Punya Biswal 7c1aa06a5e Respond to review comments
* use LookPath for better error messages
* support procfs in containers
4 years ago
sunshineplan 785e379e67 v3/process (Win): fix Kill() DuplicateHandle error 4 years ago
shirou f8cc3bd072
Merge pull request #1128 from shibukawa/fix/readmeformat
convert README from reStructuredText to Markdown
4 years ago
Yoshiki Shibukawa 05e51b6d4b convert README from reStructuredText to Markdown 4 years ago
shirou 5268453c1e
Merge pull request #1126 from tklauser/sysconf-update
Update github.com/tklauser/go-sysconf to v0.3.9
4 years ago
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
4 years ago
shirou 0d0659af18
Merge pull request #1122 from secDre4mer/master
chore: Drop PROCESS_QUERY_INFORMATION support
4 years ago
shirou 595a6297e0
Merge pull request #1119 from tbarker25/process-fixes-1
Fixes for Test_Connections in process_linux.go
4 years ago
Tom Barker 9248140c98 Wait for server connection to be established before checking
connections.
4 years ago
Tom Barker d26900de91 Copy ProcessCreated field from v2 to v3. 4 years ago
Tom Barker bc4661937d Minor cleanups motivated by staticcheck warnings. 4 years ago
Tom Barker 5ce887df8f Make sure that Test_AllProcesses_cmdLine doesn't ignore failures. 4 years ago
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.
4 years ago
Tom Barker 84a665b712 Add mem.SwapDevices() method. 4 years ago
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.
4 years ago
Ville Skyttä a21240a319 Simplify some if blocks 4 years ago
Ville Skyttä fb0c322260 Check error identity with errors.Is 4 years ago
Ville Skyttä 633e77013f Use short if 4 years ago
Ville Skyttä ce9d35436e Merge variable declaration with assignment 4 years ago
Ville Skyttä 5d0724f42f Comment convention fixes 4 years ago
Ville Skyttä 803cea9d67 Don't use underscores in variable names 4 years ago
Ville Skyttä 65616500e8 Remove unnecessary empty lines 4 years ago
Ville Skyttä a9b1ce2dec Remove unnecessary conversions 4 years ago
Ville Skyttä 7743265113 Rewrite if-else chains as switches 4 years ago
shirou f86a042980
Merge pull request #1117 from tklauser/update-go-sysconf
Update github.com/tklauser/go-sysconf to v0.3.8
4 years ago
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
4 years ago
shirou ff3e668a6d
Create FUNDING.yml 4 years ago
shirou ab783600d3
Merge pull request #1116 from shirou/feature/port_to_v2_from_1112
[v2][process][linux] port 1112 to v2.
4 years ago
shirou b27be3812b [v2][process][linux] port 1112 to v2.
This port includes only code. test is not included.
4 years ago
shirou efc3e519be
Merge pull request #1112 from xuyang2/process-name-linux
[process][linux] get name from /proc/(pid)/comm
4 years ago
xuyang2 45a01f678c [process][linux] get name from /proc/(pid)/comm 4 years ago