1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-24 13:48:56 +08:00

25 Commits

Author SHA1 Message Date
shirou
9d35f6e749 fix(github): change v4 to v4 in github actions and README 2024-06-01 08:39:55 +09:00
shirou
13218ce5b1 feat: add linux, mips on build test 2024-01-10 23:08:22 +09:00
shirou
f78f9a6bb8
Merge pull request #1414 from jeffweiss/bugfix/get_tests_working_on_s390x
get tests passing on s390x
2023-02-12 18:58:26 +09:00
shirou
6a5e40a517
Merge pull request #1228 from abner-chenc/master
host: add support for linux/loong64
2023-02-12 16:48:27 +09:00
Jeff Weiss
f850a69ba1 get tests passing on s390x 2023-02-07 14:12:31 -08:00
Guoqi Chen
b793d83f72 host: add support for linux/loong64
Updates #1338.

Signed-off-by: Guoqi Chen <chenguoqi@loongson.cn>
Co-authored-by: Jiantao Shan <shanjiantao@loongson.cn>
2023-01-14 07:09:59 +08:00
Don Bowman
d7f1f76519
[host] linux/ppc: ppc64 definition from ppc64le
Same as commit fc04d2d, but for ppc64 from ppc64le definition.
2023-01-03 20:56:48 -05:00
shirou
1499bf63a6 feat: drop darwin/i386 from README and Makefile 2022-07-30 02:11:39 +00:00
shirou
cfc178fc4b Add 386 and arm64 on FreeBSD to build_test 2022-02-12 08:06:17 +00:00
shirou
0969c9436b delete v2 directory, move v3 to top #1078 2021-11-30 23:47:59 +00:00
shirou
b057cf4b84 add release recipe in Makefile 2021-10-01 12:53:48 +00:00
Ivan Andreev
d6e0932b96 Remove CGO bits from process_openbsd.go (also v3)
Prior to this commit CGO was used in OpenBSD implementation of
Process.CmdlineSliceWithContext() for parsing the "kern.proc.args"
sysctl output. It requires some pointer arithmetics and raw pointer
dereferencing.

Having CGO in the "process" module prevents it from being go vet'ted
on any platform other than OpenBSD. In order to overcome this
limitation, the sysctl output parsing was reimplemented without raw
pointer deferencing. The resulting code might be slightly slower
than the original one, but it is cleaner and safer.

Since this fix allows go vet with GOOS=openbsd to run without any
issues on all platforms, openbsd entries were also added to the "vet"
Makefile target.

Co-authored-by: Sergey Vinogradov <cbrpnk@gmail.com>
2021-06-11 03:38:46 +03: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
Tobias Klauser
1934eadfcb Add linux/riscv64 build test 2020-06-30 11:34:17 +02:00
shirou
dbbf1edf12 add macos test on CircleCI. 2020-02-26 01:11:33 +09:00
shirou
64d607539e add FreeBSD ARM support. copied from i386 2019-01-17 16:49:20 +09:00
shirou
77e5abb6f0
migrate to circleci2 (#587)
* add circleci 2.0 config, which has golang 1.9 image.
2018-09-16 17:40:02 +09:00
shirou
145dca90f7 change to use CommandContext. 2018-03-31 21:35:53 +09:00
shirou
4c73494c78 Add WithContext functions. 2017-12-31 15:25:49 +09:00
WAKAYAMA Shirou
114c78c777 [host]: add not implemented methods. 2017-08-03 11:08:35 +09:00
WAKAYAMA Shirou
dfbb3e40da fix build bugs. 2017-04-10 22:24:36 +09:00
Marco Pfatschbacher
b4846b445b Add support for OpenBSD/amd64
This code is based on the FreeBSD version
and implements roughly the same feature set.
2016-11-24 22:30:29 +01:00
Lukas Fittl
da9fa1162b Add fallback code for all unsupported operating systems.
This enables using gopsutil in a codebase that gets built on other OSes
than the ones supported. Instead of a build failure as before, due to
the build tags, gopsutil will now throw an "not implemented" runtime
error.

Fixes #234.
2016-08-22 15:31:26 -07:00
Lukas Fittl
fc27f01654 Ensure "make check" can succeeed if it doesn't find any golint errors. 2016-08-16 13:04:47 -07:00
Shirou WAKAYAMA
4c73e74c42 add helpful Makefile. 2016-04-01 22:28:17 +09:00