shirou
6a5e40a517
Merge pull request #1228 from abner-chenc/master
...
host: add support for linux/loong64
2 years ago
shirou
e563e6394e
Merge pull request #1356 from N1neSun/patch-1
...
fix some kylin linux bug
2 years ago
shirou
0494d7f0b9
Merge pull request #1403 from Agilicus/add-ppc64be
...
[host] linux/ppc: ppc64 definition from ppc64le
2 years ago
shirou
2aa7394ecc
Merge pull request #1407 from shirou/feature/change_contextable_disk_partitions_windows
...
[disk][windows]: add context handling on PartionsWithContext
2 years ago
shirou
301930f9bd
Merge pull request #1404 from shirou/dependabot/go_modules/golang.org/x/sys-0.4.0
...
chore(deps): bump golang.org/x/sys from 0.3.0 to 0.4.0
2 years ago
shirou
8105a6d577
[disk][windows]: add context handling on PartionsWithContext
2 years ago
Guoqi Chen
b793d83f72
host: add support for linux/loong64
...
Updates #1338 .
Signed-off-by: Guoqi Chen <chenguoqi@loongson.cn>
Co-authored-by: Jiantao Shan <shanjiantao@loongson.cn>
2 years ago
Guoqi Chen
b055174e9e
cpu: Add the matching rule "Model Name" when parsing cpuinfo
...
This is to fix the error of running TestCpuInfo on Linux/long64. In loong64
/proc/cpuinfo, the model name is capitalize the first letter
Reference:
https://github.com/torvalds/linux/blob/master/arch/loongarch/kernel/proc.c
Signed-off-by: Guoqi Chen <chenguoqi@loongson.cn>
2 years ago
dependabot[bot]
87931ed66f
chore(deps): bump golang.org/x/sys from 0.3.0 to 0.4.0
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/golang/sys/releases )
- [Commits](https://github.com/golang/sys/compare/v0.3.0...v0.4.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
shirou
581c27c0e6
Merge pull request #1397 from jefferbrecht/jefferbrecht-windows-host
...
[host] windows: use millisecond precision for BootTime()
2 years ago
Jeff Erbrecht
a5ecb9bca5
[host] windows: use millisecond precision for BootTime()
...
Previously, system uptime is truncated to seconds, and then the
subtraction from `time.Now()` is performed. Because uptime does not roll
over to the next second at the same instant as `time.Now()`, then
`BootTime()` ends up not being precise, and often varies by 1 second.
This commit does the subtraction before truncating to seconds, which
results in a significantly lower chance of variance in `BootTime()`.
2 years ago
Don Bowman
d7f1f76519
[host] linux/ppc: ppc64 definition from ppc64le
...
Same as commit fc04d2d
, but for ppc64 from ppc64le definition.
2 years ago
shirou
2fb67aaf4a
Merge pull request #1401 from shirou/feature/add_HOST_ROOT_to_readme
...
chore(README): add `HOST_ROOT`
2 years ago
shirou
46c4ce3ffc
chore(README): add `HOST_ROOT` introduced by #1400
2 years ago
shirou
ca886f9316
Merge pull request #1400 from scop/dockerenv
...
Detect Docker also using /.dockerenv
2 years ago
Ville Skyttä
70a8f589c6
Detect Docker also using /.dockerenv
2 years ago
shirou
f848ee3fa2
Merge pull request #1398 from Juneezee/test/t.Setenv
...
test: use `T.Setenv` to set env vars in tests
2 years ago
Eng Zer Jun
37894e9b28
test: use `T.Setenv` to set env vars in tests
...
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.
Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2 years ago
shirou
835767a611
Merge pull request #1389 from sgthammer/feature/fix-arm-modelname
...
fill modelName for all cores in arm64 devices
2 years ago
shirou
39f3b34192
Merge pull request #1392 from brianryner8/getfsstat-count
...
Truncate the Getfsstat result to the count of items that were returned
2 years ago
shirou
8d22915181
[disk][darwin]: add issue URL
2 years ago
Brian Ryner
c2fa2cbf8e
Update comment
2 years ago
shirou
bd21a78aa9
Merge pull request #1387 from shirou/dependabot/go_modules/golang.org/x/sys-0.3.0
...
chore(deps): bump golang.org/x/sys from 0.2.0 to 0.3.0
2 years ago
shirou
d661503ccc
Merge pull request #1393 from tklauser/byteslicetostring
...
host: use unix.ByteSliceToString
2 years ago
shirou
d2a3bd84bd
Merge pull request #1394 from tklauser/activeprocessorcount
...
cpu: use windows.GetActiveProcessorCount
2 years ago
Tobias Klauser
f2bf9a480a
cpu: use windows.GetActiveProcessorCount
...
Use GetActiveProcessorCount and the ALL_PROCESSOR_GROUPS const provided
in golang.org/x/sys/windows. The function is available on Windows 7 and
later. Go requires Windows 7, see https://go.dev/doc/go1.11#ports
2 years ago
Tobias Klauser
f9a5834e0e
host: use unix.ByteSliceToString
...
Use ByteSliceToString provided in golang.org/x/sys/unix to convert
\0-terminated byte slices to strings.
2 years ago
Brian Ryner
34da06e9b7
fix
2 years ago
Brian Ryner
c5e42b972f
Truncate the result of Getfsstat to the item count that is returned.
...
This count may be less than what was returned by the first call to Getfsstat.
2 years ago
sgthammer
83256398be
fill modelName for all cores in arm64 devices
2 years ago
dependabot[bot]
062ecda202
chore(deps): bump golang.org/x/sys from 0.2.0 to 0.3.0
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/golang/sys/releases )
- [Commits](https://github.com/golang/sys/compare/v0.2.0...v0.3.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
shirou
3b918ebd29
Merge pull request #1386 from bogdandrutu/patch-1
...
Retract deleted tag v3.22.11
2 years ago
Bogdan Drutu
032376bae4
Retract deleted tag v3.22.10
2 years ago
shirou
e7a0ff26d0
Merge pull request #1384 from shirou/revert-1367-feat/implement-label-windows
...
Revert "[disk][windows] Support LabelWithContext & SerialNumberWithContext - rebased "
2 years ago
shirou
a0f8443561
Revert "[disk][windows] Support LabelWithContext & SerialNumberWithContext - rebased "
2 years ago
shirou
af44f9d16b
Merge pull request #1367 from FrankSpitulski/feat/implement-label-windows
...
[disk][windows] Support LabelWithContext & SerialNumberWithContext - rebased
2 years ago
shirou
9fc4d70059
Merge pull request #1379 from shirou/feature/revert_errors_from_internal
...
[disk][host]: move back Warnings from internal to disk and host.
2 years ago
shirou
5473fd114d
[disk][host]: change to use type alias.
2 years ago
shirou
ea7607ebd0
Merge pull request #1381 from sfzfs/solaris-disk-mem-net-feature
...
pull request on adding missing statistic under solaris/illumos
2 years ago
shirou
30aa851d39
Merge pull request #1380 from shirou/feature/readable_error_on_load_windows
...
[load][windows]: add error detail and context handling.
2 years ago
Steve Zhang
ccb11cf45e
reuse the context.Context instead of creating a new Context
2 years ago
Steve Zhang
cf62eac8f9
The current codes miss below statistic data under solaris/illumos:
...
1. the disk io statistic data as: nread, nwritten, reads, writes, rtime, wtime;
2. the free memory under global zone;
3. the net io statistic data as: rbytes64, ipackets64, idrops64, ierrors, obytes64, opackets64, odrops64, oerrors.
The new feature branch adds the above missing statistic data based on the psutil project (https://psutil.readthedocs.io/ ), it has been tested under solaris ( Oracle Solaris 11.4 X86) and illumos (OmniOS v11 r151044).
2 years ago
shirou
231d6f3d4e
[load][windows]: add error detail and context handling.
2 years ago
shirou
4ac7e99c6a
[disk][host]: move back Warnings from internal to disk and host.
...
fix #1377
2 years ago
Aman Gupta Karmani
34cc43d282
[android][host] fix Info() failure due to forbidden /proc/stat and /proc/uptime ( #1361 )
...
* [android][host] fallback to sysinfo() syscall for uptime
with Android O, /proc/{stat,uptime} both return permission denied
2 years ago
shirou
d3ea8776ff
Merge pull request #1362 from fancybits/ios-iokit
...
[ios][disk] IOKit is not available on iOS
2 years ago
shirou
672e2518f2
Merge pull request #1374 from shirou/feature/add_ubr_on_host_windows
...
feat(host, windows): add UBR (Update Build Revision) to kernel version
2 years ago
shirou
2099ec6e27
Merge pull request #1375 from shirou/dependabot/go_modules/github.com/tklauser/go-sysconf-0.3.11
...
chore(deps): bump github.com/tklauser/go-sysconf from 0.3.10 to 0.3.11
2 years ago
dependabot[bot]
2a3e4c7326
chore(deps): bump github.com/tklauser/go-sysconf from 0.3.10 to 0.3.11
...
Bumps [github.com/tklauser/go-sysconf](https://github.com/tklauser/go-sysconf ) from 0.3.10 to 0.3.11.
- [Release notes](https://github.com/tklauser/go-sysconf/releases )
- [Commits](https://github.com/tklauser/go-sysconf/compare/v0.3.10...v0.3.11 )
---
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>
2 years ago
shirou
59246d8b0f
Merge pull request #1373 from yaozbek/modelname-support-for-arm
...
feat: Setting the model name for arm based CPUs
2 years ago