2324 Commits (v3.23.7)
 

Author SHA1 Message Date
Yalcin Ozbek 4314a0567b
the code has been moved outside the loop.
Signed-off-by: Yalcin Ozbek <yalcinozbekceng@gmail.com>
Yalcin Ozbek 13f00fde46
code review fix
Signed-off-by: Yalcin Ozbek <yalcinozbekceng@gmail.com>
shirou 68452e2602 feat(host, windows): add UBR (Update Build Revision) to kernel version
Yalcin Ozbek 102439862e
feat: Setting the model name for arm based CPUs
- Added arm model and model name as map.
- The modelName is set again according to the model value when the model name is empty.
- Based on lscpu source code.. https://github.com/util-linux/util-linux/blob/master/sys-utils/lscpu-arm.c

---

Signed-off-by: Yalcin Ozbek <yalcinozbekceng@gmail.com>
shirou 50f22507f5
Merge pull request #1365 from ib-steffen/pass-context
Pass on context to ConnectionsPidWithContext
shirou b34aa19712
Merge pull request #1370 from shirou/dependabot/go_modules/github.com/stretchr/testify-1.8.1
chore(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1
shirou 20b15fb639
Merge pull request #1369 from Lomanic/issue1368
[process][windows] Retrieve process name as basename of executable
dependabot[bot] 359e8eb4b3
chore(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.0...v1.8.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
Lomanic 980cc82c08 [process][windows] Retrieve process name as basename of executable
We align ourself with psutil
8e4099d9f0/psutil/_pswindows.py (L749-L759)

Benchmarks show vast improvements

    go test -run=BenchmarkProcessName -bench=BenchmarkProcessName ./process
    goos: windows
    goarch: amd64
    pkg: github.com/shirou/gopsutil/v3/process
    cpu: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz
    BenchmarkProcessName-4               180           6564033 ns/op
    BenchmarkProcessNameViaExe-4       22111             51153 ns/op
    PASS
    ok      github.com/shirou/gopsutil/v3/process   3.914s

Fixes #1368
Lomanic bd4529a7cc [process][windows] Refator a tiny bit is32BitProcess() function to be more idiomatic Go
Frank Spitulski d7c791252a rebase on master
Matthew Palmer b515acb162 [disk][windows] Support LabelWithContext & SerialNumberWithContext
Add support for LabelWithContext & SerialNumberWithContext, additionally returning this data back for the IOCountersWithContext function.
Steffen Geissinger 5bbcabf17d Pass on context to ConnectionsPidWithContext
Aman Karmani 0823447625 [ios][disk] IOKit is not available on iOS
shirou 400a453e67
Merge pull request #1360 from bduffany/darwin-memleak
Fix memory leaks in process_darwin_cgo
shirou 769daafb9e
Merge pull request #1347 from atoulme/windows_errors
Return all Windows partitions
Brandon Duffany 38064605a8 Fix memory leaks in darwin_cgo
Antoine Toulme dbc0f20fe3 code review
shirou 16b3aac6ad
Merge pull request #1336 from johanburati/job043
Add hostinfo Virtualization hyperv
shirou da529f3639
Merge pull request #1341 from chbuescher/master
implement aix nocgo disk usage
shirou 38732e038f
Merge pull request #1348 from shirou/dependabot/github_actions/actions/checkout-3
chore(deps): bump actions/checkout from 2 to 3
shirou d36a053dc5
Merge pull request #1349 from shirou/dependabot/go_modules/github.com/google/go-cmp-0.5.9
chore(deps): bump github.com/google/go-cmp from 0.5.8 to 0.5.9
N1neSun add9158d4e fix some kylin linux bug
shirou 434cc29594
Merge pull request #1345 from itsties/patch-1
[disk][linux] Fix for diskusage Ceph mount
dependabot[bot] 3ebe2e0471
chore(deps): bump github.com/google/go-cmp from 0.5.8 to 0.5.9
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp) from 0.5.8 to 0.5.9.
- [Release notes](https://github.com/google/go-cmp/releases)
- [Commits](https://github.com/google/go-cmp/compare/v0.5.8...v0.5.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] 3ece2bff78
chore(deps): bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>
Antoine Toulme 6b2bfe408d Return all partitions on Windows and all errors rather than returning early
shirou a63ec01c75
Merge pull request #1346 from tienthanh1993/master
fix(process,windows): compare len(cwd) to an incorrect value
Ties de Wit f253d81d1b
Update common.go
Ties de Wit e4409ef6a1
Update net_linux.go
Ties de Wit 705a63f1b2
Update disk_unix.go
tienthanh1993 6bc339626b
fix(process,windows): compare len(cwd) to an incorrect value
process/process_windows.go#L411 len(cwd) need compare to userProcParams.CurrentDirectoryPathNameLength instead of userProcParams.CurrentDirectoryPathAddress
Ties de Wit 43d805cf5d
Fix for diskusage Ceph mount
This sets `used` and `usedPercent` correctly in #1344
xca1075 9ef87ea3d8 aix disk: implement getFSType to get Usage() from disk_unix working; implement Partitions()
Johan Burati e7034b47f2 Add hostinfo Virtualization hyperv
shirou ed37dc27a2
Merge pull request #1335 from tklauser/drop-darwin-386
host, process: delete darwin/386 code
shirou 1499bf63a6 feat: drop darwin/i386 from README and Makefile
shirou 360136f405
Merge pull request #1333 from kyz/remove-iomainport
Replace IOMainPort/IOMasterPort() and kIOMainPortDefault/kIOMasterPortDefault with NULL
Stuart Caie e0400cc94f Use 0 as default mach port
shirou 190dfee6b4
Merge pull request #1334 from kyz/fix-darwin-pagesize
mem.VirtualMemory(): wrong page size on darwin arm64
Tobias Klauser c76712b8da
host, process: delete darwin/386 code
The darwin/386 port was dropped in Go 1.15 and the imported version of
golang.org/x/sys also no longer supports the port. This module requires
at least Go 1.15 per go.mod, so it no longer builds on darwin/386
anyway.
Stuart Caie d962cf2d68 Use the page size that host_statistics() pages are measured in
Stuart Caie 55411f1178 Replace IOMainPort/IOMasterPort() and kIOMainPortDefault/kIOMasterPortDefault with NULL
shirou a1701dcb73
Merge pull request #1330 from Lomanic/macos-ci-update
Update README with /v3 godoc links and remove deprecated macos-10.15 virtual environment in CI
Lomanic ef5eaa83fe
Merge pull request #1328 from shirou/feature/check-file-contents
fix(host,linux): Check if path exists and is nonempty before reading host files
Lomanic 2553c620ed [ci] Remove deprecated macos-10.15 virtual environment in tests
Ref https://github.com/actions/virtual-environments/issues/5583
Lomanic 5439492ad9 [README] Update godoc links to /v3 and add godocs.io alternative
shirou 839e8b731f fix(common): simplify size check
shirou 422fdd4020
Merge pull request #1329 from shirou/feature/add_github_release_yaml
feat: add github release.yml
shirou 37a0bf3fa1 feat: add github release.yml