summaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcessList.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 /linux/LinuxProcessList.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 'linux/LinuxProcessList.h')
-rw-r--r--linux/LinuxProcessList.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/linux/LinuxProcessList.h b/linux/LinuxProcessList.h
index 749231e1..353fe603 100644
--- a/linux/LinuxProcessList.h
+++ b/linux/LinuxProcessList.h
@@ -19,6 +19,7 @@ in the source distribution for its full text.
#include "ProcessList.h"
+#include "zfs/ZfsArcStats.h"
extern long long btime;
@@ -68,14 +69,7 @@ typedef struct LinuxProcessList_ {
int netlink_family;
#endif
- int zfsArcEnabled;
- unsigned long long int memZfsArc;
- unsigned long long int zfsArcMax;
- 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;
} LinuxProcessList;
#ifndef PROCDIR

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