shirou
9ef02b7d37
Merge pull request #1805 from mmorel-35/fix/aix
...
chore(golangci-lint): cover aix and cgo
1 week ago
Mingyang Zheng
b59facf6aa
Since Windows does not distinguish between Major and Minor faults, all faults are treated as Major
1 week ago
Mingyang Zheng
a2f71c4078
Since Windows does not distinguish between Major and Minor faults, all faults are treated as Major
1 week ago
Mingyang Zheng
0be0ec4e46
merge
1 week ago
Matthieu MOREL
0a45e0f24d
chore(golangci-lint): cover aix and cgo
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 week ago
shirou
edcde3adba
Merge pull request #1797 from mmorel-35/golangci-lint-matrix
...
chore(golangci-lint): GOOS and GOARCH matrix
3 weeks ago
Matthieu MOREL
30aff030d0
chore(golangci-lint): GOOS and GOARCH matrix
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
3 weeks ago
Romain Marcadier
5da36ee6c8
fix: CmdlineSlice[WithContext] incorrect on Windows
3 weeks ago
Matthieu MOREL
9ce2ec161e
chore: enable golangci-lint on Windows and MacOS
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 month ago
Mingyang Zheng
122878c79b
feat(process_windows): Support collecting PageFault count in Windows
2 months ago
uubulb
1f39525d2d
refactor(darwin): optimize string allocation
2 months ago
shirou
a284e30930
[process][freebsd]: add CWD
3 months ago
shirou
fe28b21c2e
Merge pull request #1762 from mmorel-35/perfsprint
...
enable all rules of perfsprint linter
3 months ago
Matthieu MOREL
7e19b35f50
enable all rules of perfsprint linter
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
3 months ago
Matthieu MOREL
62267a5956
enable all rules of testifylint linter
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
3 months ago
shirou
3f1658bc71
Merge pull request #1743 from mmorel-35/testifylint
...
enable testifylint linter
3 months ago
Matthieu MOREL
06e4051c91
enable testifylint linter
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
4 months ago
NitroCao
fcdd277935
fix: release process after os.FindProcess()
6 months ago
shirou
7ec134321c
Merge pull request #1713 from joshiste/joshiste-precise-create-time
...
Fix resolution for process create time limited to seconds
6 months ago
shirou
4140cda4ac
Merge pull request #1702 from uubulb/purego_darwin
...
feat(cpu, mem, sensors, disk, process)(darwin): cgo-free implementations
6 months ago
Johannes Edmeier
3dc12249d3
Allow subsecont precision for process create time
6 months ago
huang
462736cb8b
add comment for NumFDsWithContext
6 months ago
uubulb
9e6efdb991
update disk & cpu & process
6 months ago
huang
cbc32afb65
implement NumFDs for Windows
6 months ago
Lomanic
76ccf0d220
[process][darwin][freebsd][linux][openbsd] Make process.Children not reliant on pgrep
...
pgrep -P $PID exits with status of 1 (and nothing in stdout nor stderr) both if
a process doesn't exist or it doesn't have child processes, so we don't
use it anymore on these OSes. We sort PIDs as pgrep did.
Also deprecate the ErrorNoChildren error when there are no child processes,
this is erroneous (simply check for the length of the returned slice, plus
this is not an error per se), this was only returned on linux anyway.
Fixes #1698
6 months ago
shirou
74cb403730
Merge pull request #1694 from fivitti/master
...
Fix panic on OpenBSD and FreeBSD systems if KinfoProc size has an unexpected size
7 months ago
Cnpt
829f2fafbd
Refactoring the algorithm for calculating CPU usage ( #1692 )
...
refactor(process): Refactoring the algorithm for calculating CPU usage
7 months ago
shirou
2a37a1d32b
Merge pull request #1691 from pgimalac/pgimalac/fix-proc-smaps-parsing
...
Fix parsing of /proc/pid/smaps when path is empty
7 months ago
shirou
37f531010d
fix golangcilint errors, ignore gosec G115
7 months ago
Slawek Figiel
977269202e
fix: handle invalid KinfoProc size on BSD systems
7 months ago
Pierre Gimalac
d4ac231298
Merge branch 'master' of github.com:pgimalac/gopsutil into pgimalac/fix-proc-smaps-parsing
7 months ago
Pierre Gimalac
a1f9e69b5d
fix: join path elements in case it contains spaces
7 months ago
shirou
5f158096be
fix: golangci lint with max -> maxConn
7 months ago
Pierre Gimalac
33251d10ec
fix(proc): parsing of smaps path
7 months ago
shirou
6bdbf65126
[process]: Introduce DiskReadBytes on process which shows Disk IO only.
10 months ago
shirou
e9591b5b01
rename redundant test function names, such as TestCPU in cpu package
10 months ago
shirou
85f5f3a8e2
process.Uids and process.Gids are now return uint32
10 months ago
Sergey Chernomorets
aace5e9d8f
Groups in /proc/PID/status has type uint32.
...
Fix error of parser:
> error get info about worker process status 3150292: strconv.ParseInt:
> parsing "4294967293": value out of range
$ grep Groups /proc/self/status
Groups: 20001 [...] 4294967293
10 months ago
shirou
bc060cc227
add SPDX License, remove old build tag, and replace import
10 months ago
shirou
4336530318
Merge pull request #1649 from shirou/feat/add_process_cwd_openbsd
...
[process][openbsd]: add cwd on openbsd.
10 months ago
shirou
57d4c8a90a
[process][openbsd]: add cwd on openbsd.
10 months ago
mdrakos
f4eca4318c
Add fallback for lsof output
10 months ago
shirou
94b8051c1a
[process][freebsd]: re-generate types on freebsd arm64
1 year ago
Jonathan Matthew
27ffa28a0d
add support for OpenBSD/riscv64
1 year ago
shirou
e912ebde7a
Merge pull request #1580 from jnewmano/patch-1
...
Windows, read all PIDs if there are more than 1024 PIDs.
1 year ago
Jason Newman
15f7946fcb
Windows, read all pids if there are more than 1024 pids.
...
Convert bytes read to number of uint32s that were read.
1 year ago
shirou
b10acd4894
[host]: add EnableBootTimeCache function
1 year ago
Chris Gianelloni
a8418dfd73
feat: use lsof for net_connections on FreeBSD
...
Use net.ConnectionsPidWithContext on FreeBSD, similarly to how it is done
on Darwin. This uses common.CallLsofWithContext underneath the hood, which
will use lsof under the hood, if available.
Tested on FreeBSD 13.2-RELEASE
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
1 year ago
shirou
83427f964f
[process][darwin]: skip process.Nice test if darwin on GitHub Action
...
fix: https://github.com/shirou/gopsutil/issues/1532
1 year ago
Matthieu MOREL
c806740b34
ci(lint): ensure io/ioutil replacement ( #1525 )
...
* ci(lint): enure ioutil replacement
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
* Update host_solaris.go
* Update process_linux_test.go
* Update net_linux_test.go
* Update net_linux_test.go
* Update process_test.go
* Update process_linux_test.go
* Update process_linux_test.go
---------
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 years ago