diff options
author | Ivan Shapovalov <intelfx@intelfx.name> | 2022-12-27 05:16:54 +0400 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2023-04-23 16:00:17 +0200 |
commit | 71f5a80d9e312375eff28d2fbb7d8add81f6793c (patch) | |
tree | 94fff570e9f040d961a46059d6155b4abff865b6 /linux/LinuxProcessList.h | |
parent | 0c8df5f9939cfed393a3740a77ef588ad636bb87 (diff) |
Linux: implement zswap support
On Linux, use zswap to populate "compressed memory" metrics added in the
previous commit.
Fixes #104.
Diffstat (limited to 'linux/LinuxProcessList.h')
-rw-r--r-- | linux/LinuxProcessList.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/LinuxProcessList.h b/linux/LinuxProcessList.h index b6c015e3..9cfdf24a 100644 --- a/linux/LinuxProcessList.h +++ b/linux/LinuxProcessList.h @@ -16,6 +16,7 @@ in the source distribution for its full text. #include "ProcessList.h" #include "UsersTable.h" #include "linux/ZramStats.h" +#include "linux/ZswapStats.h" #include "zfs/ZfsArcStats.h" #define HTOP_HUGEPAGE_BASE_SHIFT 16 @@ -85,6 +86,7 @@ typedef struct LinuxProcessList_ { ZfsArcStats zfs; ZramStats zram; + ZswapStats zswap; } LinuxProcessList; #ifndef PROCDIR |