dependabot[bot]
b68e0acc74
Bump actions/cache from 2 to 3
...
Bumps [actions/cache](https://github.com/actions/cache ) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
shirou
3f83e0997a
Merge pull request #1274 from shirou/dependabot/go_modules/github.com/stretchr/testify-1.7.1
...
Bump github.com/stretchr/testify from 1.7.0 to 1.7.1
3 years ago
shirou
05994600f1
Merge pull request #1278 from shirou/feature/remove_windows_2016_from_tests
...
remove Windows 2016 from tests.
3 years ago
shirou
8717edb669
remove Windows 2016 from tests.
...
see https://github.com/actions/virtual-environments/issues/5238
3 years ago
shirou
9b14e64cb8
Merge pull request #1276 from scop/feat/more-linux-fss
...
[disk][linux] recognize more file systems
3 years ago
shirou
8530231e52
Merge pull request #1277 from scop/chore/gofumpt
...
[net] gofumpt with 0.3.0 / golangci-lint 1.45.0
3 years ago
Ville Skyttä
7befb75528
[net] gofumpt with 0.3.0 / golangci-lint 1.45.0
3 years ago
Ville Skyttä
5095c3f51e
[disk][linux] recognize more file systems
3 years ago
quanweiZhou
ddaf2d7623
[mem][linux] added additional meminfo fields
...
support HugePages_Rsvd, HugePages_Surp
Signed-off-by: quanweiZhou <quanweiZhou@linux.alibaba.com>
3 years ago
dependabot[bot]
a1f5f64e63
Bump github.com/stretchr/testify from 1.7.0 to 1.7.1
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.7.0...v1.7.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>
3 years ago
shirou
4b988f3ccd
Merge pull request #1270 from shirou/feature/disk_add_fallback_to_self_mountinfo
...
[disk][linux] add fallback to /proc/self
3 years ago
shirou
49037dd0d8
[disk][linux] add fallback to /proc/self
3 years ago
shirou
7de7d48ef6
Merge pull request #1267 from easyops-cn/master
...
fix(process): fix OpenFilesWithContext panic problem
3 years ago
shirou
f3b7c002d7
Merge pull request #1268 from scop/refactor/remove-unnecessary-lookpaths
...
refactor: remove unnecessary exec.LookPath calls
3 years ago
Ville Skyttä
f7e1f36418
refactor: remove unnecessary exec.LookPath calls
...
Executing the command does the lookup if needed and returns the same
error when not found, no need to do it separately.
3 years ago
paul
3cd259698f
fix(process): fix OpenFilesWithContext panic problem
3 years ago
shirou
03f9f55571
Merge pull request #1262 from shirou/dependabot/go_modules/github.com/tklauser/go-sysconf-0.3.10
...
Bump github.com/tklauser/go-sysconf from 0.3.9 to 0.3.10
3 years ago
Lomanic
c0f6ce3804
Merge pull request #1264 from shirou/dependabot/github_actions/actions/labeler-4
...
Bump actions/labeler from 3.0.2 to 4
3 years ago
Lomanic
12228e722d
Merge pull request #1263 from shirou/dependabot/github_actions/actions/checkout-3
...
Bump actions/checkout from 2 to 3
3 years ago
dependabot[bot]
ff016751b6
Bump actions/labeler from 3.0.2 to 4
...
Bumps [actions/labeler](https://github.com/actions/labeler ) from 3.0.2 to 4.
- [Release notes](https://github.com/actions/labeler/releases )
- [Commits](https://github.com/actions/labeler/compare/v3.0.2...v4 )
---
updated-dependencies:
- dependency-name: actions/labeler
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
aa9aca7d12
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>
3 years ago
dependabot[bot]
54552004cc
Bump github.com/tklauser/go-sysconf from 0.3.9 to 0.3.10
...
Bumps [github.com/tklauser/go-sysconf](https://github.com/tklauser/go-sysconf ) from 0.3.9 to 0.3.10.
- [Release notes](https://github.com/tklauser/go-sysconf/releases )
- [Commits](https://github.com/tklauser/go-sysconf/compare/v0.3.9...v0.3.10 )
---
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>
3 years ago
shirou
d33b2dfda5
Merge pull request #1244 from omar-polo/master
...
fix cpu_openbsd.go once and for all
3 years ago
shirou
2fa880a4ad
Merge pull request #1256 from scop/feat/solaris-disk-serialnumber
...
[disk][solaris] implement SerialNumberWithContext
3 years ago
shirou
38e1debe71
Update disk/disk_solaris.go
3 years ago
shirou
9f4dfe70a1
Merge pull request #1258 from shirou/dependabot/github_actions/golangci/golangci-lint-action-3
...
Bump golangci/golangci-lint-action from 2 to 3
3 years ago
dependabot[bot]
a22a057761
Bump golangci/golangci-lint-action from 2 to 3
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 2 to 3.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v2...v3 )
---
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>
3 years ago
Omar Polo
73f9c8dfd5
avoid cgo for cpu_openbsd
...
Even thought OpenBSD often breaks the ABI compatibility and doesn't make
*any* promise of "stability", this project aims to be "pure go" so avoid
doing inter-op at the cost of artificially reducing the number of
supported architectures down to amd64 and i386.
To add support for another architecture (e.g. arm), add another file
cpu_openbsd_${arch}.go like done for 386 and amd64. The fields are
declared as `long' in C, so pick the appropriate size when declaring the
struct.
3 years ago
shirou
b47e88a0c4
Merge pull request #1254 from scop/fix/freebsd-iocounters-disk-serial
...
[disk][freebsd] include serial number in IOCounters
3 years ago
shirou
9a667f1188
Merge pull request #1210 from mmorel-35/master
...
enable contextcheck linter
3 years ago
Ville Skyttä
227df04773
[disk][solaris] implement SerialNumberWithContext
3 years ago
Ville Skyttä
ae0364e211
[disk][freebsd] include serial number in IOCounters
3 years ago
shirou
f6cc3564ce
Merge pull request #1251 from rishabh-arya95/master
...
Add support for reading smaps_rollup
3 years ago
Rishabh Arya
0bf4299250
Add support for reading smaps_rollup
3 years ago
shirou
cf565e04b8
Merge pull request #1242 from scop/feat/solaris-sensors
...
[host][solaris] implement SensorsTemperaturesWithContext
3 years ago
shirou
95dff57bfb
Merge pull request #1247 from shirou/feature/add_freebsd386_to_buildtest
...
Add 386 and arm64 on FreeBSD to build_test
3 years ago
shirou
cfc178fc4b
Add 386 and arm64 on FreeBSD to build_test
3 years ago
shirou
42ae04cfba
Merge pull request #1246 from skozlov404/freebsd_386_createTimeWithContext_fix
...
Fix typing issues in createTimeWithContext on Freebsd/i386
3 years ago
Sergey Kozlov
8ae037c8a1
Fix typing issues in createTimeWithContext on Freebsd/i386
...
Before change:
```
$ GOOS=freebsd GOARCH=386 go build ./process
process\process_freebsd.go:118:26: cannot use k.Start.Sec * 1000 + k.Start.Usec / 1000 (type int32) as type int64 in return argument
```
3 years ago
Omar Polo
3c3c017f23
avoid copying kernCPUStats
3 years ago
Omar Polo
57d5711d44
refactor TimesWithContext
...
don't make assumptions on which CPUs are online and wich aren't based
on hw.smt and hw.ncpuonline. Rather, use KERN_CPUSTATS to get the CPU
statistics, which includes a flag field that can tell us if that CPU
is online or not.
3 years ago
Omar Polo
16cc7d7d73
improve sysctl parsing: use native byte order
...
We can't use unix.Sysctl* for some sysctls, so we're on our own with
converting data from C arrays.
Don't assume that the byte order is little endian but do the right
thing. Moreover, there's a little distinction in the sizes reported
by KERN_CPTIME (long[cpustates]) and KERN_CPTIME2
(u_int64_t[cpustates]) so account for that too.
3 years ago
Omar Polo
73db061652
some typos + rename smt to smtEnabled for readability
3 years ago
Omar Polo
9203029aae
drop compatibilty with OpenBSD < 6.4
...
6.3 was EOL'd more than three years ago!
3 years ago
Ville Skyttä
7a8feb155b
[host][solaris] implement SensorsTemperaturesWithContext
3 years ago
Matthieu MOREL
b0469a470b
Merge branch 'master' into master
3 years ago
shirou
e0ec1b9cda
Merge pull request #1238 from scop/spelling
...
Spelling and grammar fixes
3 years ago
Ville Skyttä
1e56c6f421
Spelling and grammar fixes
3 years ago
shirou
696bb11b1e
Merge pull request #1235 from scop/refactor/parentwithcontext-ppidwithcontext
...
[process] implement ParentWithContext using PpidWithContext
3 years ago
shirou
50cad0760c
Merge branch 'master' into refactor/parentwithcontext-ppidwithcontext
3 years ago