quanweiZhou
ddaf2d7623
[mem][linux] added additional meminfo fields
...
support HugePages_Rsvd, HugePages_Surp
Signed-off-by: quanweiZhou <quanweiZhou@linux.alibaba.com>
2022-03-19 15:19:10 +08:00
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>
2022-03-16 01:25:07 +00:00
shirou
4b988f3ccd
Merge pull request #1270 from shirou/feature/disk_add_fallback_to_self_mountinfo
...
[disk][linux] add fallback to /proc/self
2022-03-08 20:21:37 +09:00
shirou
49037dd0d8
[disk][linux] add fallback to /proc/self
2022-03-05 03:15:26 +00:00
shirou
7de7d48ef6
Merge pull request #1267 from easyops-cn/master
...
fix(process): fix OpenFilesWithContext panic problem
2022-03-05 11:22:21 +09:00
shirou
f3b7c002d7
Merge pull request #1268 from scop/refactor/remove-unnecessary-lookpaths
...
refactor: remove unnecessary exec.LookPath calls
2022-03-05 11:20:24 +09:00
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.
2022-03-04 18:56:33 +02:00
paul
3cd259698f
fix(process): fix OpenFilesWithContext panic problem
2022-03-04 16:14:22 +08:00
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
2022-03-02 18:00:38 +09:00
Lomanic
c0f6ce3804
Merge pull request #1264 from shirou/dependabot/github_actions/actions/labeler-4
...
Bump actions/labeler from 3.0.2 to 4
2022-03-02 08:50:37 +01:00
Lomanic
12228e722d
Merge pull request #1263 from shirou/dependabot/github_actions/actions/checkout-3
...
Bump actions/checkout from 2 to 3
2022-03-02 08:40:13 +01:00
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>
2022-03-02 01:20:39 +00:00
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>
2022-03-02 01:20:36 +00:00
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>
2022-03-01 01:46:21 +00:00
shirou
d33b2dfda5
Merge pull request #1244 from omar-polo/master
...
fix cpu_openbsd.go once and for all
2022-02-25 23:25:27 +09:00
shirou
2fa880a4ad
Merge pull request #1256 from scop/feat/solaris-disk-serialnumber
...
[disk][solaris] implement SerialNumberWithContext
2022-02-25 22:26:39 +09:00
shirou
38e1debe71
Update disk/disk_solaris.go
2022-02-25 21:57:01 +09:00
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
2022-02-25 12:03:31 +09:00
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>
2022-02-25 01:18:01 +00:00
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.
2022-02-24 15:05:18 +01:00
shirou
b47e88a0c4
Merge pull request #1254 from scop/fix/freebsd-iocounters-disk-serial
...
[disk][freebsd] include serial number in IOCounters
2022-02-24 20:56:35 +09:00
shirou
9a667f1188
Merge pull request #1210 from mmorel-35/master
...
enable contextcheck linter
2022-02-24 20:44:35 +09:00
Ville Skyttä
227df04773
[disk][solaris] implement SerialNumberWithContext
2022-02-23 00:06:36 +02:00
Ville Skyttä
ae0364e211
[disk][freebsd] include serial number in IOCounters
2022-02-22 23:48:14 +02:00
shirou
f6cc3564ce
Merge pull request #1251 from rishabh-arya95/master
...
Add support for reading smaps_rollup
2022-02-20 14:33:47 +09:00
Rishabh Arya
0bf4299250
Add support for reading smaps_rollup
2022-02-17 20:12:19 +00:00
shirou
cf565e04b8
Merge pull request #1242 from scop/feat/solaris-sensors
...
[host][solaris] implement SensorsTemperaturesWithContext
2022-02-12 17:37:00 +09:00
shirou
95dff57bfb
Merge pull request #1247 from shirou/feature/add_freebsd386_to_buildtest
...
Add 386 and arm64 on FreeBSD to build_test
2022-02-12 17:33:25 +09:00
shirou
cfc178fc4b
Add 386 and arm64 on FreeBSD to build_test
2022-02-12 08:06:17 +00:00
shirou
42ae04cfba
Merge pull request #1246 from skozlov404/freebsd_386_createTimeWithContext_fix
...
Fix typing issues in createTimeWithContext on Freebsd/i386
2022-02-12 17:02:52 +09:00
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
```
2022-02-08 21:03:48 +00:00
Omar Polo
3c3c017f23
avoid copying kernCPUStats
2022-02-08 11:41:54 +00:00
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.
2022-02-06 23:47:17 +00:00
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.
2022-02-06 23:47:17 +00:00
Omar Polo
73db061652
some typos + rename smt to smtEnabled for readability
2022-02-06 23:47:17 +00:00
Omar Polo
9203029aae
drop compatibilty with OpenBSD < 6.4
...
6.3 was EOL'd more than three years ago!
2022-02-06 23:47:16 +00:00
Ville Skyttä
7a8feb155b
[host][solaris] implement SensorsTemperaturesWithContext
2022-02-05 23:20:11 +02:00
Matthieu MOREL
b0469a470b
Merge branch 'master' into master
2022-02-01 19:28:26 +01:00
shirou
e0ec1b9cda
Merge pull request #1238 from scop/spelling
...
Spelling and grammar fixes
2022-01-31 22:14:00 +09:00
Ville Skyttä
1e56c6f421
Spelling and grammar fixes
2022-01-30 22:48:09 +02:00
shirou
696bb11b1e
Merge pull request #1235 from scop/refactor/parentwithcontext-ppidwithcontext
...
[process] implement ParentWithContext using PpidWithContext
2022-01-30 10:53:11 +09:00
shirou
50cad0760c
Merge branch 'master' into refactor/parentwithcontext-ppidwithcontext
2022-01-30 10:47:00 +09:00
shirou
34e74aaccb
Merge pull request #1229 from PierreF/darwin-drop-callps-step2
...
Darwin drop callps step2
2022-01-30 10:38:10 +09:00
Matthieu MOREL
8ba220d241
enable contextcheck linter
2022-01-24 09:26:50 +01:00
shirou
6918006d35
Merge pull request #1233 from Kogelvis/almalinux_support
...
Let almalinux be part of the rhel family
2022-01-23 14:17:06 +09:00
shirou
5ba00db577
Merge pull request #1231 from shirou/feature/process_linux_Children_fix_error_check
...
[process][linux] Fix error handling on Children.
2022-01-23 14:10:44 +09:00
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
2022-01-23 14:10:06 +09:00
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.
2022-01-22 18:27:52 +02:00
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>
2022-01-20 01:22:32 +00:00
Lammert Hellinga
001699bed7
Let almalinux be part of the rhel family
2022-01-19 22:37:51 +01:00