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
shirou
34e74aaccb
Merge pull request #1229 from PierreF/darwin-drop-callps-step2
...
Darwin drop callps step2
3 years ago
Matthieu MOREL
8ba220d241
enable contextcheck linter
3 years ago
shirou
6918006d35
Merge pull request #1233 from Kogelvis/almalinux_support
...
Let almalinux be part of the rhel family
3 years ago
shirou
5ba00db577
Merge pull request #1231 from shirou/feature/process_linux_Children_fix_error_check
...
[process][linux] Fix error handling on Children.
3 years ago
shirou
72100d4b16
Merge pull request #1234 from shirou/dependabot/go_modules/github.com/google/go-cmp-0.5.7
...
Bump github.com/google/go-cmp from 0.5.6 to 0.5.7
3 years ago
Ville Skyttä
0306525d78
[process] implement ParentWithContext using PpidWithContext
...
Removes need for redundant ParentWithContext implementations. It had led
to it being unsupported on FreeBSD and OpenBSD even though
PpidWithContext was available for them, and different implementations
for getting the parent info used in ParentWithContext and
PpidWithContext on Darwin and Linux.
3 years ago
dependabot[bot]
5d930b5b84
Bump github.com/google/go-cmp from 0.5.6 to 0.5.7
...
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp ) from 0.5.6 to 0.5.7.
- [Release notes](https://github.com/google/go-cmp/releases )
- [Commits](https://github.com/google/go-cmp/compare/v0.5.6...v0.5.7 )
---
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>
3 years ago
Lammert Hellinga
001699bed7
Let almalinux be part of the rhel family
3 years ago
shirou
35fbe38505
[process][linux] Fix error handling on Children.
...
If pgrep returns error, `CallPgrepWithContext` always returns empty pids. So this Children always returns ErrorNoChildren. This PR fixes that handling.
3 years ago
shirou
511da82e94
Merge pull request #1224 from scop/feat/solaris-loadavg
...
[load][solaris] implement AvgWithContext
3 years ago
shirou
29058848ba
Merge pull request #1217 from scop/feat/freebsd-disk-serial
...
[disk][freebsd] implement SerialNumberWithContext
3 years ago
Pierre Fersing
43e50e1d7d
Reduce call to ps for process package on darwin
3 years ago
Pierre Fersing
60eae48e6a
Drop test for Darwin Pids()
3 years ago
Pierre Fersing
b9b3dbe67a
Avoid ps command and use KProc on MacOS
3 years ago
Lomanic
1ccce7b91c
Merge pull request #1223 from shirou/feature/remove_codecov
...
remove codecov
3 years ago
Ville Skyttä
31c410026d
[disk][freebsd] handle SerialNumberWithContext scanner errors
3 years ago
Ville Skyttä
d92d114f90
[load][solaris] implement AvgWithContext
3 years ago
shirou
59e366d674
remove codecov
3 years ago