Package: golang-github-shirou-gopsutil / 2.1-2.1

Metadata

Package Version Patches format
golang-github-shirou-gopsutil 2.1-2.1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
01 Disable_failing_tests.patch | (download)

disk/disk_test.go | 1 1 + 0 - 0 !
host/host_test.go | 4 4 + 0 - 0 !
process/process_test.go | 3 3 + 0 - 0 !
3 files changed, 8 insertions(+)

---
0001 process determine page sizes via function.patch | (download)

process/process_linux.go | 5 4 + 1 - 0 !
process/process_linux_386.go | 3 1 + 2 - 0 !
process/process_linux_amd64.go | 3 1 + 2 - 0 !
process/process_linux_arm.go | 3 1 + 2 - 0 !
process/process_linux_arm64.go | 3 1 + 2 - 0 !
5 files changed, 8 insertions(+), 9 deletions(-)

 [patch] process: determine page sizes via function

Instead of hard-coding the page size for linux systems, use Go's
`Getpagesize` function.

This resolves #258.

Signed-off-by: Thomas Hipp <thipp@suse.de>

0001 process make ClockTicks arch independent.patch | (download)

process/process_linux.go | 3 2 + 1 - 0 !
process/process_linux_386.go | 8 0 + 8 - 0 !
process/process_linux_amd64.go | 8 0 + 8 - 0 !
process/process_linux_arm.go | 8 0 + 8 - 0 !
process/process_linux_arm64.go | 8 0 + 8 - 0 !
5 files changed, 2 insertions(+), 33 deletions(-)

 [patch] process: make `clockticks` arch-independent

The value for `ClockTicks` is defined as `100` by the Linux kernel for
all currently supported architectures in Go. Therefore, there is no need
to define this constant for each architecture separately.

This fixes #260.

Signed-off-by: Thomas Hipp <thomashipp@gmail.com>

0001 Improve CPU identification for POWER processors.patch | (download)

cpu/cpu_linux.go | 18 15 + 3 - 0 !
1 file changed, 15 insertions(+), 3 deletions(-)

 [patch] improve cpu identification for power processors

Currently gopsutils fails to indentify the POWER processors family,
returning an almost empty Info() structure.

This patch improves the POWER identification without changing what is
available for x86.