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/ZswapStats.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/ZswapStats.h')
-rw-r--r-- | linux/ZswapStats.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/linux/ZswapStats.h b/linux/ZswapStats.h new file mode 100644 index 00000000..78771e10 --- /dev/null +++ b/linux/ZswapStats.h @@ -0,0 +1,21 @@ +#ifndef HEADER_ZswapStats +#define HEADER_ZswapStats +/* +htop - ZswapStats.h +(C) 2022 htop dev team +Released under the GNU GPLv2+, see the COPYING file +in the source distribution for its full text. +*/ + +#include "ProcessList.h" + +typedef struct ZswapStats_ { + /* maximum size of the zswap pool */ + memory_t totalZswapPool; + /* amount of RAM used by the zswap pool */ + memory_t usedZswapComp; + /* amount of data stored inside the zswap pool */ + memory_t usedZswapOrig; +} ZswapStats; + +#endif |