diff options
author | Nathan Scott <nathans@redhat.com> | 2023-11-20 15:59:41 +1100 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2023-11-20 15:59:41 +1100 |
commit | 452244dc06270aff4872a3c3d9559e7da5f34ad6 (patch) | |
tree | 198c178d126253d53dfbf06a7d0d6d8cc29785a8 /pcp/PCPMachine.h | |
parent | e49a40ad82c7ce122f30b0056a2fc2cdb1a208b0 (diff) |
PCP platform implementation of frontswap and zswap accounting
Diffstat (limited to 'pcp/PCPMachine.h')
-rw-r--r-- | pcp/PCPMachine.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pcp/PCPMachine.h b/pcp/PCPMachine.h index faca8efc..fe6c503f 100644 --- a/pcp/PCPMachine.h +++ b/pcp/PCPMachine.h @@ -17,6 +17,7 @@ in the source distribution for its full text. #include "UsersTable.h" #include "pcp/Platform.h" +#include "linux/ZswapStats.h" #include "zfs/ZfsArcStats.h" @@ -59,10 +60,14 @@ typedef struct PCPMachine_ { int smaps_flag; double period; double timestamp; /* previous sample timestamp */ + pmAtomValue* cpu; /* aggregate values for each metric */ pmAtomValue** percpu; /* per-processor values for each metric */ pmAtomValue* values; /* per-processor buffer for just one metric */ + ZfsArcStats zfs; + /*ZramStats zram; -- not needed, calculated in-line in Platform.c */ + ZswapStats zswap; } PCPMachine; #endif |