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

2679 Commits

Author SHA1 Message Date
shirou
a6193ba8d7
Merge pull request #1610 from shirou/dependabot/github_actions/actions/checkout-4.1.2
chore(deps): bump actions/checkout from 4.1.1 to 4.1.2
2024-03-13 10:48:22 +09:00
dependabot[bot]
f23341d6ed
chore(deps): bump actions/checkout from 4.1.1 to 4.1.2
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](b4ffde65f4...9bb56186c3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-13 01:32:06 +00:00
shirou
94b8051c1a [process][freebsd]: re-generate types on freebsd arm64 2024-03-12 23:52:30 +09:00
dependabot[bot]
711bcdd11a
chore(deps): bump golang.org/x/sys from 0.17.0 to 0.18.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.17.0 to 0.18.0.
- [Commits](https://github.com/golang/sys/compare/v0.17.0...v0.18.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-05 01:03:39 +00:00
shirou
5b2dd59fb9
Merge pull request #1603 from shirou/feat/host_linux_fix_arm64_utmp_size
[host][linux]: fix utmp size on linux/arm64
2024-03-05 00:57:39 +09:00
shirou
cbefbb023e [host][linux]: add pading on linux_arm64 2024-03-04 22:25:21 +09:00
shirou
cfb7a5dc2e [host][linux]: change Line/User/Host to int8 on utmp
Generated code is uint8 on arm64. However, it is not same as other archtectures.
This commit changes by hand.
2024-03-02 13:22:22 +09:00
shirou
d86a995563 [host][linux]: fix utmp size on linux/arm64 2024-03-02 11:07:47 +09:00
shirou
a3ed85190d
Merge pull request #1601 from shirou/dependabot/github_actions/actions/cache-4.0.1
chore(deps): bump actions/cache from 4.0.0 to 4.0.1
2024-03-01 11:04:13 +09:00
dependabot[bot]
83db43b2e5
chore(deps): bump actions/cache from 4.0.0 to 4.0.1
Bumps [actions/cache](https://github.com/actions/cache) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](13aacd865c...ab5e6d0c87)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-01 01:23:42 +00:00
shirou
e767a0f0f8
Merge pull request #1599 from shirou/feat/add_macos_on_github_action_test
[ci]: add macos-13 and macos-14 on GitHub Action
v3.24.2
2024-02-24 10:35:20 +09:00
shirou
53fb8caad4 [darwin][ci]: skip frequency check on GitHub Action 2024-02-24 01:25:24 +00:00
shirou
25c3f409bd [ci]: add macos-13 and macos-14 on GitHub Action 2024-02-21 10:06:30 +00:00
shirou
146bae2a47
Merge pull request #1597 from vlnaum/cwd_windows
cwd for windows is supported
2024-02-21 19:03:38 +09:00
vlnaum
d3057c252f cwd support windows doc 2024-02-19 16:23:27 +00:00
shirou
8aeaf163ab
Merge pull request #1594 from jmatthew/openbsd-riscv64
add support for OpenBSD/riscv64
2024-02-13 17:48:27 +09:00
shirou
cbbb2402fe
Merge pull request #1595 from shirou/dependabot/github_actions/golangci/golangci-lint-action-4.0.0
chore(deps): bump golangci/golangci-lint-action from 3.7.0 to 4.0.0
2024-02-12 10:59:12 +09:00
dependabot[bot]
d0037dd62b
chore(deps): bump golangci/golangci-lint-action from 3.7.0 to 4.0.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.7.0 to 4.0.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](3a91952989...3cfe3a4abb)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-12 01:54:44 +00:00
Jonathan Matthew
6ccc60519e update list OpenBSD arch list 2024-02-11 16:21:34 +10:00
Jonathan Matthew
27ffa28a0d add support for OpenBSD/riscv64 2024-02-11 16:20:56 +10:00
shirou
6ef32c35a0
Merge pull request #1590 from shirou/dependabot/go_modules/github.com/yusufpapurcu/wmi-1.2.4
chore(deps): bump github.com/yusufpapurcu/wmi from 1.2.3 to 1.2.4
2024-02-08 03:19:03 -08:00
dependabot[bot]
44981c6f45
chore(deps): bump github.com/yusufpapurcu/wmi from 1.2.3 to 1.2.4
Bumps [github.com/yusufpapurcu/wmi](https://github.com/yusufpapurcu/wmi) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/yusufpapurcu/wmi/releases)
- [Commits](https://github.com/yusufpapurcu/wmi/compare/v1.2.3...v1.2.4)

---
updated-dependencies:
- dependency-name: github.com/yusufpapurcu/wmi
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-08 01:48:05 +00:00
shirou
c0546fb392
Merge pull request #1592 from shirou/dependabot/go_modules/golang.org/x/sys-0.17.0
chore(deps): bump golang.org/x/sys from 0.16.0 to 0.17.0
2024-02-07 17:47:30 -08:00
dependabot[bot]
4e79582e33
chore(deps): bump golang.org/x/sys from 0.16.0 to 0.17.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/sys/compare/v0.16.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-08 01:10:01 +00:00
shirou
802108d8a5
Merge pull request #1591 from shirou/dependabot/github_actions/actions/upload-artifact-4.3.1
chore(deps): bump actions/upload-artifact from 4.3.0 to 4.3.1
2024-02-05 19:29:23 -08:00
dependabot[bot]
1a8f96c633
chore(deps): bump actions/upload-artifact from 4.3.0 to 4.3.1
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.0 to 4.3.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](26f96dfa69...5d5d22a312)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-06 01:51:03 +00:00
shirou
65b5fa32b9
Merge pull request #1587 from shirou/dependabot/github_actions/actions/upload-artifact-4.3.0
chore(deps): bump actions/upload-artifact from 4.2.0 to 4.3.0
v3.24.1
2024-01-24 12:08:42 +09:00
dependabot[bot]
22413975af
chore(deps): bump actions/upload-artifact from 4.2.0 to 4.3.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](694cdabd8b...26f96dfa69)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-24 01:04:27 +00:00
shirou
9de1a429b9
Merge pull request #1585 from DataDog/bryce.kahle/os-release-version-id
use VERSION_ID from os-release
2024-01-21 11:14:24 +09:00
shirou
9b6f82813a
Merge pull request #1584 from DataDog/bryce.kahle/host-platform
ensure host platform are files and have contents
2024-01-21 10:12:15 +09:00
shirou
dc01f63e85
Merge pull request #1583 from shirou/dependabot/github_actions/actions/cache-4.0.0
chore(deps): bump actions/cache from 3.3.3 to 4.0.0
2024-01-19 22:36:15 +09:00
shirou
e912ebde7a
Merge pull request #1580 from jnewmano/patch-1
Windows, read all PIDs if there are more than 1024 PIDs.
2024-01-19 22:35:54 +09:00
shirou
b86b36a290
Merge pull request #1586 from shirou/dependabot/github_actions/actions/upload-artifact-4.2.0
chore(deps): bump actions/upload-artifact from 4.1.0 to 4.2.0
2024-01-19 10:44:28 +09:00
dependabot[bot]
61758d5e3c
chore(deps): bump actions/upload-artifact from 4.1.0 to 4.2.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](1eb3cb2b3e...694cdabd8b)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-19 01:25:55 +00:00
Bryce Kahle
d753f78612
use VERSION_ID from os-release
`VERSION_ID` is more appropriate for scripts and other usages, since `VERSION` can contain spaces and codenames

from `os-release` manpage:
```
VERSION=
           A string identifying the operating system version, excluding
           any OS name information, possibly including a release code
           name, and suitable for presentation to the user. This field
           is optional.

           Examples: "VERSION=17", "VERSION="17 (Beefy Miracle)"".

 VERSION_ID=
           A lower-case string (mostly numeric, no spaces or other
           characters outside of 0–9, a–z, ".", "_" and "-") identifying
           the operating system version, excluding any OS name
           information or release code name, and suitable for processing
           by scripts or usage in generated filenames. This field is
           optional.

           Examples: "VERSION_ID=17", "VERSION_ID=11.04".
```
2024-01-18 10:34:34 -08:00
Bryce Kahle
b0d976c49b
ensure host platform are files and have contents
In a containerized deployment, it is common to mount several files from /etc. Within the container, those files will be created regardless if they exist on the host or not. In those instances, the existing code would erroneously return empty platform information.
2024-01-18 10:21:42 -08:00
dependabot[bot]
f28a23e3b3
chore(deps): bump actions/cache from 3.3.3 to 4.0.0
Bumps [actions/cache](https://github.com/actions/cache) from 3.3.3 to 4.0.0.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](e12d46a63a...13aacd865c)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-17 01:10:14 +00:00
shirou
83c941c791
Merge pull request #1582 from shirou/dependabot/github_actions/actions/upload-artifact-4.1.0
chore(deps): bump actions/upload-artifact from 4.0.0 to 4.1.0
2024-01-15 12:11:31 +09:00
dependabot[bot]
73f479fdcd
chore(deps): bump actions/upload-artifact from 4.0.0 to 4.1.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](c7d193f32e...1eb3cb2b3e)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-15 01:40:04 +00:00
shirou
442e0ad6f9
Merge pull request #1575 from shirou/feat/fix_disk_unix_uint64cast
[linux][disk]: fix Rdev cast
2024-01-14 18:22:08 +09:00
shirou
8aa43a2785
Merge pull request #1577 from shirou/dependabot/go_modules/golang.org/x/sys-0.16.0
chore(deps): bump golang.org/x/sys from 0.15.0 to 0.16.0
2024-01-14 18:17:05 +09:00
shirou
9627f199e2
Merge pull request #1579 from shirou/feature/enable_cache_on_host_boottime
[host]: add EnableBootTimeCache function
2024-01-14 18:13:05 +09:00
shirou
4ba3cd4d59
Merge pull request #1581 from shirou/dependabot/github_actions/actions/cache-3.3.3
chore(deps): bump actions/cache from 3.3.2 to 3.3.3
2024-01-12 14:08:39 +09:00
dependabot[bot]
2b5830f6f9
chore(deps): bump actions/cache from 3.3.2 to 3.3.3
Bumps [actions/cache](https://github.com/actions/cache) from 3.3.2 to 3.3.3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](704facf57e...e12d46a63a)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-12 01:12:28 +00:00
Jason Newman
15f7946fcb
Windows, read all pids if there are more than 1024 pids.
Convert bytes read to number of uint32s that were read.
2024-01-11 13:04:15 -07:00
shirou
b10acd4894 [host]: add EnableBootTimeCache function 2024-01-11 00:49:11 +09:00
shirou
13218ce5b1 feat: add linux, mips on build test 2024-01-10 23:08:22 +09:00
dependabot[bot]
3a36b46e6c
chore(deps): bump golang.org/x/sys from 0.15.0 to 0.16.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.15.0 to 0.16.0.
- [Commits](https://github.com/golang/sys/compare/v0.15.0...v0.16.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-05 01:59:24 +00:00
shirou
ce11e9ca5f [linux][disk]: fix Rdev cast 2024-01-01 22:07:23 +09:00
shirou
df3c7bdec0
Merge pull request #1573 from scop/feat/udev-fs-label
feat(disk): look for filesystem labels from udev on Linux
v3.23.12
2023-12-31 15:59:26 +09:00