diff options
author | Ross Williams <ross@ross-williams.net> | 2019-09-03 18:26:02 +0000 |
---|---|---|
committer | Ross Williams <ross@ross-williams.net> | 2019-09-03 18:44:19 +0000 |
commit | 613556faebd16325da8c9057c81f39a2410d803f (patch) | |
tree | 306b082cf7a0e28878dec4f2097eed842963674b /darwin | |
parent | e450b586368750e771746ef3e2f5a070962dfd28 (diff) |
Support for ZFS Compressed ARC statistics
Diffstat (limited to 'darwin')
-rw-r--r-- | darwin/Platform.c | 8 | ||||
-rw-r--r-- | darwin/Platform.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/darwin/Platform.c b/darwin/Platform.c index f9f09b5a..286ff16b 100644 --- a/darwin/Platform.c +++ b/darwin/Platform.c @@ -16,6 +16,7 @@ in the source distribution for its full text. #include "HostnameMeter.h" #include "UptimeMeter.h" #include "zfs/ZfsArcMeter.h" +#include "zfs/ZfsCompressedArcMeter.h" #include "DarwinProcessList.h" #include <stdlib.h> @@ -119,6 +120,7 @@ MeterClass* Platform_meterTypes[] = { &LeftCPUs2Meter_class, &RightCPUs2Meter_class, &ZfsArcMeter_class, + &ZfsCompressedArcMeter_class, &BlankMeter_class, NULL }; @@ -249,6 +251,12 @@ void Platform_setZfsArcValues(Meter* this) { ZfsArcMeter_readStats(this, &(dpl->zfs)); } +void Platform_setZfsCompressedArcValues(Meter* this) { + DarwinProcessList* dpl = (DarwinProcessList*) this->pl; + + ZfsCompressedArcMeter_readStats(this, &(dpl->zfs)); +} + char* Platform_getProcessEnv(pid_t pid) { char* env = NULL; diff --git a/darwin/Platform.h b/darwin/Platform.h index f8360775..e17661d6 100644 --- a/darwin/Platform.h +++ b/darwin/Platform.h @@ -50,6 +50,8 @@ void Platform_setSwapValues(Meter* mtr); void Platform_setZfsArcValues(Meter* this); +void Platform_setZfsCompressedArcValues(Meter* this); + char* Platform_getProcessEnv(pid_t pid); #endif |