1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-05-10 19:29:14 +08:00

1648 Commits

Author SHA1 Message Date
Lomanic
5641beec4c [process][darwin] Fix Parent() when lsof returns warnings
Same as #867, the error being:
error strconv.Atoi: parsing "      Output information may be incomplete.": invalid syntax
2020-11-08 17:13:56 +01:00
Lomanic
148a662b06 [process][darwin] Remove Groups() as it's non-functional 2020-11-08 17:13:56 +01:00
Lomanic
64e16cc8c3 [net][darwin] Fix tests with mismatched types 2020-11-08 17:13:56 +01:00
Lomanic
7f0ba43398 [net][darwin][freebsd] Fix tests with func not returning common.ErrNotImplementedError 2020-11-08 17:13:56 +01:00
Lomanic
907e475a45 [v3][process] Fix Test_Process_Status test with new Status() API 2020-11-08 17:13:56 +01:00
Lomanic
29304ebf73 [ci] Implement automatic tests on GH Actions on linux, windows and darwin
Based off 3710bfcc3e/.github/workflows/test.yml
2020-11-08 17:13:56 +01:00
Lomanic
f2b8fbd047
Merge pull request #983 from shirou/v3_fix_cpu_windows_struct_name
[cpu][windows] fix CPU struct name on windows.
2020-11-05 18:39:19 +01:00
shirou
6b690e8250
Merge pull request #985 from Lomanic/fix-labeler-ci
Fix labeler CI "HttpError: Resource not accessible by integration" error
2020-11-05 11:16:49 +09:00
Lomanic
596154ddc6 Fix labeler CI "HttpError: Resource not accessible by integration" error
See https://github.com/actions/labeler/issues/12#issuecomment-670967607
2020-11-05 00:08:55 +01:00
shirou
9e51e095ad [cpu][windows] fix CPU struct name on windows. 2020-11-02 22:01:27 +09:00
shirou
a1e77476b2
Merge pull request #938 from shirou/feature/migration_to_v3
v3 migration
v3.20.10
2020-11-01 13:33:05 +09:00
shirou
407a11a7e1 [v3] add to labeler. 2020-11-01 13:27:54 +09:00
shirou
99de861280 [v3] update README 2020-11-01 00:39:46 +09:00
shirou
8e2446b0ac [v3][process] apply #962 2020-10-31 23:39:29 +09:00
shirou
09af60d248 [v3 migration] add more changelog and README. 2020-10-31 23:29:25 +09:00
shirou
b7e74218ca [v3 migration] change process.Status returns []string with no letter status string. 2020-10-31 23:29:25 +09:00
shirou
4b5a200e71 [v3 migration] change return type to CgroupCPUStat 2020-10-31 23:29:24 +09:00
shirou
6920de8509 [v3 migration] Fixed temperature sensors detection in Linux #905 2020-10-31 23:29:24 +09:00
shirou
05fef68f42 [v3 migration] change net.[]InterfaceAddr to net.InterfaceAddrList 2020-10-31 23:29:24 +09:00
shirou
33e4b67dfc [v3] rename Label and SerialNumber to all platform from linux specific. 2020-10-31 23:29:24 +09:00
shirou
005a35c436 [v3 migartion] add v3 sourcodes, and change disk.opts to []string 2020-10-31 23:29:24 +09:00
shirou
2f4e0de9bf rename tools to _tools 2020-10-31 23:29:24 +09:00
shirou
1fb8e86fd8 remove unused struct in process_windows.go 2020-10-31 23:29:24 +09:00
shirou
10473900b7 add more JSON incorrect names. 2020-10-31 23:29:24 +09:00
shirou
558b36a764 fix platform dependent exported values. 2020-10-31 23:29:24 +09:00
shirou
bdd85e5bc0 fix #545 2020-10-31 23:29:24 +09:00
shirou
9bbeb5bc81 initial commit of v3 migration. 2020-10-31 23:29:24 +09:00
Lomanic
f810d518bb
Merge pull request #962 from AtakanColak/fix-ppid-race-961
Fix Windows Ppid Cache Race Condition
2020-10-29 20:52:08 +01:00
shirou
bb232c46d3
Merge pull request #980 from shirou/feature/fix_tests_and_not_implemented_error
fix test and openbsd errors.
2020-10-26 22:12:24 +09:00
shirou
95c6cb4308
Merge pull request #978 from shirou/feature/refactor_disk_without_context_functions
[disk] move non-"WithContext()" functions to platform-agnostic files
2020-10-26 22:08:26 +09:00
shirou
f377a07e5a fix test and openbsd errors. 2020-10-25 19:06:59 +09:00
shirou
9ffeb8d368
Merge pull request #979 from ajacoutot/openbsd-process
process: unbreak build on OpenBSD
2020-10-25 15:23:49 +09:00
Antoine Jacoutot
013cd610f5 process: unbreak build on OpenBSD
Match FreeBSD code to prevent:
process_openbsd.go:230:10: cannot use k.Groups (type [16]uint32) as type []int32 in return argument
2020-10-24 15:35:19 +02:00
shirou
1f733a99dc [disk] move without context functions to disk.go. 2020-10-24 22:03:58 +09:00
shirou
cf222ab258
Merge pull request #975 from shirou/feature/remove_disk_partition_args_on_bsds
Feature/remove disk partition args on bsds
2020-10-24 10:25:30 +09:00
AtakanColak
13602a3824 fix ppid cache race condition #964 2020-10-23 11:38:02 +03:00
shirou
f258441486 add more platform to labeler. 2020-10-22 10:07:45 +09:00
shirou
23a52469fa add github labeler to set labels automatically. 2020-10-21 22:20:24 +09:00
shirou
fb1c75054a [disk] Partition returns all list even if argument is False.
According to https://github.com/giampaolo/psutil/issues/906,
all BSD system returns same information `df` and `df -a`.
2020-10-20 18:13:12 +09:00
shirou
3202231bcd
Merge pull request #966 from boogie-byte/dry-process
Refactor "process" package
2020-10-18 18:16:16 +09:00
Lomanic
34fbc94ac1
Merge pull request #963 from AtakanColak/simpler-virt-cache
Simplify Fix Virtualization Cache Race Condition
2020-10-16 00:40:38 +02:00
Lomanic
278ae7d3a6
Merge pull request #970 from Lomanic/issue958 2020-10-16 00:15:39 +02:00
Lomanic
32d4603d01 [disk][darwin] fix build with latest golang.org/x/sys/unix
Fixes #958
2020-10-15 23:59:25 +02:00
Atakan
3504ea07b0 simplify virt cache 2020-10-13 11:06:20 +03:00
Sergey Vinogradov
065e609cbf Refactor "process" package
* All context-less wrapping functions (the ones without WithContext
suffix) were moved into process.go since they all are the same.
* Call context is now passed to all underlying functions in
*WithContext() functions.
* All common *BSD bits were moved to process_bsd.go.
* Process.Tgid() method lacked a WithContext counterpart, so
Process.TgidWithContext() was added for uniformity.
* NewProcessWithContext() function was added since NewProcess() is
used a lot throughout the module, and there is no way to pass a
context to it.

This is a part of #761 effort.
2020-10-12 18:15:29 +03:00
shirou
b94f262e7d
Merge pull request #949 from boogie-byte/vet-target
Add "vet" target to the Makefile
2020-10-11 23:01:10 +09:00
shirou
7144fe3fff
Merge pull request #955 from fancybits/disk-bind-root
[disk][linux] flag bind mounts
2020-10-11 21:19:38 +09:00
shirou
ad46664943
Merge pull request #951 from rmfitzpatrick/fix_virtualization_race
Fix VirtualizationWithContext() race in linux
2020-10-11 21:03:32 +09:00
shirou
fe68b86b08
Merge pull request #948 from AtakanColak/windows-cache-ppid
Cache Process Parent ID in Windows
2020-10-11 18:52:27 +09:00
Sergey Vinogradov
8ff2ab3187 Add "vet" target to the Makefile
Making the "vet" target will run "go vet ./..." for each supported
GOOS.

Also, some of the warnings produced by go 1.15 vet were mitigated.
2020-10-10 16:50:49 +03:00