summaryrefslogtreecommitdiffstats
path: root/darwin/DarwinProcessList.h
diff options
context:
space:
mode:
authorRoss Williams <ross@ross-williams.net>2019-07-07 17:30:37 -0400
committerRoss Williams <ross@ross-williams.net>2019-07-07 23:10:46 -0400
commitfc8e9a2d3e25e35c0f9903baa345b1744b12b6cb (patch)
tree2b689eab1d4804a2f87ea1aa75cfdeea3f848d59 /darwin/DarwinProcessList.h
parent070fe90461182743fabb029415fc1bc59be14f3f (diff)
ZFS arcstats for Darwin (macOS / OS X)
Diffstat (limited to 'darwin/DarwinProcessList.h')
-rw-r--r--darwin/DarwinProcessList.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/darwin/DarwinProcessList.h b/darwin/DarwinProcessList.h
index c216a804..6686d05c 100644
--- a/darwin/DarwinProcessList.h
+++ b/darwin/DarwinProcessList.h
@@ -9,6 +9,17 @@ Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
+struct kern;
+
+void GetKernelVersion(struct kern *k);
+
+/* compare the given os version with the one installed returns:
+0 if equals the installed version
+positive value if less than the installed version
+negative value if more than the installed version
+*/
+int CompareKernelVersion(short int major, short int minor, short int component);
+
#include "ProcessList.h"
#include <mach/mach_host.h>
#include <sys/sysctl.h>
@@ -23,6 +34,16 @@ typedef struct DarwinProcessList_ {
uint64_t kernel_threads;
uint64_t user_threads;
uint64_t global_diff;
+
+ int zfsArcEnabled;
+ unsigned long long int zfsArcMax;
+ unsigned long long int zfsArcSize;
+ unsigned long long int zfsArcMFU;
+ unsigned long long int zfsArcMRU;
+ unsigned long long int zfsArcAnon;
+ unsigned long long int zfsArcHeader;
+ unsigned long long int zfsArcOther;
+
} DarwinProcessList;

© 2014-2024 Faster IT GmbH | imprint | privacy policy