Commit Graph

1446 Commits (71ddd2ac23fe3233667c96a24722fe67d82e733e)
 

Author SHA1 Message Date
WAKAYAMA Shirou d8bc9ca755 fix README table. 8 years ago
shirou 6f1a489187 Merge pull request #330 from jen20/update-readme-solaris
Update README.rst to reflect addition of Solaris
8 years ago
James Nugent 43c8d3f5f9 Update README.rst to reflect addition of Solaris 8 years ago
shirou d4c8874c19 Merge pull request #328 from jen20/solaris-cpu
cpu: Implement Solaris support for Info()
8 years ago
James Nugent 49ed700c0d cpu: Implement Solaris support for Info()
This commit adds Solaris(^1) support for the Info() function of package
cpu, with the exception of the L2 cache size which is not trivially
available(^2).

Support is implemented by parsing the output of `isainfo -b -v` (for the
instruction set flags), and `psr-info -p -v` for other information.
Example outputs from a range of different size VMs and Joyent containers
are included as part of the tests.

(^1): This has only been tested with Illumos in the form of SmartOS. I
believe it to be portable to other Illumos distributions but have not
tested on Oracle Solaris.

(^2): Enough support is added here to be usable for my port of
HashiCorp's Nomad to SmartOS.
8 years ago
shirou 35e7422f01 Merge pull request #325 from simar7/cpu-microcode
cpu: Expose CPU microcode information
8 years ago
Simarpreet Singh 5a4c90ad5f cpu: Expose CPU microcode information
This commit exposes the CPU microcode information.

Signed-off-by: Simarpreet Singh <simar@opendns.com>
8 years ago
shirou 23f4b7eb14 Merge pull request #323 from molecul/patch-2
Fix for getMachineGuid() return value
8 years ago
Shirou WAKAYAMA 85d3530ae8 fix test. 8 years ago
shirou abc5c87f27 Merge pull request #324 from molecul/patch-1
Add new test 'TestHostGuid'
8 years ago
Alexey Galkin b1f19a76c7 Fix for getMachineGuid() return value
getMachineGuid() function return a empty value in x86 windows builds.
Issue: https://github.com/shirou/gopsutil/issues/322
8 years ago
Alexey Galkin 2287b035c8 Add new test 'TestHostGuid'
For issue: https://github.com/shirou/gopsutil/issues/322
8 years ago
shirou d371ba1293 Merge pull request #320 from tychoish/close-files-more-often
close open files
8 years ago
tycho garen 22c56d292e close open files 8 years ago
shirou f8610342e4 Merge pull request #319 from toshipiazza/master
Fixes memory leak
8 years ago
Toshi Piazza 5e1c2fa23b Fixes memory leak 8 years ago
shirou c14b242c60 Merge pull request #316 from tychoish/cpu-fix-linux
fix panic in starvation situations
8 years ago
shirou 654255b974 Merge pull request #317 from pdcleyn/support-alias-interfaces
Added support to alias interfaces (e.g., ifname0:1)
8 years ago
Peter De Cleyn e8fc31359b Added support to alias interfaces (e.g., ifname0:1) 8 years ago
Sam Kleinman 915d1e930e fix panic in starvation situations 8 years ago
shirou 35c783ec7d Merge pull request #314 from tychoish/fix-ppid-darwin
error earlier on darwin for get parent pid
8 years ago
tycho garen 6110db7ab5 error earlier on darwin for get parent pid 8 years ago
shirou b62e301a8b Merge pull request #313 from sean-/lowercase-hostid
Unconditionally lowercase the `HostID` from all supported platforms.
8 years ago
Sean Chittenden 36f5033d97
Unconditionally lowercase the `HostID` from all supported platforms. 8 years ago
shirou 32b6636de0 Merge pull request #312 from sean-/windows-machine-guid
Add HostID support to Windows.
8 years ago
Sean Chittenden 650c4d595f
Use `HKLM/SOFTWARE\Microsoft\Cryptography`'s `MachineGuid` registry key to enable `HostID` support on Windows. 8 years ago
shirou 77b5d0080a Merge pull request #311 from sparrc/cpu-times-panic
fix panic when /proc/stat is empty
8 years ago
shirou 53c0262e32 Merge pull request #310 from sparrc/go-fmt
run go fmt ./...
8 years ago
shirou 1495f0bf31 Merge pull request #309 from sean-/process-no-cgo
Add native struct support for FreeBSD/arm.
8 years ago
Cameron Sparr 0c9a1d33cb
fix panic when /proc/stat is empty
don't really know why this would be the case, but I suppose there are
always edge-cases.

see https://github.com/influxdata/telegraf/issues/2356
8 years ago
Cameron Sparr a213bf5e6d
run go fmt ./... 8 years ago
Sean Chittenden b68f0fdb25
Add native struct support for FreeBSD/arm.
This was ported by hand and not machine generated, but appears to get
software to build.  Material was sourced from the following and a pile
of `grep(1)`:

[1] https://wiki.freebsd.org/EdMaste/ArchitectureSpecifics
[2] https://svnweb.freebsd.org/base/head/sys/sys/user.h?revision=309676&view=markup#l119
8 years ago
shirou 3b18639664 Merge pull request #308 from sean-/host-no-cgo
Add Go-native structs for Darwin/386 and FreeBSD/arm
8 years ago
Sean Chittenden 955821b5ab
Add Go-native structs for Darwin/386 and FreeBSD/arm 8 years ago
shirou 70a1b78fe6 Merge pull request #307 from shirou/freebsd_cpu_cores_num
[cpu]freebsd: cpu.Info() now returns CPUInfos same number as CPU nums.
8 years ago
WAKAYAMA shirou dc8102185d separate freebsd specific test code. 8 years ago
WAKAYAMA shirou a54f700f00 fix test other than freebsd. 8 years ago
WAKAYAMA shirou eb5bfca902 [cpu]freebsd: cpu.Info() now returns CPUInfos same number as CPU nums. 8 years ago
shirou d28b003411 Merge pull request #305 from tychoish/platform-0
add platform compatibility #297
8 years ago
Sam Kleinman 488c56586b add platform compatibility 8 years ago
WAKAYAMA shirou 7783018b9d [cpu]freebsd: CPU.CPU now indicates CPU num instead of MHz. 8 years ago
WAKAYAMA Shirou 1123132e5a [mem]darwin: swap memory was Kbytes, since linux is bytes. 8 years ago
shirou 26dae1bdee Merge pull request #303 from jcaberio/master
fix truncated process name of linux
8 years ago
Jorick Caberio c432d48337 fix truncated process name of linux 8 years ago
shirou 80a8502305 Merge pull request #296 from smith3v/master
Implemented resource limits function
8 years ago
Vyacheslav Kuznetsov a35c32b028 Commented the constants origin. 8 years ago
Vyacheslav Kuznetsov 4de4e17f06 Added limit constants. Implemented function to parse process limits from /proc. 8 years ago
shirou 93564b3142 Merge pull request #271 from botherder/master
Obtain executable path from macOS process (fix #270)
8 years ago
shirou aa5843400e Merge pull request #293 from HeChuanXUPT/patch-1
fix: division by zero possible
8 years ago
HeChuan c73b6685be fix: division by zero possible
some filesystem have zero Inode
8 years ago