Skip to content

Commit

Permalink
Merge pull request #133 from Helflym/master
Browse files Browse the repository at this point in the history
Add AIX support
  • Loading branch information
fearful-symmetry authored Jul 17, 2020
2 parents 7123208 + bcb298a commit b915fb1
Show file tree
Hide file tree
Showing 8 changed files with 597 additions and 25 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Added

- Add AIX support. #133

### Fixed

- Fixed the `ss` example by replacing the Logrus package with the stdlib `log` package. https://github.com/elastic/gosigar/issues/123 https://github.com/elastic/gosigar/pull/136
Expand Down
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,27 @@ in pure go/cgo, rather than cgo bindings for libsigar.

The features vary by operating system.

| Feature | Linux | Darwin | Windows | OpenBSD | FreeBSD |
|-----------------|:-----:|:------:|:-------:|:-------:|:-------:|
| Cpu | X | X | X | X | X |
| CpuList | X | X | | X | X |
| FDUsage | X | | | | X |
| FileSystemList | X | X | X | X | X |
| FileSystemUsage | X | X | X | X | X |
| HugeTLBPages | X | | | | |
| LoadAverage | X | X | | X | X |
| Mem | X | X | X | X | X |
| ProcArgs | X | X | X | | X |
| ProcEnv | X | X | | | X |
| ProcExe | X | X | | | X |
| ProcFDUsage | X | | | | X |
| ProcList | X | X | X | | X |
| ProcMem | X | X | X | | X |
| ProcState | X | X | X | | X |
| ProcTime | X | X | X | | X |
| Rusage | X | | X | | |
| Swap | X | X | | X | X |
| Uptime | X | X | | X | X |
| Feature | Linux | Darwin | Windows | OpenBSD | FreeBSD | AIX |
|-----------------|:-----:|:------:|:-------:|:-------:|:-------:|:-------:|
| Cpu | X | X | X | X | X | X |
| CpuList | X | X | | X | X | X |
| FDUsage | X | | | | X | |
| FileSystemList | X | X | X | X | X | X |
| FileSystemUsage | X | X | X | X | X | X |
| HugeTLBPages | X | | | | | |
| LoadAverage | X | X | | X | X | X |
| Mem | X | X | X | X | X | X |
| ProcArgs | X | X | X | | X | X |
| ProcEnv | X | X | | | X | X |
| ProcExe | X | X | | | X | X |
| ProcFDUsage | X | | | | X | |
| ProcList | X | X | X | | X | X |
| ProcMem | X | X | X | | X | X |
| ProcState | X | X | X | | X | X |
| ProcTime | X | X | X | | X | X |
| Rusage | X | | X | | | X |
| Swap | X | X | | X | X | X |
| Uptime | X | X | | X | X | X |

## OS Specific Notes

Expand Down
2 changes: 1 addition & 1 deletion concrete_sigar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestConcreteFileSystemUsage(t *testing.T) {
func TestConcreteGetFDUsage(t *testing.T) {
concreteSigar := &sigar.ConcreteSigar{}
fdUsage, err := concreteSigar.GetFDUsage()
skipNotImplemented(t, err, "windows", "darwin")
skipNotImplemented(t, err, "windows", "darwin", "aix")
if assert.NoError(t, err) {
assert.True(t, fdUsage.Open > 0)
assert.True(t, fdUsage.Open <= fdUsage.Max)
Expand Down
Loading

0 comments on commit b915fb1

Please sign in to comment.