Commit Graph

2863 Commits (master)
 

Author SHA1 Message Date
shirou d89a81f8cb
Merge pull request #1871 from shirou/fix/relax_golangci_lint_package_name
fix: relace golangcilint on var-naming for package name
19 hours ago
shirou bcb4d6036f fix: relace golangcilint on var-naming for package name 19 hours ago
shirou 06d5fd59bb
Merge pull request #1868 from kruskall/feat/ex-windows-pagefile
feat(exwindows): expose phys and pagefile memory
20 hours ago
shirou 2d7a1a4914
Merge pull request #1870 from shandongzhejiang/master
chore: fix some minor issues in the comments
21 hours ago
shandongzhejiang db23986b71 chore: fix some minor issues in the comments
Signed-off-by: shandongzhejiang <shandongzhejiang@icloud.com>
6 days ago
kruskall 3c7a76da6e
Update ex_windows.go 1 week ago
shirou f48b638df7
Merge pull request #1534 from dloucasfx/folderMountedVolumes
Fetch stats from folder mounted volumes
2 weeks ago
kruskall 3e820af149
feat(exwindows): expose phys and pagefile memory
add a way to retrieve pagefile info from memorystatusex
add phys memory for usability
2 weeks ago
shirou ad10d4d257
Merge pull request #1866 from NitroCao/fix/optimize-openfiles
fix: optimize performance of process.OpenFiles()
3 weeks ago
NitroCao 37fcc632f7 fix: avoid defer for better performance 3 weeks ago
Dani Louca 1d0f16a4cb
fix PR review
Signed-off-by: Dani Louca <dlouca@splunk.com>
3 weeks ago
Dani Louca 311c16dbaf
Fetch stats from folder mounted volumes
Signed-off-by: Dani Louca <dlouca@splunk.com>
3 weeks ago
NitroCao 9dcddfedc7 fix: don't copy elements of OpenFilesStat slice again 3 weeks ago
NitroCao 81edea074a fix: optimize performance of process.OpenFiles() 3 weeks ago
shirou ce7e4c88d9
Merge pull request #1856 from mmorel-35/gocritic/enable-all
enable all go-critic
3 weeks ago
shirou afdd6f1f91
Merge pull request #1861 from shirou/feat/fix_paritions_opts_split
[disk][linux]: fix parsing mount option when use 1/mounts on Partition
3 weeks ago
shirou d3578cf3e8 [disk][linux]: simplify logic
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
3 weeks ago
Matthieu MOREL 431dd63e80 enable all go-critic
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 month ago
shirou 9896b27464 [disk][linux]: refactor Partitions and add tests. 1 month ago
shirou c4ec263816 [disk][linux]: fix mount opt parse when use 1/mounts. 1 month ago
Lomanic 15412ac7b3
Merge pull request #1844 from shirou/dependabot/github_actions/golangci/golangci-lint-action-8.0.0
chore(deps): bump golangci/golangci-lint-action from 7.0.0 to 8.0.0
1 month ago
shirou 2c7ae10ae6
Merge pull request #1862 from mmorel-35/containerid
rename containerid arguments to containerID
1 month ago
Matthieu MOREL bcbca49da2 rename containerid arguments to containerID
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 month ago
shirou b2c442fcf1
Merge pull request #1860 from shirou/dependabot/go_modules/github.com/ebitengine/purego-0.8.4
chore(deps): bump github.com/ebitengine/purego from 0.8.3 to 0.8.4
1 month ago
dependabot[bot] e3ebde98f9
chore(deps): bump github.com/ebitengine/purego from 0.8.3 to 0.8.4
Bumps [github.com/ebitengine/purego](https://github.com/ebitengine/purego) from 0.8.3 to 0.8.4.
- [Release notes](https://github.com/ebitengine/purego/releases)
- [Commits](https://github.com/ebitengine/purego/compare/v0.8.3...v0.8.4)

---
updated-dependencies:
- dependency-name: github.com/ebitengine/purego
  dependency-version: 0.8.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
1 month ago
shirou 34ac457e15
Merge pull request #1848 from secDre4mer/master
Fix issues with GetLastError() usage
2 months ago
shirou 95eb2c347f
Merge pull request #1851 from shirou/dependabot/github_actions/actions/setup-go-5.5.0
chore(deps): bump actions/setup-go from 5.4.0 to 5.5.0
2 months ago
dependabot[bot] 7597e32653
chore(deps): bump actions/setup-go from 5.4.0 to 5.5.0
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.4.0 to 5.5.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](0aaccfd150...d35c59abb0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2 months ago
shirou 3ef5d4cb9d
Merge pull request #1847 from mmorel-35/nakedret
fix ignore nakedret
2 months ago
Matthieu MOREL 6a79b392ac fix ignore nakedret
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
shirou a60205c17c
Merge pull request #1852 from shirou/feat/bump_purego_version
[darwin]: bump purego veresion to 0.8.3
2 months ago
shirou ecf970423e [darwin]: bump purego veresion to 0.8.3 2 months ago
Max Altgelt 71c5b00525
fix: don't assume GetDriveType returns error
GetDriveType does not set an error for GetLastError, see
https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getdrivetypea.
Fix some code that assumed this.
Also prefer windows.GetDriveType to a direct call.
2 months ago
Max Altgelt 7411b4e266
fix: use err from Syscall instead of calling GetLastError
Call() already returns the last error, see
https://pkg.go.dev/syscall?GOOS=windows#Proc.Call.

However, some code called GetLastError() afterwards, which is racy;
if the go routine switches threads between Call() and GetLastError(),
it may return a different error than expected, or possibly nil.
2 months ago
shirou 15eaecda07
Merge pull request #1846 from mmorel-35/staticcheck/ST1005
fix(ST1005): Incorrectly formatted error string
2 months ago
Matthieu MOREL 71c74393f2 fix(ST1005): Incorrectly formatted error string
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
shirou ec85c0b45b
Merge pull request #1842 from mmorel-35/golangci-lint/staticcheck
chore: enable staticcheck
2 months ago
shirou d5e33f710b
Merge pull request #1839 from OrbintSoft/remove-wmi
Remove wmi for Get physical CPU core count
2 months ago
dependabot[bot] 55d6961cbf
chore(deps): bump golangci/golangci-lint-action from 7.0.0 to 8.0.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 7.0.0 to 8.0.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](1481404843...4afd733a84)

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

Signed-off-by: dependabot[bot] <support@github.com>
2 months ago
Stefano Balzarotti f2b0aa5e86
linter 2 months ago
Matthieu MOREL cefed48244 chore: enable staticcheck linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
shirou 3ba33b4651
Merge pull request #1843 from mmorel-35/golangci-lint/ineffassign
chore: enable ineffassign linter
2 months ago
Matthieu MOREL 6469062ba9 chore: enable ineffassign linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
shirou af2d6de7aa
Merge pull request #1825 from mmorel-35/golangci-lint/govet
chore: enable govet linter
2 months ago
Stefano Balzarotti ab48e6b803
remove context cancellation 2 months ago
Matthieu MOREL 10be661aa4 chore: enable govet linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
shirou 3c34181ac9
Merge pull request #1841 from shirou/feat/update_github_action_runners_images
fix: update github actions runner images
2 months ago
shirou c43a933f9c fix: update github actions runner images 2 months ago
shirou f9f5620e1e
Merge pull request #1840 from s0ders/refactor/host-info-error-msg
refactor: using fmt.Errorf in InfoWithContext
2 months ago
s0ders 0bbc484a68
refactor: using fmt.Errorf on some error returns.
The following brings:
- Refactoring of `InfoWithContext` to wrap errors with `fmt.Errorf` in
  order to add textual context, making error message more helpful for
  the end user.

ref: 1836
2 months ago