summaryrefslogtreecommitdiffstats
path: root/darwin/DarwinProcessList.h
diff options
context:
space:
mode:
authorRoss Williams <ross@ross-williams.net>2019-07-07 23:27:00 +0000
committerRoss Williams <ross@ross-williams.net>2019-07-07 23:10:54 -0400
commita88d2e313df7f5f2b781d5b14ffe0e7710018c10 (patch)
tree623e2c81c9335e37653c870f64190b2ed22cc365 /darwin/DarwinProcessList.h
parentfc8e9a2d3e25e35c0f9903baa345b1744b12b6cb (diff)
Refactor common OpenZFS sysctl access
Darwin and FreeBSD export zfs kstats through the same APIs, so moving functions into a common file.
Diffstat (limited to 'darwin/DarwinProcessList.h')
-rw-r--r--darwin/DarwinProcessList.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/darwin/DarwinProcessList.h b/darwin/DarwinProcessList.h
index 6686d05c..73fbd34f 100644
--- a/darwin/DarwinProcessList.h
+++ b/darwin/DarwinProcessList.h
@@ -21,6 +21,7 @@ negative value if more than the installed version
int CompareKernelVersion(short int major, short int minor, short int component);
#include "ProcessList.h"
+#include "zfs/ZfsArcStats.h"
#include <mach/mach_host.h>
#include <sys/sysctl.h>
@@ -35,15 +36,7 @@ typedef struct DarwinProcessList_ {
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;
-
+ ZfsArcStats zfs;
} DarwinProcessList;

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