Commit Graph

471 Commits (1791)

Author SHA1 Message Date
shirou 7b14b866f1
Merge pull request #1783 from mmorel-35/revive/unused-parameter
chore: enable unused-parameter from revive
2 months ago
shirou 9d29c70c52
Merge pull request #1813 from mmorel-35/gocritic
chore: enable gocritic linter
2 months ago
shirou 2ab27a0ba3
Merge pull request #1817 from mmorel-35/revive/var-naming
chore: enable var-naming from revive
2 months ago
shirou f26bf79e15 [host][process]: fix type missmatch test. 2 months ago
Matthieu MOREL dfdd90ab72 chore: enable gocritic linter 2 months ago
Matthieu MOREL 9925fd41ec chore: enable var-naming from revive
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
Matthieu MOREL dc9b409803 chore: enable unused-parameter from revive
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
Matthieu MOREL a5e496769c chore: enable begin rule from thelper
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
Matthieu MOREL 8c1a718a5d chore: use testify instead of testing
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
shirou 9ef02b7d37
Merge pull request #1805 from mmorel-35/fix/aix
chore(golangci-lint): cover aix and cgo
2 months ago
Mingyang Zheng b59facf6aa Since Windows does not distinguish between Major and Minor faults, all faults are treated as Major 2 months ago
Mingyang Zheng a2f71c4078 Since Windows does not distinguish between Major and Minor faults, all faults are treated as Major 2 months ago
Mingyang Zheng 0be0ec4e46 merge 2 months ago
Matthieu MOREL 0a45e0f24d chore(golangci-lint): cover aix and cgo
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
shirou edcde3adba
Merge pull request #1797 from mmorel-35/golangci-lint-matrix
chore(golangci-lint): GOOS and GOARCH matrix
3 months ago
Matthieu MOREL 30aff030d0 chore(golangci-lint): GOOS and GOARCH matrix
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
3 months ago
Romain Marcadier 5da36ee6c8
fix: CmdlineSlice[WithContext] incorrect on Windows 3 months ago
Matthieu MOREL 9ce2ec161e chore: enable golangci-lint on Windows and MacOS
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
3 months ago
Mingyang Zheng 122878c79b feat(process_windows): Support collecting PageFault count in Windows 4 months ago
uubulb 1f39525d2d refactor(darwin): optimize string allocation 4 months ago
shirou a284e30930 [process][freebsd]: add CWD 4 months ago
shirou fe28b21c2e
Merge pull request #1762 from mmorel-35/perfsprint
enable all rules of perfsprint linter
5 months ago
Matthieu MOREL 7e19b35f50 enable all rules of perfsprint linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
5 months ago
Matthieu MOREL 62267a5956 enable all rules of testifylint linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
5 months ago
shirou 3f1658bc71
Merge pull request #1743 from mmorel-35/testifylint
enable testifylint linter
5 months ago
Matthieu MOREL 06e4051c91 enable testifylint linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
6 months ago
NitroCao fcdd277935 fix: release process after os.FindProcess() 8 months ago
shirou 7ec134321c
Merge pull request #1713 from joshiste/joshiste-precise-create-time
Fix resolution for process create time limited to seconds
8 months ago
shirou 4140cda4ac
Merge pull request #1702 from uubulb/purego_darwin
feat(cpu, mem, sensors, disk, process)(darwin): cgo-free implementations
8 months ago
Johannes Edmeier 3dc12249d3
Allow subsecont precision for process create time 8 months ago
huang 462736cb8b add comment for NumFDsWithContext 8 months ago
uubulb 9e6efdb991 update disk & cpu & process 8 months ago
huang cbc32afb65 implement NumFDs for Windows 8 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
8 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
9 months ago
Cnpt 829f2fafbd
Refactoring the algorithm for calculating CPU usage (#1692)
refactor(process): Refactoring the algorithm for calculating CPU usage
9 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
9 months ago
shirou 37f531010d fix golangcilint errors, ignore gosec G115 9 months ago
Slawek Figiel 977269202e fix: handle invalid KinfoProc size on BSD systems 9 months ago
Pierre Gimalac d4ac231298
Merge branch 'master' of github.com:pgimalac/gopsutil into pgimalac/fix-proc-smaps-parsing 9 months ago
Pierre Gimalac a1f9e69b5d
fix: join path elements in case it contains spaces 9 months ago
shirou 5f158096be fix: golangci lint with max -> maxConn 9 months ago
Pierre Gimalac 33251d10ec
fix(proc): parsing of smaps path 9 months ago
shirou 6bdbf65126 [process]: Introduce DiskReadBytes on process which shows Disk IO only. 12 months ago
shirou e9591b5b01 rename redundant test function names, such as TestCPU in cpu package 12 months ago
shirou 85f5f3a8e2 process.Uids and process.Gids are now return uint32 12 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
12 months ago
shirou bc060cc227 add SPDX License, remove old build tag, and replace import 12 months ago
shirou 4336530318
Merge pull request #1649 from shirou/feat/add_process_cwd_openbsd
[process][openbsd]: add cwd on openbsd.
12 months ago
shirou 57d4c8a90a [process][openbsd]: add cwd on openbsd. 1 year ago