Commit Graph

2084 Commits (0074fab5f5485be29b585040ac0548a9d0875930)
 

Author SHA1 Message Date
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
Ville Skyttä 0d33df272b [disk][freebsd] return empty serial on `(null)` geom disk ident 3 years ago
shirou a3ae4bc40d
Merge pull request #1221 from shirou/feature/process_win_fix_dup_handle
[process][windows] fix release handle
3 years ago
shirou dcac9d9b01 [process][windows] fix release handle 3 years ago
shirou fdfd273cf0
Merge pull request #1218 from scop/feat/freebsd-process-start
[process][freebsd] implement createTimeWithContext
3 years ago
shirou 64a13e4c18
Merge pull request #1219 from Lomanic/issue1216
[process][windows] Fix #1216 fix compilation on arm/arm64
3 years ago
shirou b4808b3e94
Merge pull request #1204 from YangKeao/fix-unstable-boottime
fix unstable boot time because of float conversion
3 years ago
shirou c56b5223c5
Merge pull request #1215 from Lomanic/issue1198
[net][linux] Fix #1198 "f.ReadDir undefined" on Go 1.15 by redefining a custom readDir according to go version
3 years ago
Lomanic 01cf95a92d [process][windows] Fix #1216 fix compilation on arm/arm64
go build ./... with GOARCH=arm64 is otherwise failing with the following:

process\process_windows.go:412:11: undefined: readProcessMemory
process\process_windows.go:425:11: undefined: readProcessMemory
process\process_windows.go:896:32: undefined: PROCESS_MEMORY_COUNTERS
process\process_windows.go:897:10: undefined: PROCESS_MEMORY_COUNTERS
process\process_windows.go:910:50: undefined: PROCESS_MEMORY_COUNTERS
process\process_windows.go:950:21: undefined: queryPebAddress
process\process_windows.go:955:9: undefined: readProcessMemory
process\process_windows.go:961:8: undefined: readProcessMemory
process\process_windows.go:969:21: undefined: queryPebAddress
process\process_windows.go:974:9: undefined: readProcessMemory
process\process_windows.go:974:9: too many errors
3 years ago
Ville Skyttä 41e2595443 [process][freebsd] implement createTimeWithContext 3 years ago
Ville Skyttä df68a56e2d [disk][freebsd] implement SerialNumberWithContext 3 years ago