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

2341 Commits

Author SHA1 Message Date
Greg Dallavalle
b2d1f05f08 update comment 2023-08-17 09:38:49 -05:00
Greg
aa4c84c6b3
Update disk/disk_linux.go
Co-authored-by: shirou <shirou.faw@gmail.com>
2023-08-17 09:37:46 -05:00
Greg Dallavalle
0ca6266393 fix IOCounters() SerialNumber enumeration 2023-08-16 21:36:08 -05:00
shirou
d428168624
Merge pull request #1506 from shirou/dependabot/github_actions/golangci/golangci-lint-action-3.7.0
chore(deps): bump golangci/golangci-lint-action from 3.6.0 to 3.7.0
2023-08-15 15:20:36 +09:00
dependabot[bot]
7e5f28a19a
chore(deps): bump golangci/golangci-lint-action from 3.6.0 to 3.7.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](639cd343e1...3a91952989)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-15 01:25:55 +00:00
shirou
8ecc0c6804
Merge pull request #1501 from ozanh/master
fix: fixed windows disk package leaks
2023-08-11 17:20:09 +09:00
Ozan HACIBEKİROĞLU
1ed7ea75d7 fix: fixed windows disk package leaks
- fixed goroutine leak in PartitionsWithContext
- closed registry handle in init
2023-08-10 14:48:26 +03:00
shirou
3bddb2a785
Merge pull request #1499 from shirou/dependabot/go_modules/github.com/tklauser/go-sysconf-0.3.12
chore(deps): bump github.com/tklauser/go-sysconf from 0.3.11 to 0.3.12
2023-08-09 11:34:23 +09:00
shirou
2e6d50e11d
Merge pull request #1500 from shirou/dependabot/github_actions/actions/setup-go-4.1.0
chore(deps): bump actions/setup-go from 4.0.1 to 4.1.0
2023-08-09 11:33:46 +09:00
dependabot[bot]
95d458e650
chore(deps): bump actions/setup-go from 4.0.1 to 4.1.0
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4.0.1 to 4.1.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](fac708d667...93397bea11)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-09 01:15:59 +00:00
dependabot[bot]
b8b6f3d675
chore(deps): bump github.com/tklauser/go-sysconf from 0.3.11 to 0.3.12
Bumps [github.com/tklauser/go-sysconf](https://github.com/tklauser/go-sysconf) from 0.3.11 to 0.3.12.
- [Release notes](https://github.com/tklauser/go-sysconf/releases)
- [Commits](https://github.com/tklauser/go-sysconf/compare/v0.3.11...v0.3.12)

---
updated-dependencies:
- dependency-name: github.com/tklauser/go-sysconf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-09 01:12:27 +00:00
shirou
cbd528875a
Merge pull request #1498 from chouquette/fix_linux_mem_metrics
mem: linux: fix vmstat field names
2023-08-08 21:58:18 +09:00
Hugo Beauzée-Luyssen
8181a441a8
mem: linux: fix vmstat field names
The field names are read from /proc/vmstat were capitalized as their
output fields by mistake
2023-08-08 13:53:23 +02:00
shirou
78feb45202
Merge pull request #1496 from shirou/dependabot/go_modules/golang.org/x/sys-0.11.0
chore(deps): bump golang.org/x/sys from 0.10.0 to 0.11.0
2023-08-07 12:26:33 +09:00
dependabot[bot]
9d8e56e0f7
chore(deps): bump golang.org/x/sys from 0.10.0 to 0.11.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/sys/compare/v0.10.0...v0.11.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>
2023-08-07 01:41:42 +00:00
shirou
31d6b3089d
Merge pull request #1495 from kishen-v/powerISACheck
Enable setting of vendor and related information for all Power versions
2023-08-05 22:57:57 +09:00
shirou
0b4d681d64
Merge pull request #1488 from Lomanic/issue1485
[process][posix] Realign process.Name() with python psutil to return same value on python3 scripts processes
v3.23.7
2023-07-30 10:26:00 +09:00
Kishen V
63e0b63ab8 Enable setting of vendor and related information for all Power versions 2023-07-25 09:59:38 +05:30
shirou
c43eaea6a7
Merge pull request #1492 from shirou/dependabot/github_actions/actions/labeler-4.3.0
chore(deps): bump actions/labeler from 4.2.0 to 4.3.0
2023-07-11 16:47:03 +09:00
dependabot[bot]
9421df8699
chore(deps): bump actions/labeler from 4.2.0 to 4.3.0
Bumps [actions/labeler](https://github.com/actions/labeler) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/actions/labeler/releases)
- [Commits](0967ca812e...ac9175f8a1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-11 01:42:30 +00:00
Lomanic
8b96d2e9e2 [process][posix] Realign process.Name() with python psutil to return same value on python3 scripts processes
e2c79a1 started to blindly set the process name to the full path (instead of the basename) of the cmdline exectuable
if the process name from the process comm was truncated on linux. Python psutil never did that, and this is just wrong
for python (or any executable interpreted script) where the process name is not the interpreter binary but the script
itself.

A new test to check process name value against psutil value is added here, which would hopefully catch any potential
future changes in psutil.

Reverts #542

Fixes #1485
2023-07-09 00:43:24 +02:00
shirou
5081a3dcf9
Merge pull request #1486 from elfranne/patch-1
cpu_percent and memory_percent Readme
2023-07-08 23:06:15 +09:00
shirou
042e63609b
Merge pull request #1489 from shirou/dependabot/go_modules/golang.org/x/sys-0.10.0
chore(deps): bump golang.org/x/sys from 0.9.0 to 0.10.0
2023-07-05 21:14:53 +09:00
dependabot[bot]
99c67a47e2
chore(deps): bump golang.org/x/sys from 0.9.0 to 0.10.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/sys/compare/v0.9.0...v0.10.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>
2023-07-05 01:47:25 +00:00
Lomanic
c0f3eb1dfb [process] Remove all noisy and useless Test_AllProcesses_X tests
These tests can't fail more than their invidiual counterparts and produce an incredibly verbose output
2023-07-01 14:44:04 +02:00
shirou
f08589cdac
Merge pull request #1487 from shirou/dependabot/github_actions/actions/labeler-4.2.0
chore(deps): bump actions/labeler from 4.1.0 to 4.2.0
v3.23.6
2023-06-30 19:13:44 +09:00
dependabot[bot]
3a5aa800b7
chore(deps): bump actions/labeler from 4.1.0 to 4.2.0
Bumps [actions/labeler](https://github.com/actions/labeler) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/actions/labeler/releases)
- [Commits](9fcb2c2f55...0967ca812e)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-30 01:32:12 +00:00
Elfranne
b41de48761
cpu_percent and memory_percent update 2023-06-29 13:40:34 +02:00
shirou
fb83fb22d6
Merge pull request #1483 from shirou/dependabot/github_actions/golangci/golangci-lint-action-3.6.0
chore(deps): bump golangci/golangci-lint-action from 3.5.0 to 3.6.0
2023-06-13 23:15:41 +09:00
shirou
88f1b71f94
Merge pull request #1482 from shirou/dependabot/github_actions/actions/checkout-3.5.3
chore(deps): bump actions/checkout from 3.5.2 to 3.5.3
2023-06-13 23:15:30 +09:00
shirou
8ea3154004
Merge pull request #1484 from shirou/dependabot/go_modules/golang.org/x/sys-0.9.0
chore(deps): bump golang.org/x/sys from 0.8.0 to 0.9.0
2023-06-13 23:13:28 +09:00
dependabot[bot]
ddec0d359d
chore(deps): bump golang.org/x/sys from 0.8.0 to 0.9.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/sys/compare/v0.8.0...v0.9.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>
2023-06-13 01:58:24 +00:00
dependabot[bot]
e50406fcca
chore(deps): bump golangci/golangci-lint-action from 3.5.0 to 3.6.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.5.0 to 3.6.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](5f1fec7010...639cd343e1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-13 01:57:42 +00:00
dependabot[bot]
4eccb7db0e
chore(deps): bump actions/checkout from 3.5.2 to 3.5.3
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8e5e7e5ab8...c85c95e3d7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 01:58:35 +00:00
shirou
efe7a95f41
Merge pull request #1480 from gabibguti/master
Reference actions by commit SHA
2023-06-10 13:03:22 +09:00
Gabriela Gutierrez
147902f4cb
Ref actions by commit SHA in test.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/setup-go/releases/tag/v4.0.1
fac708d667

https://github.com/actions/checkout/releases/tag/v3.5.2
8e5e7e5ab8

https://github.com/actions/cache/releases/tag/v3.3.1
88522ab9f3


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2023-06-07 17:07:16 -03:00
Gabriela Gutierrez
404301103d
Ref actions by commit SHA in shellcheck.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/checkout/releases/tag/v3.5.2
8e5e7e5ab8

https://github.com/ludeeus/action-shellcheck/releases/tag/2.0.0
00cae500b0


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2023-06-07 17:05:55 -03:00
Gabriela Gutierrez
346f7bc0fd
Ref actions by commit SHA in sbom_generator.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/checkout/releases/tag/v3.5.2
8e5e7e5ab8

https://github.com/advanced-security/sbom-generator-action/releases/tag/v0.0.1
375dee8e61

https://github.com/actions/upload-artifact/releases/tag/v3.1.2
0b7f8abb15


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2023-06-07 17:03:30 -03:00
Gabriela Gutierrez
f6afa2b95f
Ref actions by commit SHA in release.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/checkout/releases/tag/v3.5.2
8e5e7e5ab8


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2023-06-07 16:58:50 -03:00
Gabriela Gutierrez
0f90ed4833
Ref actions by commit SHA in lint.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/setup-go/releases/tag/v4.0.1
fac708d667

https://github.com/actions/checkout/releases/tag/v3.5.2
8e5e7e5ab8

https://github.com/golangci/golangci-lint-action/releases/tag/v3.5.0
5f1fec7010


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2023-06-07 16:58:00 -03:00
Gabriela Gutierrez
2d8c888a00
Ref actions by commit SHA in labeler.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/labeler/releases/tag/v4.1.0
9fcb2c2f55


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2023-06-07 16:53:15 -03:00
Gabriela Gutierrez
7865eebd82
Ref actions by commit SHA in build_test.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/setup-go/releases/tag/v4.0.1
fac708d667

https://github.com/actions/checkout/releases/tag/v3.5.2
8e5e7e5ab8

https://github.com/actions/cache/releases/tag/v3.3.1
88522ab9f3


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2023-06-07 16:51:26 -03:00
shirou
1754b8155d
Merge pull request #1478 from shirou/feature/add_doc_about_ctx
add(README): add passing context value document
2023-06-04 17:32:49 +09:00
shirou
341d501dce add(README): add passing context value document
which is introduced by #1439.
2023-06-04 08:11:13 +00:00
shirou
5a20eac3c7
Merge pull request #1476 from shirou/dependabot/go_modules/github.com/stretchr/testify-1.8.4
chore(deps): bump github.com/stretchr/testify from 1.8.3 to 1.8.4
2023-06-04 16:20:05 +09:00
shirou
607d540769
Merge pull request #1439 from atoulme/override_env
allow to pass context values to override environment variables
2023-06-04 16:14:52 +09:00
Antoine Toulme
b712e59295 fix more linting reports 2023-06-03 14:17:16 -07:00
Antoine Toulme
842e4da755 apply code review 2023-06-02 01:31:05 -07:00
Antoine Toulme
35657e3262 add more env keys 2023-06-02 01:31:05 -07:00
Antoine Toulme
177e1b1982 remove deprecation comments 2023-06-02 01:31:05 -07:00